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?
Log Error with custom language file
Moderator: crythias
Re: Log Error with custom language file
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/
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- 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
Here's the file.
I have registered to Transifex with intentions to use spare time translating.
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.
-
- 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
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.
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.
Re: Log Error with custom language file
Please change the line
package Kernel::Language::nb_NO; to package Kernel::Language::nb_NO_Custom;
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- 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
Brilliant! That fixed the problem.
Thank you.
Thank you.