aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/po2php.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/po2php.php b/util/po2php.php
index c703172af..3ac8b89dd 100644
--- a/util/po2php.php
+++ b/util/po2php.php
@@ -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";
}