-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Problem
In CustomerFAQExplorer.pm, the code uses:
my $SearchName = Translatable("Search") . ":";
$SearchName .= " " .Translatable($ModeName) . " \"$String\";";
This approach is problematic because:
- Translatable("Search") marks "Search" for translation at build time but does NOT translate it immediately at runtime
- The colon ":" is concatenated as plain text after translation registration
- The resulting string "Search:" is passed to the template
- The template calls Translate("Search:") but this exact string was never registered for translation
- Result: The translation fails and "Search:" is displayed untranslated
Current State
- Translation file de_FAQ.pm has: 'Search' => 'Suche' (translated)
- But there is NO translation for "Search:" (with colon)
- The original string "Search:" was never properly registered for translation
Solution
Replace the string concatenation approach with immediate translation:
my $LayoutObject = $Kernel::OM->Get('Kernel::Output::HTML::Layout');
my $SearchName = $LayoutObject->{LanguageObject}->Translate("Search") . ":";
$SearchName .= " " . $LayoutObject->{LanguageObject}->Translate($ModeName) . " \"$String\";";
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels