[-] FO : #PSCFV-2149 : Front office translations are connected width sprintf()

This commit is contained in:
lLefevre
2012-05-11 14:25:25 +00:00
parent 6da951e85a
commit fff6a52a61
23 changed files with 153 additions and 294 deletions
+5 -3
View File
@@ -26,7 +26,9 @@
{if $category->id == 1 OR $nb_products == 0}
{l s='There are no products.'}
{else}
{if $nb_products == 1}{l s='There is'}{else}{l s='There are'}{/if} 
{$nb_products} 
{if $nb_products == 1}{l s='product.'}{else}{l s='products.'}{/if}
{if $nb_products == 1}
{l s='There is %d product.' sprintf=$nb_products}
{else}
{l s='There are %d products.' sprintf=$nb_products}
{/if}
{/if}