mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Fix some translation errors
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
{% for plugin in plugins['actionbar'] %}
|
||||
{% for key, action in plugin.getBasketActionBar() %}
|
||||
{% set label = action.label %}
|
||||
<button class="ui-corner-all basket_window {{ action.classes|default('') }}" title="{% trans label plugin.PluginLocale %}">
|
||||
<button class="ui-corner-all basket_window {{ action.classes|default('') }}" title="{{ label|trans([], plugin.PluginLocale) }}">
|
||||
<img src="{{ plugin_asset(plugin.PluginName, action.icon) }}"/>
|
||||
</button>
|
||||
{% endfor %}
|
||||
|
@@ -161,11 +161,11 @@
|
||||
<li>
|
||||
<a class="results_window {{ action.classes|default('') }}">
|
||||
{% if action.icon %}
|
||||
<img src="{{ plugin.PluginName, action.icon) }}" height="16" width="16"/>
|
||||
<img src="{{ plugin_asset(plugin.PluginName, action.icon) }}" height="16" width="16"/>
|
||||
{% endif %}
|
||||
|
||||
{% set label = action.label %}
|
||||
{% trans label plugin.PluginLocale %}
|
||||
{% trans from plugin.PluginLocale %}label{% endtrans %}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
@@ -104,8 +104,10 @@ class BasketTest extends \PhraseanetAuthenticatedWebTestCase
|
||||
public function testBasketGet()
|
||||
{
|
||||
$route = '/prod/baskets/1/';
|
||||
self::$DI['client']->request('GET', $route);
|
||||
$response = self::$DI['client']->getResponse();
|
||||
$client = $this->getClient();
|
||||
|
||||
$client->request('GET', $route);
|
||||
$response = $client->getResponse();
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user