remove warning
This commit is contained in:
parent
6a414b0543
commit
f10c24c83a
1 changed files with 2 additions and 2 deletions
|
@ -304,9 +304,9 @@ class L10n
|
||||||
} elseif (count($t) > 0) {
|
} elseif (count($t) > 0) {
|
||||||
// for some languages there is only a single array item
|
// for some languages there is only a single array item
|
||||||
$s = $t[0];
|
$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 {
|
} else {
|
||||||
$s = $t;
|
$s = $t;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue