forbid redefinition of language plural_select function
This commit is contained in:
parent
13cf31ae73
commit
8c948f4bbe
@ -44,9 +44,10 @@ function po2php_run($argv, $argc) {
|
||||
$match=Array();
|
||||
preg_match("|nplurals=([0-9]*); *plural=(.*)[;\\\\]|", $l, $match);
|
||||
$cond = str_replace('n','$n',$match[2]);
|
||||
$out .= 'if(! function_exists("' . 'string_plural_select_' . $lang .'") {' . "\n";
|
||||
$out .= 'function string_plural_select_' . $lang . '($n){'."\n";
|
||||
$out .= ' return '.$cond.';'."\n";
|
||||
$out .= '}'."\n";
|
||||
$out .= '}}'."\n";
|
||||
}
|
||||
|
||||
|
||||
|
@ -1 +1 @@
|
||||
2014-05-12.673
|
||||
2014-05-13.674
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_ca") {
|
||||
function string_plural_select_ca($n){
|
||||
return ($n != 1);
|
||||
}
|
||||
}}
|
||||
;
|
||||
$a->strings["Post successful."] = "Publicat amb éxit.";
|
||||
$a->strings["[Embedded content - reload page to view]"] = "[Contingut embegut - recarrega la pàgina per a veure-ho]";
|
||||
@ -210,7 +211,7 @@ $a->strings["Enter full path to php executable"] = "Introdueixi el camí complet
|
||||
$a->strings["Command line PHP"] = "Linia de comandos PHP";
|
||||
$a->strings["The command line version of PHP on your system does not have \"register_argc_argv\" enabled."] = "La versió de línia de comandos de PHP en el seu sistema no té \"register_argc_argv\" habilitat.";
|
||||
$a->strings["This is required for message delivery to work."] = "Això és necessari perquè funcioni el lliurament de missatges.";
|
||||
$a->strings["PHP \"register_argc_argv\""] = "PHP \"register_argc_argv\"";
|
||||
$a->strings["PHP \"register_argc_argv\"] = "PHP \"register_argc_argv\"";
|
||||
$a->strings["Error: the \"openssl_pkey_new\" function on this system is not able to generate encryption keys"] = "Error: la funció \"openssl_pkey_new\" en aquest sistema no és capaç de generar claus de xifrat";
|
||||
$a->strings["If running under Windows, please see \"http://www.php.net/manual/en/openssl.installation.php\"."] = "Si s'executa en Windows, per favor consulti la secció \"http://www.php.net/manual/en/openssl.installation.php\".";
|
||||
$a->strings["Generate encryption keys"] = "Generar claus d'encripció";
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_cs") {
|
||||
function string_plural_select_cs($n){
|
||||
return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2;
|
||||
}
|
||||
}}
|
||||
;
|
||||
$a->strings["Post successful."] = "Příspěvek úspěšně odeslán";
|
||||
$a->strings["Contact settings applied."] = "Nastavení kontaktu změněno";
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_de") {
|
||||
function string_plural_select_de($n){
|
||||
return ($n != 1);;
|
||||
}
|
||||
}}
|
||||
;
|
||||
$a->strings["Categories"] = "Kategorien";
|
||||
$a->strings["Connect"] = "Verbinden";
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_eo") {
|
||||
function string_plural_select_eo($n){
|
||||
return ($n != 1);
|
||||
}
|
||||
}}
|
||||
;
|
||||
$a->strings["Post successful."] = "Sukcese afiŝita.";
|
||||
$a->strings["[Embedded content - reload page to view]"] = "[Enigita enhavo - reŝargu paĝon por spekti ĝin]";
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_es") {
|
||||
function string_plural_select_es($n){
|
||||
return ($n != 1);
|
||||
}
|
||||
}}
|
||||
;
|
||||
$a->strings["Not Found"] = "No se ha encontrado";
|
||||
$a->strings["Page not found."] = "Página no encontrada.";
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_fr") {
|
||||
function string_plural_select_fr($n){
|
||||
return ($n > 1);;
|
||||
}
|
||||
}}
|
||||
;
|
||||
$a->strings["Categories"] = "Catégories";
|
||||
$a->strings["Connect"] = "Relier";
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_it") {
|
||||
function string_plural_select_it($n){
|
||||
return ($n != 1);;
|
||||
}
|
||||
}}
|
||||
;
|
||||
$a->strings["Cannot locate DNS info for database server '%s'"] = "Non trovo le informazioni DNS per il database server '%s'";
|
||||
$a->strings["Profile Photos"] = "Foto del profilo";
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_nb_no") {
|
||||
function string_plural_select_nb_no($n){
|
||||
return ($n != 1);;
|
||||
}
|
||||
}}
|
||||
;
|
||||
$a->strings["Categories"] = "Kategorier";
|
||||
$a->strings["Connect"] = "Koble";
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_pt_br") {
|
||||
function string_plural_select_pt_br($n){
|
||||
return ($n > 1);;
|
||||
}
|
||||
}}
|
||||
;
|
||||
$a->strings["Cannot locate DNS info for database server '%s'"] = "Não foi possível localizar a informação de DNS para o servidor de banco de dados '%s'";
|
||||
$a->strings["Profile Photos"] = "Fotos do perfil";
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_ru") {
|
||||
function string_plural_select_ru($n){
|
||||
return ($n%10==1 && $n%100!=11 ? 0 : $n%10>=2 && $n%10<=4 && ($n%100<10 || $n%100>=20) ? 1 : 2);;
|
||||
}
|
||||
}}
|
||||
;
|
||||
$a->strings["Cannot locate DNS info for database server '%s'"] = "";
|
||||
$a->strings["Profile Photos"] = "Фотографии профиля";
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_sv") {
|
||||
function string_plural_select_sv($n){
|
||||
return ($n != 1);;
|
||||
}
|
||||
}}
|
||||
;
|
||||
$a->strings["Categories"] = "Kategorier";
|
||||
$a->strings["Connect"] = "Ta kontakt";
|
||||
|
Reference in New Issue
Block a user