mirror of
https://github.com/friendica/friendica
synced 2025-04-25 13:10:11 +00:00
merge
This commit is contained in:
parent
59c03edbc9
commit
f07df4f667
45 changed files with 34609 additions and 41295 deletions
|
@ -46,9 +46,12 @@ function po2php_run(&$argv, &$argc) {
|
|||
$match=Array();
|
||||
preg_match("|nplurals=([0-9]*); *plural=(.*)[;\\\\]|", $l, $match);
|
||||
$cond = str_replace('n','$n',$match[2]);
|
||||
$out .= 'function string_plural_select_' . $lang . '($n){'."\n";
|
||||
// define plural select function if not already defined
|
||||
$fnname = 'string_plural_select_' . $lang;
|
||||
$out .= 'if(! function_exists("'.$fnname.'")) {'."\n";
|
||||
$out .= 'function '. $fnname . '($n){'."\n";
|
||||
$out .= ' return '.$cond.';'."\n";
|
||||
$out .= '}'."\n";
|
||||
$out .= '}}'."\n";
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue