diff options
author | rvelices <rv-github@modusoptimus.com> | 2013-06-23 18:39:31 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2013-06-23 18:39:31 +0000 |
commit | b93085c7fbd1ee625354f612b3af62d2dcb90402 (patch) | |
tree | 42b33391f9ef7f36836934fb4afa44c6555b91d6 /themes/default/template/picture.tpl | |
parent | 67d736e3fd0399399e554c53503a2b24f50e5a70 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | themes/default/template/picture.tpl | 9 |
1 files changed, 2 insertions, 7 deletions
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( <dt>{'Rating score'|@translate}</dt> <dd> {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} - <span id="ratingScore">{$rate_summary.score}</span> <span id="ratingCount">({$pwg->sprintf($rate_text, $rate_summary.count)})</span> + <span id="ratingScore">{$rate_summary.score}</span> <span id="ratingCount">({$rate_summary.count|@translate_dec:'%d rate':'%d rates'})</span> {else} <span id="ratingScore">{'no rate'|@translate}</span> <span id="ratingCount"></span> {/if} @@ -335,7 +330,7 @@ function togglePrivacyLevelBox() {if isset($COMMENT_COUNT)} <div id="comments" {if (!isset($comment_add) && ($COMMENT_COUNT == 0))}class="noCommentContent"{else}class="commentContent"{/if}><div id="commentsSwitcher"></div> - <h3>{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</h3> + <h3>{$COMMENT_COUNT|@translate_dec:'%d comment':'%d comments'}</h3> <div id="pictureComments"> {if isset($comment_add)} |