From f10c24c83a119eecce8e842bbad6e24acd1a5df3 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sat, 17 Apr 2021 13:20:45 +0200 Subject: [PATCH] remove warning --- src/Core/L10n.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/L10n.php b/src/Core/L10n.php index 138fd8730b..dc31b41832 100644 --- a/src/Core/L10n.php +++ b/src/Core/L10n.php @@ -304,9 +304,9 @@ class L10n } elseif (count($t) > 0) { // for some languages there is only a single array item $s = $t[0]; - } else { - $this->logger->warning('Found empty strings array.', ['singular' => $singular, 'plural' => $plural, 'array' => $t]); } + // if $t is empty, skip it, because empty strings array are indended + // to make string file smaller when there's no translation } else { $s = $t; }