[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dolibarr-dev] extrafields label

From: Christophe Battarel
Subject: Re: [Dolibarr-dev] extrafields label
Date: Fri, 23 May 2014 13:41:17 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

The simple way (for the labels) is to apply $langs->trans() to the label, so if it's in a loaded language file, it's translated, otherwise it's kept as is.

But you're right this also must be thinked about for stored values.

Le 23/05/2014 13:33, Florian HENRY a écrit :
Hello Christophe,

    For me it's have be consider as a new feature.

I already think about it, but I don't know how to do it properly regarding the table structure. May be create llx_extrafield_langs tables, that will store the translation of label, and also the translation of values (for list,select list, select from table, checkbox, radio,etc...) and play with fetch_optionals, fetch_name_optionals_label, showInput and showOutput method to limit impact on other pat of the code.


Florian Henry
+33 6 03 76 48 07
Twitter : @_Open_Concept_

Le 23/05/2014 13:22, Christophe Battarel a écrit :
Hello everybody,
Extrafields are great stuff, but their labels are not using the dolibarr translation system, so it's quite useless for multi-language companies, or for module developers.
I would like to do a PR to fix it, but on which branch ?
Can i consider this as a dysfonctionnement or a new feature ?

Dolibarr-dev mailing list

Dolibarr-dev mailing list

Christophe Battarel
Responsable technique
sarl altairis
Informatique et Web en Grésivaudan
33 Grande Rue
38570 Goncelin
09 52 71 70 96 (appel local)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]