Errors with german language

Hello,
When I set the language for the user to german RT stops to function properly.
Many pages only show “An internal RT error has occurred. Your administrator can find more details in RT’s log files.”

The log file says:
[30091] [Wed Feb 26 07:36:47 2020] [error]: Error in maketexting “Refresh this page every [quant,_1,second,seconds].”:
Can’t locate object method “Anzahl” via package “RT::I18N::de”
in bracket code [compiled line 2], as used at /opt/rt4/share/html/l line 50.

Stack:
[/usr/local/share/perl/5.26.1/Carp.pm:291]
[/usr/share/perl/5.26/Locale/Maketext.pm:337]
[/opt/rt4/share/html/l:50]
[/opt/rt4/share/html/Elements/Refresh:62]
[/opt/rt4/share/html/Elements/RefreshHomepage:51]
[/opt/rt4/share/html/Widgets/TitleBox:61]
[/opt/rt4/share/html/Elements/RefreshHomepage:53]
[/opt/rt4/share/html/Elements/MyRT:100]
[/opt/rt4/share/html/index.html:78]
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:697]
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:376]
[/opt/rt4/share/html/autohandler:53] (/opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm:209)

It is a new installation of rt 4.4.4
If the language is set to english this error doesn’t occour.

Hello Sebaulrich,

This was a bug in the language translation files released with RT 4.4.4. We have a fix for it that you can apply as a patch. You can download the patch here:

https://github.com/bestpractical/rt/commit/a12613d974e01a507f2b19a7fbf682b350d056f3.patch

Once you get the patch on your RT server (wget or curl), you can apply with:

$ patch -p1 -d /opt/rt4 < a12613d974e01a507f2b19a7fbf682b350d056f3.patch

Then clear the Mason template cache:

$ sudo rm -rf /opt/rt4/var/mason_data/obj

And restart your webserver (Apache or other).

2 Likes

Thanks for the quick help.
Now it works.