diff --git a/src/i18n/TextCollection/i18nTextCollector.php b/src/i18n/TextCollection/i18nTextCollector.php index 5bc2d9381cd..3b3ae0610a5 100644 --- a/src/i18n/TextCollection/i18nTextCollector.php +++ b/src/i18n/TextCollection/i18nTextCollector.php @@ -773,9 +773,9 @@ public function collectFromCode($content, $fileName, Module $module) continue; } - // Allow _t(Entity.Key, 'translation', $var) and expand _t(Entity.Key, $var) + // Allow _t(Entity.Key, 'default text', $var) and expand _t(Entity.Key, $var) if ($id == T_VARIABLE && !empty($currentEntity)) { - // We have a default text, eg: _t(Entity.Key, 'translation', $var) + // We have a default text, eg: _t(Entity.Key, 'default text', $var) if (count($currentEntity) == 2) { continue; } @@ -784,7 +784,7 @@ public function collectFromCode($content, $fileName, Module $module) // Try to find it _t(Entity.Key, $var) $stringValue = $stringVariables[$text] ?? null; - // It's translated, continue + // It has a default translation, continue if ($stringValue) { $currentEntity[] = $stringValue; continue;