dolibarr-dev
[Top][All Lists]
Advanced

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

Re: [Dolibarr-dev] Gettext


From: Sasa Ostrouska
Subject: Re: [Dolibarr-dev] Gettext
Date: Thu, 22 Mar 2012 06:44:22 -0300

On Thu, Mar 22, 2012 at 5:17 AM, Laurent Destailleur (eldy)
<address@hidden> wrote:
> Yes we think of it but we discard gettext for 2 reasons :
> * Gettext need to use original translation string into main code. this is
> not a good way of working. we must have a key inside code but not hard coded
> value, even it's hard coded value of only one language. Pb with this is that
> each time, there is a typo error into original language (english), we fix it
> into source code, but this break all translation for all other language
> because the key used to translate other files is
> * Gettext use binary systems and is not compliant with our rule "easy to
> use, easy to develop". Any user with no technical knowledge must be able to
> edit the translation file. For this a falt text file is really better.
> * Gettext need a PHP setup not always activated to be used by PHP. We want o
> software with no need of any PHP plugin at all, only PHP.
> 3 points for dolibarr system
> * The advantage of gettext we miss, is that there is technical tools to
> detect when a translation is changed to to update language file to add a tag
> inside it to tell "this sentence may need to be updated".
> 1 point for gettext.
>
> Also, the point 1 and 2 was the most important for us, we choose to not use
> gettext.
>

Ok I understand the reasons. But what is the reason to have the
strings in variables instead of having them
in the code hardcoded ?

Probably just to ease the translation. Correct ?

Rgds
Saxa

>
>
> Le 22/03/2012 03:00, Sasa Ostrouska a écrit :
>>
>> Hi, have you ever thought of using gettext to translate dolibarr ?
>> I think it would be much easier to use gettext than the current system.
>>
>> Anyway, can anybody tell me the advantages and disandvantages of the 2
>> systems ?
>>
>> Many projects use gettext as far as i know.
>>
>> Rgds
>> Saxa
>>
>> _______________________________________________
>> Dolibarr-dev mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
>
>
> --
> Eldy (Laurent Destailleur).
> ---------------------------------------------------------------
> EMail: address@hidden
> Web: http://www.destailleur.fr
>
> Dolibarr (Project leader): http://www.dolibarr.org
> To make a donation for Dolibarr project via Paypal: address@hidden
> AWStats (Author) : http://awstats.sourceforge.net
> To make a donation for AWStats project via Paypal: address@hidden
> AWBot (Author) : http://awbot.sourceforge.net
> CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net
>
>
> _______________________________________________
> Dolibarr-dev mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/dolibarr-dev



reply via email to

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