diff options
author | Max Kostikov <max@kostikov.co> | 2019-10-14 11:09:53 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-10-14 11:09:53 +0200 |
commit | 5bf3114e6f4f8d78eec887467f93beb2ab34724b (patch) | |
tree | 14b2e7f81d2697b9ae5979aca0397a54df18028e | |
parent | 0c2657df78b9fe65e01ba4dc027a24d143b6c863 (diff) | |
download | volse-hubzilla-5bf3114e6f4f8d78eec887467f93beb2ab34724b.tar.gz volse-hubzilla-5bf3114e6f4f8d78eec887467f93beb2ab34724b.tar.bz2 volse-hubzilla-5bf3114e6f4f8d78eec887467f93beb2ab34724b.zip |
Better plural function detection
-rw-r--r-- | util/po2php.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/po2php.php b/util/po2php.php index 73d9b454e..535e5567c 100644 --- a/util/po2php.php +++ b/util/po2php.php @@ -52,7 +52,7 @@ function po2php_run($argc,$argv) { if ($l[0]=="#") $l=""; if (substr($l,0,15)=='"Plural-Forms: '){ $match=Array(); - preg_match("|nplurals=([0-9]*);\s*plural=(.*)[;\\\\]|", $l, $match); + preg_match("|nplurals=([0-9]*);\s*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"; |