How to translate a message in Kernel/System/*.pm

Hi, I imported a process named "Egyedi megrendelés", and this notification appeared (see attached picture): "Process Egyedi megrendelés and all its data has been imported successfully." This string is located here: https://github.com/OTRS/otrs/blob/master/Kernel/System/ProcessManagement/DB/... Martin Gruner explained, why can not translate these kind of strings in backends: https://github.com/OTRS/otrs/pull/1037#issuecomment-198247289 If a string has no parameter, Translatable() can mark it for translation, and somewhere else in the .tt files will be translated. But what about if a string has a parameter? Neither Translatable(), nor $LanguageObject can not be used in backend files. How to translate this kind of strings? Regards, Balázs

Hello Ur, this looks broken. I believe that Translate() should be used on this string, and it should be changed to have a placeholder replaced by Translate() with the process name. Martin Gruner Team Lead R&D OTRS AG Bahnhofplatz 1a 94315 Straubing T: +49 (0)6172 681988 0 F: +49 (0)9421 56818 18 I: www.otrs.com/ Geschäftssitz: Bad Homburg, Amtsgericht: Bad Homburg, HRB 10751, USt-Nr.: DE256610065 Aufsichtsratsvorsitzender: Burchard Steinbild, Vorstand: André Mindermann (Vorsitzender), Christopher Kuhn, Sabine Riedel Mobile Kommunikation und transparente Prozesse - Mit der OTRS Business Solution™ Managed 5 schnell und ohne eigene IT-Ressourcen starten - Jetzt neue Features entdecken und bestellen https://www.otrs.com/neu-in-otrs-business-solution-5-mobile-kommunikation-tr...
Am 07.04.2016 um 23:13 schrieb Úr Balázs
: Hi,
I imported a process named "Egyedi megrendelés", and this notification appeared (see attached picture): "Process Egyedi megrendelés and all its data has been imported successfully."
This string is located here: https://github.com/OTRS/otrs/blob/master/Kernel/System/ProcessManagement/DB/...
Martin Gruner explained, why can not translate these kind of strings in backends: https://github.com/OTRS/otrs/pull/1037#issuecomment-198247289
If a string has no parameter, Translatable() can mark it for translation, and somewhere else in the .tt files will be translated.
But what about if a string has a parameter? Neither Translatable(), nor $LanguageObject can not be used in backend files. How to translate this kind of strings?
Regards, Balázs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
participants (2)
-
Martin Gruner
-
Úr Balázs