Only add not empty translation strings to POT in DEV mode

This commit is contained in:
Bernd Bestel
2020-04-12 20:31:30 +02:00
parent 0327188125
commit b62d3b02e6

View File

@@ -178,7 +178,7 @@ class LocalizationService
{ {
if (GROCY_MODE === 'dev') if (GROCY_MODE === 'dev')
{ {
if ($this->Pot->find('', $text) === false && $this->PoUserStrings->find('', $text) === false) if ($this->Pot->find('', $text) === false && $this->PoUserStrings->find('', $text) === false && empty($text) === false)
{ {
$translation = new Translation('', $text); $translation = new Translation('', $text);
$this->PotMain[] = $translation; $this->PotMain[] = $translation;