On 06/09/12 18:12 +0200, Raimon Esteve wrote:
> 2012/9/6 Cédric Krier <[email protected]>:
> >> Are available _('str') in tryton server?
> > No.
> 
> :(
> 
> Well, I need to create new method to transform string (english) to
> string language user:
> https://bitbucket.org/zikzakmedia/trytond-party_event/src/3b0033b36bbd/party_event.py#cl-44
> 
> And example to call:
> https://bitbucket.org/zikzakmedia/trytond-party_event/src/3b0033b36bbd/party_event.py#cl-71
> 
> Same as Tryton client or another python frameworks (1), also it's good
> idea use _('string'). Not all is error message:
> https://bitbucket.org/zikzakmedia/trytond-party_event/src/3b0033b36bbd/party_event.py#cl-27

You have to follow this way:
http://hg.tryton.org/modules/calendar_scheduling/file/189608575f90/calendar_.py#l119

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpiJMXm9YbfW.pgp
Description: PGP signature

Reply via email to