]> git.mxchange.org Git - friendica.git/commitdiff
@fabrixxm fix for po2php, manually patched
authorFriendika <info@friendika.com>
Wed, 11 May 2011 05:22:05 +0000 (22:22 -0700)
committerFriendika <info@friendika.com>
Wed, 11 May 2011 05:22:05 +0000 (22:22 -0700)
util/po2php.php

index 34e99d1ab7a7bb33e2f7fc51ba4564d0963e4394..239eafb5f3c7e5a2e342a50e2ebc2b9b55cda9e6 100644 (file)
@@ -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";