mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 17:24:07 +00:00
Squashed commit
Always execute migration 9999 (can be used to fix things manually) Optimized meal plan navigation / date range filtering Prepared next release Pulled translations from Transifex Various code optimizations
This commit is contained in:
@@ -8,6 +8,13 @@ use Gettext\Translator;
|
||||
|
||||
class LocalizationService
|
||||
{
|
||||
public function __construct(string $culture)
|
||||
{
|
||||
$this->Culture = $culture;
|
||||
|
||||
$this->LoadLocalizations($culture);
|
||||
}
|
||||
|
||||
protected $Po;
|
||||
|
||||
protected $PoUserStrings;
|
||||
@@ -62,13 +69,6 @@ class LocalizationService
|
||||
return $this->Po->toJsonString();
|
||||
}
|
||||
|
||||
public function __construct(string $culture)
|
||||
{
|
||||
$this->Culture = $culture;
|
||||
|
||||
$this->LoadLocalizations($culture);
|
||||
}
|
||||
|
||||
public function __n($number, $singularForm, $pluralForm)
|
||||
{
|
||||
$this->CheckAndAddMissingTranslationToPot($singularForm);
|
||||
|
Reference in New Issue
Block a user