missing paren
This commit is contained in:
parent
8c948f4bbe
commit
71ded9388b
@ -44,7 +44,7 @@ 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 .= 'if(! function_exists("' . 'string_plural_select_' . $lang .'")) {' . "\n";
|
||||
$out .= 'function string_plural_select_' . $lang . '($n){'."\n";
|
||||
$out .= ' return '.$cond.';'."\n";
|
||||
$out .= '}}'."\n";
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_ca") {
|
||||
if(! function_exists("string_plural_select_ca")) {
|
||||
function string_plural_select_ca($n){
|
||||
return ($n != 1);
|
||||
}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_cs") {
|
||||
if(! function_exists("string_plural_select_cs")) {
|
||||
function string_plural_select_cs($n){
|
||||
return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2;
|
||||
}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_de") {
|
||||
if(! function_exists("string_plural_select_de")) {
|
||||
function string_plural_select_de($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_eo") {
|
||||
if(! function_exists("string_plural_select_eo")) {
|
||||
function string_plural_select_eo($n){
|
||||
return ($n != 1);
|
||||
}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_es") {
|
||||
if(! function_exists("string_plural_select_es")) {
|
||||
function string_plural_select_es($n){
|
||||
return ($n != 1);
|
||||
}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_fr") {
|
||||
if(! function_exists("string_plural_select_fr")) {
|
||||
function string_plural_select_fr($n){
|
||||
return ($n > 1);;
|
||||
}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_it") {
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_nb_no") {
|
||||
if(! function_exists("string_plural_select_nb_no")) {
|
||||
function string_plural_select_nb_no($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_pt_br") {
|
||||
if(! function_exists("string_plural_select_pt_br")) {
|
||||
function string_plural_select_pt_br($n){
|
||||
return ($n > 1);;
|
||||
}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_ru") {
|
||||
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);;
|
||||
}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_sv") {
|
||||
if(! function_exists("string_plural_select_sv")) {
|
||||
function string_plural_select_sv($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
|
Reference in New Issue
Block a user