Log Error with custom language file

Moderator: crythias

Post Reply
raskall
Znuny newbie
Posts: 12
Joined: 19 Apr 2018, 13:43
Znuny Version: 3.1.21
Real Name: Rolf-Arne Schulze
Company: NiSec

Log Error with custom language file

Post by raskall »

Hi

I have copied the Kernel/Language/nb_NO.pm to nb_NO_Custom.pm. In the custom file I translate things that are not translated and change the things that are badly translated. And it works.

But today I checked the system log and I have a lot of these errors in the log:

Jul 24 10:38:51 otrs2018 OTRS-CGI-10[2280]: [Error][Kernel::Language::new][Line:212]: Sorry, can't load Kernel::Language::nb_NO_Custom! Check if it provides Data method.

There are very few hits on this on google. What does it mean? Is there a way to get rid of this error?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Log Error with custom language file

Post by jojo »

please post the file

Did you know that you als can help to make the official translation better? Check out https://www.transifex.com/otrs/OTRS/
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
raskall
Znuny newbie
Posts: 12
Joined: 19 Apr 2018, 13:43
Znuny Version: 3.1.21
Real Name: Rolf-Arne Schulze
Company: NiSec

Re: Log Error with custom language file

Post by raskall »

Here's the file.

I have registered to Transifex with intentions to use spare time translating.
You do not have the required permissions to view the files attached to this post.
raskall
Znuny newbie
Posts: 12
Joined: 19 Apr 2018, 13:43
Znuny Version: 3.1.21
Real Name: Rolf-Arne Schulze
Company: NiSec

Re: Log Error with custom language file

Post by raskall »

It seems there's nothing wrong with the Custom file. I moved the nb_NO.pm to another place and renamed the custom file to nb_NO.pm and the errors are gone.

As long as I take note of this and rememnber to back up the file before upgrades and adds it back after upgrades it will be OK. But that is not a solution I prefer.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Log Error with custom language file

Post by jojo »

Please change the line

package Kernel::Language::nb_NO; to package Kernel::Language::nb_NO_Custom;
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
raskall
Znuny newbie
Posts: 12
Joined: 19 Apr 2018, 13:43
Znuny Version: 3.1.21
Real Name: Rolf-Arne Schulze
Company: NiSec

Re: Log Error with custom language file

Post by raskall »

Brilliant! That fixed the problem.

Thank you. :)
Post Reply