aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-05-14 22:28:45 +0000
committerplegall <plg@piwigo.org>2012-05-14 22:28:45 +0000
commit03a2eece52f6b3199aae89b927da337a45f17380 (patch)
tree944a9adcb87e0d765f487dcd7927e704d0032a6c
parent4cac242866461f1307c3f0de01efa04a08d867c8 (diff)
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". git-svn-id: http://piwigo.org/svn/trunk@14978 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--language/af_ZA/admin.lang.php1
-rw-r--r--language/af_ZA/common.lang.php1
-rw-r--r--language/ca_ES/admin.lang.php1
-rw-r--r--language/ca_ES/common.lang.php1
-rw-r--r--language/en_UK/admin.lang.php1
-rw-r--r--language/en_UK/common.lang.php1
-rw-r--r--language/es_ES/admin.lang.php1
-rw-r--r--language/es_ES/common.lang.php1
-rw-r--r--language/fr_CA/admin.lang.php1
-rw-r--r--language/fr_CA/common.lang.php1
-rw-r--r--language/fr_FR/admin.lang.php1
-rw-r--r--language/fr_FR/common.lang.php1
-rw-r--r--language/hu_HU/admin.lang.php1
-rw-r--r--language/hu_HU/common.lang.php1
-rw-r--r--language/lv_LV/admin.lang.php1
-rw-r--r--language/lv_LV/common.lang.php1
-rw-r--r--language/pt_PT/admin.lang.php1
-rw-r--r--language/pt_PT/common.lang.php1
-rw-r--r--themes/default/template/picture.tpl16
19 files changed, 23 insertions, 11 deletions
diff --git a/language/af_ZA/admin.lang.php b/language/af_ZA/admin.lang.php
index cff7a94e1..31325e7e4 100644
--- a/language/af_ZA/admin.lang.php
+++ b/language/af_ZA/admin.lang.php
@@ -588,5 +588,4 @@ $lang['randomly represented'] = 'lukraak album duimnael';
$lang['remove tags'] = 'verwyder etikette';
$lang['remove this filter'] = 'verwyder hierdie filter';
$lang['remove title'] = 'verwyder titel';
-$lang['%d rate'] = '%d gradering';
?> \ No newline at end of file
diff --git a/language/af_ZA/common.lang.php b/language/af_ZA/common.lang.php
index 567268368..f04dab520 100644
--- a/language/af_ZA/common.lang.php
+++ b/language/af_ZA/common.lang.php
@@ -403,4 +403,5 @@ $lang['View in'] = 'Bekyk in';
$lang['Visits, high &rarr; low'] = 'Besoeke, hoog &rarr; laag';
$lang['Visits, low &rarr; high'] = 'Besoeke, laag &rarr; hoog';
$lang['xsmall'] = 'XS - baie klein';
+$lang['%d rate'] = '%d gradering';
?> \ No newline at end of file
diff --git a/language/ca_ES/admin.lang.php b/language/ca_ES/admin.lang.php
index 3987e1dce..dd15bd217 100644
--- a/language/ca_ES/admin.lang.php
+++ b/language/ca_ES/admin.lang.php
@@ -929,5 +929,4 @@ $lang['Rated %d times, score : %.2f'] = 'Valorada %d vegades. Resultat: %.2f';
$lang['Sharpen'] = 'Enfocament';
$lang['Visited %d times'] = 'Visitada %d vegades';
$lang['Watermark'] = 'Marca d\'aigua';
-$lang['%d rate'] = '%d valoracion';
?> \ No newline at end of file
diff --git a/language/ca_ES/common.lang.php b/language/ca_ES/common.lang.php
index 4b5639a44..1b97a7fa1 100644
--- a/language/ca_ES/common.lang.php
+++ b/language/ca_ES/common.lang.php
@@ -403,4 +403,5 @@ $lang['Search by date'] = 'Cercar per data';
$lang['Search for any term'] = 'Cerca per qualsevol terme';
$lang['Visits, high &rarr; low'] = 'Visites, alt &rarr; baix';
$lang['Visits, low &rarr; high'] = 'Visites, baix &rarr; alt';
+$lang['%d rate'] = '%d valoracion';
?> \ No newline at end of file
diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php
index 12cc0ce07..0f0f6b0dd 100644
--- a/language/en_UK/admin.lang.php
+++ b/language/en_UK/admin.lang.php
@@ -918,5 +918,4 @@ $lang['%d minutes'] = '%d minutes';
$lang['%d second'] = '%d second';
$lang['%d seconds'] = '%d seconds';
$lang['Sharpen'] = 'Sharpen';
-$lang['%d rate'] = "%d rate";
?> \ No newline at end of file
diff --git a/language/en_UK/common.lang.php b/language/en_UK/common.lang.php
index c05f9c424..4b684df09 100644
--- a/language/en_UK/common.lang.php
+++ b/language/en_UK/common.lang.php
@@ -403,4 +403,5 @@ $lang['Visits, low &rarr; high'] = 'Visits, low &rarr; high';
$lang['Numeric identifier, 1 &rarr; 9'] = 'Numeric identifier, 1 &rarr; 9';
$lang['Numeric identifier, 9 &rarr; 1'] = 'Numeric identifier, 9 &rarr; 1';
$lang['Manual sort order'] = 'Manual sort order';
+$lang['%d rate'] = '%d rate';
?> \ No newline at end of file
diff --git a/language/es_ES/admin.lang.php b/language/es_ES/admin.lang.php
index 766a0c8ee..d00271026 100644
--- a/language/es_ES/admin.lang.php
+++ b/language/es_ES/admin.lang.php
@@ -916,5 +916,4 @@ $lang['Rated %d times, score : %.2f'] = 'Puntuado %d veces, puntuación: %.2f';
$lang['Sharpen'] = 'Enfocar';
$lang['Visited %d times'] = 'Visto %d veces';
$lang['Watermark'] = 'Marca de agua';
-$lang['%d rate'] = '%d Nota';
?> \ No newline at end of file
diff --git a/language/es_ES/common.lang.php b/language/es_ES/common.lang.php
index 1e5d506da..32153b58c 100644
--- a/language/es_ES/common.lang.php
+++ b/language/es_ES/common.lang.php
@@ -404,4 +404,5 @@ $lang['Rating score, low &rarr; high'] = 'Puntuación, más baja &rarr; más alt
$lang['Visits, high &rarr; low'] = 'Visitas, más &rarr; menos';
$lang['Visits, low &rarr; high'] = 'Visitas, menos &rarr; más';
$lang['xsmall'] = 'XS - muy pequeño';
+$lang['%d rate'] = '%d Nota';
?> \ No newline at end of file
diff --git a/language/fr_CA/admin.lang.php b/language/fr_CA/admin.lang.php
index 8e8e96050..76b3185dd 100644
--- a/language/fr_CA/admin.lang.php
+++ b/language/fr_CA/admin.lang.php
@@ -927,6 +927,5 @@ $lang['%d minutes'] = '%d minutes';
$lang['%d second'] = '%d seconde';
$lang['%d seconds'] = '%d secondes';
$lang['Sharpen'] = 'Renforcer la netteté';
-$lang['%d rate'] = '%d note';
?> \ No newline at end of file
diff --git a/language/fr_CA/common.lang.php b/language/fr_CA/common.lang.php
index 1c042c44b..0d8ea5cb8 100644
--- a/language/fr_CA/common.lang.php
+++ b/language/fr_CA/common.lang.php
@@ -407,4 +407,5 @@ $lang['Visits, low &rarr; high'] = 'Nombre de visites, bas &rarr; haut';
$lang['Numeric identifier, 1 &rarr; 9'] = 'Identifiant, 1 &rarr; 9';
$lang['Numeric identifier, 9 &rarr; 1'] = 'Identifiant, 9 &rarr; 1';
$lang['Manual sort order'] = 'Ordre manuel';
+$lang['%d rate'] = '%d note';
?> \ No newline at end of file
diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php
index fd38bd597..278689b0c 100644
--- a/language/fr_FR/admin.lang.php
+++ b/language/fr_FR/admin.lang.php
@@ -919,5 +919,4 @@ $lang['%d minutes'] = '%d minutes';
$lang['%d second'] = '%d seconde';
$lang['%d seconds'] = '%d secondes';
$lang['Sharpen'] = 'Renforcer la netteté';
-$lang['%d rate'] = '%d note';
?> \ No newline at end of file
diff --git a/language/fr_FR/common.lang.php b/language/fr_FR/common.lang.php
index 5c68b5fce..f3f2753a5 100644
--- a/language/fr_FR/common.lang.php
+++ b/language/fr_FR/common.lang.php
@@ -403,4 +403,5 @@ $lang['Rating score, high &rarr; low'] = 'Note, haute &rarr; basse';
$lang['Rating score, low &rarr; high'] = 'Note, basse &rarr; haute';
$lang['Visits, high &rarr; low'] = 'Nombre de visites, élevé &rarr; faible';
$lang['Visits, low &rarr; high'] = 'Nombre de visites, faible &rarr; élevé';
+$lang['%d rate'] = '%d note';
?>
diff --git a/language/hu_HU/admin.lang.php b/language/hu_HU/admin.lang.php
index 315c43937..a3d82c304 100644
--- a/language/hu_HU/admin.lang.php
+++ b/language/hu_HU/admin.lang.php
@@ -918,5 +918,4 @@ $lang['Rated %d times, score : %.2f'] = 'Értékelve %d alkalommal, pontszám :
$lang['Sharpen'] = 'Élesítés';
$lang['Visited %d times'] = 'Megtekintve %d alkalommal';
$lang['Watermark'] = 'Vízjel';
-$lang['%d rate'] = '%d értékelé';
?> \ No newline at end of file
diff --git a/language/hu_HU/common.lang.php b/language/hu_HU/common.lang.php
index 751ba3eb9..04311ae38 100644
--- a/language/hu_HU/common.lang.php
+++ b/language/hu_HU/common.lang.php
@@ -408,4 +408,5 @@ $lang['Numeric identifier, 1 &rarr; 9'] = 'Azonosító (ID), növekvő';
$lang['Numeric identifier, 9 &rarr; 1'] = 'Azonosító (ID), csökkenő';
$lang['2small'] = 'XXS - legkissebb';
$lang['xsmall'] = 'XS - kissebb';
+$lang['%d rate'] = '%d értékelé';
?> \ No newline at end of file
diff --git a/language/lv_LV/admin.lang.php b/language/lv_LV/admin.lang.php
index b2e0e608e..0bb7cc140 100644
--- a/language/lv_LV/admin.lang.php
+++ b/language/lv_LV/admin.lang.php
@@ -912,5 +912,4 @@ $lang['%d minutes'] = '%d minūtes';
$lang['%d second'] = '%d sekunde';
$lang['%d seconds'] = '%d sekundes';
$lang['Sharpen'] = 'Uzspicēts';
-$lang['%d rate'] = '%d vērtējum';
?> \ No newline at end of file
diff --git a/language/lv_LV/common.lang.php b/language/lv_LV/common.lang.php
index 49fa7c29b..321755f94 100644
--- a/language/lv_LV/common.lang.php
+++ b/language/lv_LV/common.lang.php
@@ -403,5 +403,6 @@ $lang['Visits, low &rarr; high'] = 'Apmeklējums, zems &rarr; augsts';
$lang['Numeric identifier, 1 &rarr; 9'] = 'Ciparu identifikators, 1 &rarr; 9';
$lang['Numeric identifier, 9 &rarr; 1'] = 'Ciparu identifikators, 9 &rarr; 1';
$lang['Manual sort order'] = 'Lietotāja izvēlētais kārtojums';
+$lang['%d rate'] = '%d vērtējum';
?> \ No newline at end of file
diff --git a/language/pt_PT/admin.lang.php b/language/pt_PT/admin.lang.php
index 994166165..3889817c5 100644
--- a/language/pt_PT/admin.lang.php
+++ b/language/pt_PT/admin.lang.php
@@ -916,5 +916,4 @@ $lang['Rated %d times, score : %.2f'] = 'Avakiada %d vezes, contagem: %.2f';
$lang['Sharpen'] = 'Refinar';
$lang['Visited %d times'] = 'Visitada %d vezes';
$lang['Watermark'] = 'Marca de água';
-$lang['%d rate'] = '%d avaliaçõe';
?> \ No newline at end of file
diff --git a/language/pt_PT/common.lang.php b/language/pt_PT/common.lang.php
index feff7166d..5847d2197 100644
--- a/language/pt_PT/common.lang.php
+++ b/language/pt_PT/common.lang.php
@@ -404,4 +404,5 @@ $lang['Rating score, low &rarr; high'] = 'Nível de avaliação, baixo &rarr; el
$lang['Visits, high &rarr; low'] = 'Visitas, elevadas &rarr; parcas';
$lang['Visits, low &rarr; high'] = 'Visitas, parcas &rarr; elevadas';
$lang['xsmall'] = 'XS - extra pequeno';
+$lang['%d rate'] = '%d avaliaçõe';
?> \ No newline at end of file
diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl
index cddabf26e..8795d0bc1 100644
--- a/themes/default/template/picture.tpl
+++ b/themes/default/template/picture.tpl
@@ -217,7 +217,12 @@ y.callService(
<dt>{'Rating score'|@translate}</dt>
<dd>
{if $rate_summary.count}
- <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>
+ {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>
{else}
<span id="ratingScore">{'no rate'|@translate}</span> <span id="ratingCount"></span>
{/if}
@@ -251,7 +256,14 @@ y.callService(
e = document.getElementById("ratingScore");
if (e) e.innerHTML = rating.score;
e = document.getElementById("ratingCount");
- if (e) e.innerHTML = "({'%d rates'|@translate|@escape:'javascript'})".replace( "%d", rating.count);
+ if (e) {ldelim}
+ if (rating.count == 1) {ldelim}
+ e.innerHTML = "({'%d rate'|@translate|@escape:'javascript'})".replace( "%d", rating.count);
+ {rdelim}
+ else {ldelim}
+ e.innerHTML = "({'%d rates'|@translate|@escape:'javascript'})".replace( "%d", rating.count);
+ {rdelim}
+ {rdelim}
{rdelim}{rdelim} );
{/footer_script}
{/strip}