mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 10:05:45 +00:00
Hotfix (will be included in v2.4.0 release): Fixed a potential problem when the plural form of a translation (e. g. plural forms for user defined quantity units) is NULL
This commit is contained in:
parent
55e5fd7bf1
commit
d412b81eae
@ -123,7 +123,7 @@ class LocalizationService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __n($number, string $singularForm, string $pluralForm)
|
public function __n($number, string $singularForm, ?string $pluralForm)
|
||||||
{
|
{
|
||||||
$this->CheckAndAddMissingTranslationToPot($singularForm);
|
$this->CheckAndAddMissingTranslationToPot($singularForm);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user