Fixing a translation bug in Login page

Hi, I would like to fix a translation bug in the Login page, but I'm not a perl programmer, so I don't know the syntax. The problem is in Kernel/Output/HTML/Standard/Login.tt file at line 171: [% Translate("Welcome to %s", Config("ProductName")) | html %] This is not working, displaying "Welcome to OTRS 4" in Hungarian too. To display a correct Hungarian message ("Üdvözli az OTRS 4") I made this change: [% Translate("Welcome to") | html %] [% Config("ProductName") %] I know this is not the correct solution, but it works. How to fix it corretly? Regards, Balázs

On 29.03.2015 18:10, Úr Balázs wrote:
Hi,
I would like to fix a translation bug in the Login page, but I'm not a perl programmer, so I don't know the syntax.
The problem is in Kernel/Output/HTML/Standard/Login.tt file at line 171: [% Translate("Welcome to %s", Config("ProductName")) | html %]
This is not working, displaying "Welcome to OTRS 4" in Hungarian too. To display a correct Hungarian message ("Üdvözli az OTRS 4") I made this change: [% Translate("Welcome to") | html %] [% Config("ProductName") %]
I know this is not the correct solution, but it works. How to fix it corretly?
The string %s is replaced by the product name, so couldn't you just use the translation "Üdvözli az %s"? Cheers, Moritz

2015-03-31 8:31 GMT+02:00 Moritz Lenz
The string %s is replaced by the product name, so couldn't you just use the translation "Üdvözli az %s"?
Hi Moritz, It should be replaced, but it doesn't replace it. In my translation file there is a "Üdvözli az %s" entry, but on the login screen only "Üdvözli az " is displayed. And the .pot file doesn't contain this message, I have to add it manually. So the problems are: - %s doesn't replace with the product name - this message is missing from the .pot (and the .po and .pm) file(s) Regards, Balázs
participants (2)
-
Moritz Lenz
-
Úr Balázs