aboutsummaryrefslogtreecommitdiffstats
path: root/util/po2php.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-10 15:29:16 -0700
committerFriendika <info@friendika.com>2011-05-10 15:29:16 -0700
commit3ae36584110af2acd4a0f4805dd078da30732a1d (patch)
tree02c3c16710926abb28080f3da136d3515270b94d /util/po2php.php
parent8b2a514e96742892570edba3f04d18d274d1a9ea (diff)
parent95887aca63a52d3e2419178fe2f3a9a8d2b91999 (diff)
downloadvolse-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.php4
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
+}