aboutsummaryrefslogtreecommitdiffstats
path: root/util/po2php.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-04-15 12:23:55 +0200
committerMax Kostikov <max@kostikov.co>2019-04-15 12:23:55 +0200
commit00ed91f12e5998eb803c932888efa71ef33871b1 (patch)
tree26ceaecbf4cce2466c574f00c8618ecca58a62c5 /util/po2php.php
parented902fdb703103944494e5c70ae354087c2208ad (diff)
downloadvolse-hubzilla-00ed91f12e5998eb803c932888efa71ef33871b1.tar.gz
volse-hubzilla-00ed91f12e5998eb803c932888efa71ef33871b1.tar.bz2
volse-hubzilla-00ed91f12e5998eb803c932888efa71ef33871b1.zip
Fix space in plurals regexp
Diffstat (limited to 'util/po2php.php')
-rw-r--r--util/po2php.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/po2php.php b/util/po2php.php
index 9ffcb64c4..73d9b454e 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]*); *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";