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
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -178,7 +178,7 @@ class LocalizationService
{
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);
$this->PotMain[] = $translation;