From b93085c7fbd1ee625354f612b3af62d2dcb90402 Mon Sep 17 00:00:00 2001 From: rvelices Date: Sun, 23 Jun 2013 18:39:31 +0000 Subject: Smarty3 added 'translate_dec' compilermodifier (generated code is a lot better than $pwg->l10n_dec) git-svn-id: http://piwigo.org/svn/trunk@23476 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/template/menubar_categories.tpl | 2 +- themes/default/template/menubar_tags.tpl | 2 +- themes/default/template/month_calendar.tpl | 4 ++-- themes/default/template/picture.tpl | 9 ++------- themes/default/template/tags.tpl | 4 ++-- 5 files changed, 8 insertions(+), 13 deletions(-) (limited to 'themes/default/template') diff --git a/themes/default/template/menubar_categories.tpl b/themes/default/template/menubar_categories.tpl index 3307bdc1e..c3c5b1c02 100644 --- a/themes/default/template/menubar_categories.tpl +++ b/themes/default/template/menubar_categories.tpl @@ -28,5 +28,5 @@ {/foreach} {''|@str_repeat:$ref_level} -

{$pwg->l10n_dec('%d photo', '%d photos', $block->data.NB_PICTURE)}

+

{$block->data.NB_PICTURE|@translate_dec:'%d photo':'%d photos'}

diff --git a/themes/default/template/menubar_tags.tpl b/themes/default/template/menubar_tags.tpl index 975d7eb09..d1a672837 100644 --- a/themes/default/template/menubar_tags.tpl +++ b/themes/default/template/menubar_tags.tpl @@ -5,7 +5,7 @@ {strip} + + "{$tag.U_ADD}" title="{$tag.counter|@translate_dec:'%d photo is also linked to current tags':'%d photos are also linked to current tags'}" rel="nofollow">+ {else} "{$tag.URL}" title="{'display photos linked to this tag'|@translate}"> {/if} diff --git a/themes/default/template/month_calendar.tpl b/themes/default/template/month_calendar.tpl index 904570a10..e2713346c 100644 --- a/themes/default/template/month_calendar.tpl +++ b/themes/default/template/month_calendar.tpl @@ -12,7 +12,7 @@   {else} {foreach from=$bar.items item=item} - + {if isset($item.URL)} {$item.LABEL} {else} @@ -68,7 +68,7 @@ TABLE.calMonth TBODY TD, TABLE.calMonth TBODY TD DIV.calImg {ldelim}
{$day.DAY}
{$day.DAY}
{else} diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 5cede3071..44220bf8d 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -212,12 +212,7 @@ y.callService(
{'Rating score'|@translate}
{if $rate_summary.count} - {if $rate_summary.count == 1} - {assign var='rate_text' value='%d rate'|@translate} - {else} - {assign var='rate_text' value='%d rates'|@translate} - {/if} - {$rate_summary.score} ({$pwg->sprintf($rate_text, $rate_summary.count)}) + {$rate_summary.score} ({$rate_summary.count|@translate_dec:'%d rate':'%d rates'}) {else} {'no rate'|@translate} {/if} @@ -335,7 +330,7 @@ function togglePrivacyLevelBox() {if isset($COMMENT_COUNT)}
-

{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}

+

{$COMMENT_COUNT|@translate_dec:'%d comment':'%d comments'}

{if isset($comment_add)} diff --git a/themes/default/template/tags.tpl b/themes/default/template/tags.tpl index c4327289a..ddba69b67 100644 --- a/themes/default/template/tags.tpl +++ b/themes/default/template/tags.tpl @@ -23,7 +23,7 @@ {if $display_mode == 'cloud' and isset($tags)}
{foreach from=$tags item=tag} - {$tag.name} + {$tag.name} {/foreach}
{/if} @@ -39,7 +39,7 @@ {foreach from=$letter.tags item=tag} {$tag.name} - {$pwg->l10n_dec('%d photo', '%d photos', $tag.counter)} + {$tag.counter|@translate_dec:'%d photo':'%d photos'} {/foreach} -- cgit v1.2.3