mirror of
https://github.com/grocy/grocy.git
synced 2026-04-07 05:16:15 +02:00
Complete removal of acpu from localisation
This commit is contained in:
parent
2666cb7a41
commit
f12766ca19
|
|
@ -50,11 +50,6 @@ class LocalizationService
|
||||||
{
|
{
|
||||||
$culture = $this->Culture;
|
$culture = $this->Culture;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$Pot = null;
|
|
||||||
$PotMain = null;
|
|
||||||
|
|
||||||
if (GROCY_MODE === 'dev')
|
if (GROCY_MODE === 'dev')
|
||||||
{
|
{
|
||||||
$this->PotMain = Translations::fromPoFile(__DIR__ . '/../localization/strings.pot');
|
$this->PotMain = Translations::fromPoFile(__DIR__ . '/../localization/strings.pot');
|
||||||
|
|
@ -98,16 +93,11 @@ class LocalizationService
|
||||||
$translation->setPlural($quantityUnit['name_plural']);
|
$translation->setPlural($quantityUnit['name_plural']);
|
||||||
$translation->setPluralTranslations(preg_split('/\r\n|\r|\n/', $quantityUnit['plural_forms']));
|
$translation->setPluralTranslations(preg_split('/\r\n|\r|\n/', $quantityUnit['plural_forms']));
|
||||||
|
|
||||||
$PoUserStrings[] = $translation;
|
$this->PoUserStrings[] = $translation;
|
||||||
}
|
}
|
||||||
$this->Po = $this->Po->mergeWith($PoUserStrings);
|
$this->Po = $this->Po->mergeWith($this->PoUserStrings);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->Pot = apcu_fetch("grocy_LocalizationService_".$culture."_Pot");
|
|
||||||
$this->PotMain = apcu_fetch("grocy_LocalizationService_".$culture."_PotMain");
|
|
||||||
$this->Po = apcu_fetch("grocy_LocalizationService_".$culture."_Po");
|
|
||||||
$this->PoUserStrings = apcu_fetch("grocy_LocalizationService_".$culture."_PoUserStrings");
|
|
||||||
|
|
||||||
$this->Translator = new Translator();
|
$this->Translator = new Translator();
|
||||||
$this->Translator->loadTranslations($this->Po);
|
$this->Translator->loadTranslations($this->Po);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user