Changeset 14978


Ignore:
Timestamp:
May 15, 2012, 12:28:45 AM (9 years ago)
Author:
plg
Message:

bug fixed: move $lang%d rate from admin.lang.php to common.inc.php to display "1 rate" on picture.php when relevant

adapt picture.tpl to display "1 rate" if only 1 rate, instead of "1 rates".

Location:
trunk
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/language/af_ZA/admin.lang.php

    r14929 r14978  
    589589$lang['remove this filter'] = 'verwyder hierdie filter';
    590590$lang['remove title'] = 'verwyder titel';
    591 $lang['%d rate'] = '%d gradering';
    592591?>
  • trunk/language/af_ZA/common.lang.php

    r14746 r14978  
    404404$lang['Visits, low → high'] = 'Besoeke, laag → hoog';
    405405$lang['xsmall'] = 'XS - baie klein';
     406$lang['%d rate'] = '%d gradering';
    406407?>
  • trunk/language/ca_ES/admin.lang.php

    r14977 r14978  
    930930$lang['Visited %d times'] = 'Visitada %d vegades';
    931931$lang['Watermark'] = 'Marca d\'aigua';
    932 $lang['%d rate'] = '%d valoracion';
    933932?>
  • trunk/language/ca_ES/common.lang.php

    r14937 r14978  
    404404$lang['Visits, high → low'] = 'Visites, alt → baix';
    405405$lang['Visits, low → high'] = 'Visites, baix → alt';
     406$lang['%d rate'] = '%d valoracion';
    406407?>
  • trunk/language/en_UK/admin.lang.php

    r14977 r14978  
    919919$lang['%d seconds'] = '%d seconds';
    920920$lang['Sharpen'] = 'Sharpen';
    921 $lang['%d rate'] = "%d rate";
    922921?>
  • trunk/language/en_UK/common.lang.php

    r13839 r14978  
    404404$lang['Numeric identifier, 9 → 1'] = 'Numeric identifier, 9 → 1';
    405405$lang['Manual sort order'] = 'Manual sort order';
     406$lang['%d rate'] = '%d rate';
    406407?>
  • trunk/language/es_ES/admin.lang.php

    r14977 r14978  
    917917$lang['Visited %d times'] = 'Visto %d veces';
    918918$lang['Watermark'] = 'Marca de agua';
    919 $lang['%d rate'] = '%d Nota';
    920919?>
  • trunk/language/es_ES/common.lang.php

    r14641 r14978  
    405405$lang['Visits, low → high'] = 'Visitas, menos  → más';
    406406$lang['xsmall'] = 'XS - muy pequeño';
     407$lang['%d rate'] = '%d Nota';
    407408?>
  • trunk/language/fr_CA/admin.lang.php

    r14977 r14978  
    928928$lang['%d seconds'] = '%d secondes';
    929929$lang['Sharpen'] = 'Renforcer la netteté';
    930 $lang['%d rate'] = '%d note';
    931930
    932931?>
  • trunk/language/fr_CA/common.lang.php

    r14373 r14978  
    408408$lang['Numeric identifier, 9 → 1'] = 'Identifiant, 9 → 1';
    409409$lang['Manual sort order'] = 'Ordre manuel';
     410$lang['%d rate'] = '%d note';
    410411?>
  • trunk/language/fr_FR/admin.lang.php

    r14977 r14978  
    920920$lang['%d seconds'] = '%d secondes';
    921921$lang['Sharpen'] = 'Renforcer la netteté';
    922 $lang['%d rate'] = '%d note';
    923922?>
  • trunk/language/fr_FR/common.lang.php

    r14425 r14978  
    404404$lang['Visits, high → low'] = 'Nombre de visites, élevé → faible';
    405405$lang['Visits, low → high'] = 'Nombre de visites, faible → élevé';
     406$lang['%d rate'] = '%d note';
    406407?>
  • trunk/language/hu_HU/admin.lang.php

    r14977 r14978  
    919919$lang['Visited %d times'] = 'Megtekintve %d alkalommal';
    920920$lang['Watermark'] = 'Vízjel';
    921 $lang['%d rate'] = '%d értékelé';
    922921?>
  • trunk/language/hu_HU/common.lang.php

    r13932 r14978  
    409409$lang['2small'] = 'XXS - legkissebb';
    410410$lang['xsmall'] = 'XS - kissebb';
     411$lang['%d rate'] = '%d értékelé';
    411412?>
  • trunk/language/lv_LV/admin.lang.php

    r14929 r14978  
    913913$lang['%d seconds'] = '%d sekundes';
    914914$lang['Sharpen'] = 'Uzspicēts';
    915 $lang['%d rate'] = '%d vērtējum';
    916915?>
  • trunk/language/lv_LV/common.lang.php

    r13900 r14978  
    404404$lang['Numeric identifier, 9 → 1'] = 'Ciparu identifikators, 9 → 1';
    405405$lang['Manual sort order'] = 'Lietotāja izvēlētais kārtojums';
     406$lang['%d rate'] = '%d vērtējum';
    406407
    407408?>
  • trunk/language/pt_PT/admin.lang.php

    r14977 r14978  
    917917$lang['Visited %d times'] = 'Visitada %d vezes';
    918918$lang['Watermark'] = 'Marca de água';
    919 $lang['%d rate'] = '%d avaliaçõe';
    920919?>
  • trunk/language/pt_PT/common.lang.php

    r14788 r14978  
    405405$lang['Visits, low → high'] = 'Visitas, parcas → elevadas';
    406406$lang['xsmall'] = 'XS - extra pequeno';
     407$lang['%d rate'] = '%d avaliaçõe';
    407408?>
  • trunk/themes/default/template/picture.tpl

    r14180 r14978  
    218218                <dd>
    219219                {if $rate_summary.count}
    220                         <span id="ratingScore">{$rate_summary.score}</span> <span id="ratingCount">({assign var='rate_text' value='%d rates'|@translate}{$pwg->sprintf($rate_text, $rate_summary.count)})</span>
     220                  {if $rate_summary.count == 1}
     221                    {assign var='rate_text' value='%d rate'|@translate}
     222                  {else}
     223                    {assign var='rate_text' value='%d rates'|@translate}
     224                  {/if}
     225                        <span id="ratingScore">{$rate_summary.score}</span> <span id="ratingCount">({$pwg->sprintf($rate_text, $rate_summary.count)})</span>
    221226                {else}
    222227                        <span id="ratingScore">{'no rate'|@translate}</span> <span id="ratingCount"></span>
     
    252257                                                if (e) e.innerHTML = rating.score;
    253258                                                e = document.getElementById("ratingCount");
    254                                                 if (e) e.innerHTML = "({'%d rates'|@translate|@escape:'javascript'})".replace( "%d", rating.count);
     259                                                if (e) {ldelim}
     260                                                        if (rating.count == 1) {ldelim}
     261                                                                e.innerHTML = "({'%d rate'|@translate|@escape:'javascript'})".replace( "%d", rating.count);
     262                                                        {rdelim}
     263                                                        else {ldelim}
     264                                                                e.innerHTML = "({'%d rates'|@translate|@escape:'javascript'})".replace( "%d", rating.count);
     265                                                        {rdelim}
     266                                                {rdelim}
    255267                                        {rdelim}{rdelim} );
    256268                        {/footer_script}
Note: See TracChangeset for help on using the changeset viewer.