Translate XML configuration values

English! place to talk about development, programming and coding
Post Reply
ebernier
Znuny newbie
Posts: 18
Joined: 20 Jan 2012, 20:52
Znuny Version: 3.0.2
Real Name: Evans Bernier
Company: Solutions Libergia inc.
Location: Victoriaville, Quebec, Canada
Contact:

Translate XML configuration values

Post by ebernier »

Hello,

By default, in configuration system, the configuration values come from some XML files (Ticket.xml, Support.xml, Scheduler.xml, GenericInterface.xml...). Some configurations values are in English. Is there a solution to translate these values in french?

Thanks
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Translate XML configuration values

Post by jojo »

the frontend should do if the french translation contains these sentences
"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
ebernier
Znuny newbie
Posts: 18
Joined: 20 Jan 2012, 20:52
Znuny Version: 3.0.2
Real Name: Evans Bernier
Company: Solutions Libergia inc.
Location: Victoriaville, Quebec, Canada
Contact:

Re: Translate XML configuration values

Post by ebernier »

Hello,

I don't talk about sentenses in <Descrition> tag, but the configuration values.
Per example, in Ticket.xml :
<Setting>
<String Regex="">Ticket#</String>
</Setting>
The string "Ticket#" is a configuration value. This value is not translated even if the string is in the translation file.

Do you have a solution?

If there is no solution for now, I have one:
During the installation process, after the language selection, a new script will be run. In this script, we will have the list of all configuration values that can change by a translated value. The script will take a look in the translation file and replace the value by the translation in system configuration.

Does this kind of modification can be accepted by your community?

Thanks
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Translate XML configuration values

Post by jojo »

you should not change any of the values, this could break OTRS. There is also no need to change this for different languages automatically. OTRS is a multi language system, so a lot of different languages can be used at the same time


Please have a look here: doc.otrs.org/developer/3.0/en/html/contributing.html
"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
ebernier
Znuny newbie
Posts: 18
Joined: 20 Jan 2012, 20:52
Znuny Version: 3.0.2
Real Name: Evans Bernier
Company: Solutions Libergia inc.
Location: Victoriaville, Quebec, Canada
Contact:

Re: Translate XML configuration values

Post by ebernier »

Hello,

In our case, only the french will be use. Some settings can be manually changed to relfect the language like "Ticket#" become "# de demande". For this kind of configuration that doesn't break OTRS, is there a way to permit to modify the system like my solution above?

Thanks
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Translate XML configuration values

Post by jojo »

this is an individual setting per customer. I know a lot of french customers using here Ticket# other words.
"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
Post Reply