From b62d3b02e62645e2b5fa4584368e5aeb12b63859 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 12 Apr 2020 20:31:30 +0200 Subject: [PATCH] Only add not empty translation strings to POT in DEV mode --- services/LocalizationService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/LocalizationService.php b/services/LocalizationService.php index 20df97b1..abbe93e0 100644 --- a/services/LocalizationService.php +++ b/services/LocalizationService.php @@ -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;