View ProjeQtOr On
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Translatable name. How to add new ? - ProjeQtOr

Translatable name. How to add new ?

08 Aug 2011 18:34 - 13 Oct 2014 08:58 #1 by babynus
Some items have a translatable name.
This means that when you have such an item, what is displayed is not directly its name, but a translation of its name.
These items are easily identified : they have a property $_isNameTranslatable = true;
Most of these items are internal lists, not updatable through the tool.
But two of them can be modified : "profile" and "access mode".
They are easily identified, because under the name field appears the translated name (display only).
This means you can add one new item, but then how do you set its name ?

Here is an example on how to add a new profile :
Add the new profile, and set its name to a significant value, without spaces or special characters, and idealy starting with "profile" (to be easily identified in the translation table). For instance, we will name it "profileNewValue".
Enter all the other values as desired and save.
After saving, you can see displayed value is "[profileNewValue]", meaning this value is not found in the translation table.
You must then add a new line in the lang.xls file. First download it from the "download" menu.
Open in in Excel, and allow macros.
Then, you must add a new line in lang.xls, with string="profileNewValue" (example) and default, en, fr and de columns with the caption you want to display.
Then, "save as" (to position the default directoriy in Excel, don't use direct "save") and click on "Generate". This will generate a lang.js file in the current directory and in the en, fr and de sub-directories.
Then you may copy these files to replace existing ones in the /tool/i18n/nls directory on your server.
Just display the profile again : the name is now translated.

NB: don't forget to save your lang.xls file and identify your changes (for instance using vers. column) because you will have to re-apply them after each new version deployment.

Administrator of ProjeQtOr web site
Last edit: 13 Oct 2014 08:58 by protion.
The topic has been locked.
10 Dec 2011 14:50 #2 by OctoBB
Hy Babynus,

Please, can you explain me in more detail where I must create the profile (in wich php file [in Parameter>Access rights > Profiles ???] or only a new row in Excel [where I must place it?]) , and why the lang combobox in user parameters (in ProjectOr php page) don'd display my new language? Can you explain in more detail every step?
P.S. I want to make the Romanian translation of ProjectOr and after to send that translation to you, but I'm very confused about steps.
(Sorry if i post in bad place...)
Thank you very much!
The topic has been locked.
10 Dec 2011 16:52 #3 by babynus
To add new translation :
- download the lang.xls file in the download section
- copy it in /tool/i18n/nls
- open it with MS-Excel
- use one existing column, except 'default' and replace text of this column with your tranlation.
don't change the header of the column (en, fr, de, es or pt) : you will replace this language with your own
- use "save as" and save with the current name (no change), just to position the defaut directory
- click on the "generate" button : this should update all the lang.js file in current and sub-directories

If your Project'Or RIA instance is remote, not on Windows, just do the same locally and copy the generated lang.xls files to your server.
Then you can test your translation locally.

When done, send me the xls file, I will include the new language in the next version.

nb : this is explained is the user manual :


Administrator of ProjeQtOr web site
The topic has been locked.
10 Dec 2011 17:09 #4 by babynus
About translatable name, complete description can be found in the user manual :

Administrator of ProjeQtOr web site
The topic has been locked.
Moderators: babynusprotion
Time to create page: 0.043 seconds

Cookies settings


Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.


Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.