mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-12 08:24:24 +02:00
Revert "Translator: fall back to LC_ALL if LC_MESSAGES is not defined"
This reverts commit 9fe2d4928d2542348a0e6932951628588875396c.
This commit is contained in:
parent
9fe2d4928d
commit
b58ffbe034
@ -100,11 +100,7 @@ class Translator
|
|||||||
{
|
{
|
||||||
$contextString = "{$context}\004{$text}";
|
$contextString = "{$context}\004{$text}";
|
||||||
|
|
||||||
$translation = dcgettext(
|
$translation = dcgettext($domain, $contextString, LC_MESSAGES);
|
||||||
$domain,
|
|
||||||
$contextString,
|
|
||||||
defined('LC_MESSAGES') ? LC_MESSAGES : LC_ALL
|
|
||||||
);
|
|
||||||
|
|
||||||
if ($translation == $contextString) {
|
if ($translation == $contextString) {
|
||||||
return $text;
|
return $text;
|
||||||
@ -130,13 +126,7 @@ class Translator
|
|||||||
{
|
{
|
||||||
$contextString = "{$context}\004{$textSingular}";
|
$contextString = "{$context}\004{$textSingular}";
|
||||||
|
|
||||||
$translation = dcngettext(
|
$translation = dcngettext($domain, $contextString, $textPlural, $number, LC_MESSAGES);
|
||||||
$domain,
|
|
||||||
$contextString,
|
|
||||||
$textPlural,
|
|
||||||
$number,
|
|
||||||
defined('LC_MESSAGES') ? LC_MESSAGES : LC_ALL
|
|
||||||
);
|
|
||||||
|
|
||||||
if ($translation == $contextString || $translation == $textPlural) {
|
if ($translation == $contextString || $translation == $textPlural) {
|
||||||
return ($number == 1 ? $textSingular : $textPlural);
|
return ($number == 1 ? $textSingular : $textPlural);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user