[*] BO : now you could translate a mobile theme

This commit is contained in:
lLefevre
2012-08-29 12:35:32 +00:00
parent 6d0751853c
commit 7c2e828a1b
7 changed files with 52 additions and 14 deletions
+2 -2
View File
@@ -40,7 +40,7 @@
{elseif isset($category)}
<div class="block-cms">
{if isset($sub_category) & !empty($sub_category)}
<h3 class="bg">{l s='List of sub categories in '}{$category->name}{l s=':'}</h3>
<h3 class="bg">{l s='List of sub categories in %s:' sprintf=$category->name}</h3>
<ul data-role="listview" data-inset="true">
{foreach from=$sub_category item=subcategory}
<li>
@@ -50,7 +50,7 @@
</ul>
{/if}
{if isset($cms_pages) & !empty($cms_pages)}
<h3 class="bg">{l s='List of pages in '}{$category->name}{l s=':'}</h3>
<h3 class="bg">{l s='List of pages in %s:' sprintf=$category->name}</h3>
<ul data-role="listview" data-inset="true">
{foreach from=$cms_pages item=cmspages}
<li>
+1 -1
View File
@@ -43,7 +43,7 @@
}
$(function()
{
var errorTitle = '{/literal}{if $errors|@count > 1}{l s='There are'}{else}{l s='There is'}{/if} {$errors|@count} {if $errors|@count > 1}{l s='errors'}{else}{l s='error'}{/if} :{literal}';
var errorTitle = '{/literal}{if $errors|@count > 1}{l s='There are %d errors:' sprintf=$errors|@count}{else}{l s='There is %d error:' sprintf=$errors|@count}{/if}:{literal}';
var errorMessage = '<ol>';
{/literal}
{foreach from=$errors key=k item=error}
+10 -4
View File
@@ -36,9 +36,11 @@
<span class="bold">
{if $nbManufacturers == 0}{l s='There are no manufacturers.'}
{else}
{if $nbManufacturers == 1}{l s='There is'}{else}{l s='There are'}{/if}&#160;
{$nbManufacturers}&#160;
{if $nbManufacturers == 1}{l s='manufacturer.'}{else}{l s='manufacturers.'}{/if}
{if $nbManufacturers == 1}
{l s='There is %d manufacturer.' sprintf=$nbManufacturers}
{else}
{l s='There are %d manufacturers.' sprintf=$nbManufacturers}
{/if}
{/if}
</span>{/strip}
</p>
@@ -51,7 +53,11 @@
<img src="{$img_manu_dir}{$manufacturer.image|escape:'htmlall':'UTF-8'}-medium.jpg" alt="" width="80" />
<h3>{$manufacturer.name|truncate:60:'...'|escape:'htmlall':'UTF-8'}</h3>
<p>
{$manufacturer.nb_products|intval} {if $manufacturer.nb_products == 1}{l s='product'}{else}{l s='products'}{/if}
{if $manufacturer.nb_products == 1}
{l s='%d product' sprintf=$manufacturer.nb_products|intval}
{else}
{l s='%d products' sprintf=$manufacturer.nb_products|intval}
{/if}
</p>
{if $manufacturer.nb_products > 0}</a>{/if}
</li>
+1 -1
View File
@@ -73,7 +73,7 @@
<div id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}>
<br />
<label for="product_reference">{l s='Reference :'} </label>
<label for="product_reference">{l s='Reference:'} </label>
<span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span>
<br />
</div>
+12 -5
View File
@@ -34,11 +34,14 @@
{else}
<p class="nbrmanufacturer">{strip}
<span class="bold">
{if $nbSuppliers == 0}{l s='There are no suppliers.'}
{if $nbSuppliers == 0}
{l s='There are no suppliers.'}
{else}
{if $nbSuppliers == 1}{l s='There is'}{else}{l s='There are'}{/if}&#160;
{$nbSuppliers}&#160;
{if $nbSuppliers == 1}{l s='supplier.'}{else}{l s='suppliers.'}{/if}
{if $nbSuppliers == 1}
{l s='There is %d supplier.' sprintf=$nbSuppliers}
{else}
{l s='There are %d suppliers.' sprintf=$nbSuppliers}
{/if}
{/if}
</span>{/strip}
</p>
@@ -55,7 +58,11 @@
<!-- name -->
<h3>{$supplier.name|truncate:60:'...'|escape:'htmlall':'UTF-8'}</h3>
<p>
{$supplier.nb_products|intval} {if $supplier.nb_products == 1}{l s='product'}{else}{l s='products'}{/if}
{if $supplier.nb_products == 1}
{l s='%d product' sprintf=$supplier.nb_products|intval}
{else}
{l s='%d products' sprintf=$supplier.nb_products|intval}
{/if}
</p>
{if $supplier.nb_products > 0}</a>{/if}
</li>