missing paren

This commit is contained in:
friendica 2014-05-13 02:17:17 -07:00
parent 8c948f4bbe
commit 71ded9388b
12 changed files with 12 additions and 12 deletions

View File

@ -44,7 +44,7 @@ function po2php_run($argv, $argc) {
$match=Array(); $match=Array();
preg_match("|nplurals=([0-9]*); *plural=(.*)[;\\\\]|", $l, $match); preg_match("|nplurals=([0-9]*); *plural=(.*)[;\\\\]|", $l, $match);
$cond = str_replace('n','$n',$match[2]); $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 .= 'function string_plural_select_' . $lang . '($n){'."\n";
$out .= ' return '.$cond.';'."\n"; $out .= ' return '.$cond.';'."\n";
$out .= '}}'."\n"; $out .= '}}'."\n";

View File

@ -1,6 +1,6 @@
<?php <?php
if(! function_exists("string_plural_select_ca") { if(! function_exists("string_plural_select_ca")) {
function string_plural_select_ca($n){ function string_plural_select_ca($n){
return ($n != 1); return ($n != 1);
}} }}

View File

@ -1,6 +1,6 @@
<?php <?php
if(! function_exists("string_plural_select_cs") { if(! function_exists("string_plural_select_cs")) {
function string_plural_select_cs($n){ function string_plural_select_cs($n){
return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2; return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2;
}} }}

View File

@ -1,6 +1,6 @@
<?php <?php
if(! function_exists("string_plural_select_de") { if(! function_exists("string_plural_select_de")) {
function string_plural_select_de($n){ function string_plural_select_de($n){
return ($n != 1);; return ($n != 1);;
}} }}

View File

@ -1,6 +1,6 @@
<?php <?php
if(! function_exists("string_plural_select_eo") { if(! function_exists("string_plural_select_eo")) {
function string_plural_select_eo($n){ function string_plural_select_eo($n){
return ($n != 1); return ($n != 1);
}} }}

View File

@ -1,6 +1,6 @@
<?php <?php
if(! function_exists("string_plural_select_es") { if(! function_exists("string_plural_select_es")) {
function string_plural_select_es($n){ function string_plural_select_es($n){
return ($n != 1); return ($n != 1);
}} }}

View File

@ -1,6 +1,6 @@
<?php <?php
if(! function_exists("string_plural_select_fr") { if(! function_exists("string_plural_select_fr")) {
function string_plural_select_fr($n){ function string_plural_select_fr($n){
return ($n > 1);; return ($n > 1);;
}} }}

View File

@ -1,6 +1,6 @@
<?php <?php
if(! function_exists("string_plural_select_it") { if(! function_exists("string_plural_select_it")) {
function string_plural_select_it($n){ function string_plural_select_it($n){
return ($n != 1);; return ($n != 1);;
}} }}

View File

@ -1,6 +1,6 @@
<?php <?php
if(! function_exists("string_plural_select_nb_no") { if(! function_exists("string_plural_select_nb_no")) {
function string_plural_select_nb_no($n){ function string_plural_select_nb_no($n){
return ($n != 1);; return ($n != 1);;
}} }}

View File

@ -1,6 +1,6 @@
<?php <?php
if(! function_exists("string_plural_select_pt_br") { if(! function_exists("string_plural_select_pt_br")) {
function string_plural_select_pt_br($n){ function string_plural_select_pt_br($n){
return ($n > 1);; return ($n > 1);;
}} }}

View File

@ -1,6 +1,6 @@
<?php <?php
if(! function_exists("string_plural_select_ru") { if(! function_exists("string_plural_select_ru")) {
function string_plural_select_ru($n){ 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);; return ($n%10==1 && $n%100!=11 ? 0 : $n%10>=2 && $n%10<=4 && ($n%100<10 || $n%100>=20) ? 1 : 2);;
}} }}

View File

@ -1,6 +1,6 @@
<?php <?php
if(! function_exists("string_plural_select_sv") { if(! function_exists("string_plural_select_sv")) {
function string_plural_select_sv($n){ function string_plural_select_sv($n){
return ($n != 1);; return ($n != 1);;
}} }}