Fix some translation errors

This commit is contained in:
Benoît Burnichon
2015-10-29 22:53:17 +01:00
parent afd3fc56f7
commit eefd1432ed
3 changed files with 7 additions and 5 deletions

View File

@@ -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 %}

View File

@@ -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 %}

View File

@@ -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());
}