Projects names translation

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
Joselyne
Posts: 16
Joined: 14 Dec 2023, 15:59

Projects names translation

Post by Joselyne »

Hello,

Is it possible to translate projects names?
I've tried to do it in custom_strings_inc.php, but it does not work while it works when i translate custom fields.

Thaks for your reply.
Joselyne
cas
Posts: 1625
Joined: 11 Mar 2006, 16:08
Contact:

Re: Projects names translation

Post by cas »

How did you try to code it?
Joselyne
Posts: 16
Joined: 14 Dec 2023, 15:59

Re: Projects names translation

Post by Joselyne »

Suppose the name of the project is "Gestion" in french. I add the following to the custom_strings_inc.php file:

switch($g_active_language){
case 'french' :
$s_gestion = 'Gestion';
break;
case 'italian':
$s_gestion = 'Gestione';
break;

default:
//default is english
$s_gestion = 'Managment';
break;
}
cas
Posts: 1625
Joined: 11 Mar 2006, 16:08
Contact:

Re: Projects names translation

Post by cas »

With the custom_fields you are not changing the value of a field but only the fieldname. Since you are trying to translate the contents of a db-field, this is not going to work.
Joselyne
Posts: 16
Joined: 14 Dec 2023, 15:59

Re: Projects names translation

Post by Joselyne »

How can i do this then?
cas
Posts: 1625
Joined: 11 Mar 2006, 16:08
Contact:

Re: Projects names translation

Post by cas »

What I used to do was:
a. use an internationally recognized project-name
b. Standardize on one, main, language
Post Reply