diff options
author | Friendika <info@friendika.com> | 2011-05-10 15:29:16 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-10 15:29:16 -0700 |
commit | 3ae36584110af2acd4a0f4805dd078da30732a1d (patch) | |
tree | 02c3c16710926abb28080f3da136d3515270b94d /util/po2php.php | |
parent | 8b2a514e96742892570edba3f04d18d274d1a9ea (diff) | |
parent | 95887aca63a52d3e2419178fe2f3a9a8d2b91999 (diff) | |
download | volse-hubzilla-3ae36584110af2acd4a0f4805dd078da30732a1d.tar.gz volse-hubzilla-3ae36584110af2acd4a0f4805dd078da30732a1d.tar.bz2 volse-hubzilla-3ae36584110af2acd4a0f4805dd078da30732a1d.zip |
Merge branch 'pull'
Diffstat (limited to 'util/po2php.php')
-rw-r--r-- | util/po2php.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/po2php.php b/util/po2php.php index eed126e32..1aa8adc1f 100644 --- a/util/po2php.php +++ b/util/po2php.php @@ -35,7 +35,7 @@ function po2php_run($argv, $argc) { if ($l[0]=="#") $l=""; if (substr($l,0,15)=='"Plural-Forms: '){ $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]); $out .= 'function string_plural_select($n){'."\n"; $out .= ' return '.$cond.';'."\n"; @@ -112,4 +112,4 @@ function po2php_run($argv, $argc) { if (array_search(__file__,get_included_files())===0){ po2php_run($argv,$argc); -}
\ No newline at end of file +} |