mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Only add not empty translation strings to POT in DEV mode
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user