Wink
Chevereto Member
lib\G\classes\class.gettext.php
MUST be
...because preg_match return only 0, 1 or false, but never true
Because of this error, all plural forms do not work at all for all languages with more then 2 plural forms.
PHP:
private function parsePluralData($header)
{
...
$nplurals = (int) $matches[1];
if (preg_match('/^([!n\=\<\>\&\|\?\:%\s\(\)\d]+)$/', $matches[2]) === true) {
$formula = $matches[2];
}
...
}
MUST be
PHP:
if (preg_match('/^([!n\=\<\>\&\|\?\:%\s\(\)\d]+)$/', $matches[2])) {
$formula = $matches[2];
}
...because preg_match return only 0, 1 or false, but never true
Because of this error, all plural forms do not work at all for all languages with more then 2 plural forms.