fix broken header of ru_RU translation thanks to Tomáš Chvátal; rebase translations

This commit is contained in:
Andrew Dolgov
2013-04-01 19:17:25 +04:00
parent d3b923c917
commit c050148df4
36 changed files with 3441 additions and 3446 deletions

View File

@@ -409,12 +409,23 @@ class gettext_reader {
function pgettext($context, $msgid) {
$key = $context . chr(4) . $msgid;
return $this->translate($key);
$ret = $this->translate($key);
if (strpos($ret, "\004") !== FALSE) {
return $msgid;
} else {
return $ret;
}
}
function npgettext($context, $singular, $plural, $number) {
$singular = $context . chr(4) . $singular;
return $this->ngettext($singular, $plural, $number);
$key = $context . chr(4) . $singular;
$ret = $this->ngettext($key, $plural, $number);
if (strpos($ret, "\004") !== FALSE) {
return $singular;
} else {
return $ret;
}
}
}