Ignore:
Timestamp:
Jun 23, 2013, 8:39:31 PM (11 years ago)
Author:
rvelices
Message:

Smarty3 added 'translate_dec' compilermodifier (generated code is a lot better than $pwg->l10n_dec)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/tags.tpl

    r23426 r23476  
    151151<ul class="tagSelection">
    152152{foreach from=$all_tags item=tag}
    153         <li>{capture name='showInfo'}<b>{$tag.name}</b> ({$pwg->l10n_dec('%d photo', '%d photos', $tag.counter)}) <br> <a href="{$tag.U_VIEW}">{'View in gallery'|@translate}</a> | <a href="{$tag.U_EDIT}">{'Manage photos'|@translate}</a>{if !empty($tag.alt_names)}<br>{$tag.alt_names}{/if}{/capture}
     153        <li>{capture name='showInfo'}<b>{$tag.name}</b> ({$tag.counter|@translate_dec:'%d photo':'%d photos'}) <br> <a href="{$tag.U_VIEW}">{'View in gallery'|@translate}</a> | <a href="{$tag.U_EDIT}">{'Manage photos'|@translate}</a>{if !empty($tag.alt_names)}<br>{$tag.alt_names}{/if}{/capture}
    154154                <a class="icon-info-circled-1 showInfo" title="{$smarty.capture.showInfo|@htmlspecialchars}"></a>
    155155                <label>
Note: See TracChangeset for help on using the changeset viewer.