On 07 Apr 19:49, Christophe (net) wrote: > > > Le 07/04/2015 19:14, Cédric Krier a écrit : > >On 07 Apr 17:57, Christophe wrote: > >>Hello, > >> > >>In a new module I defined a selection field whose elements are updated > >>dynamically (by a method that returns tuples). I translate all fields in the > >>module (including tuple of selection) but at the time of display in a view > >>the list of items still desperately in English. Yet in the documentation > >>states that the default selection fields are translatable. > >>I have this problem in v3.0, v3.2, v3.4 (I have not tested on versions prior > >>to v3.0). > >>Has anyone ever encountered this trouble? > > > >If you are using a method to define the selection options, the method > >must manage itself the translation of the options. > > > Ok, is there somewhere a sample to make that ?
Usualy such data come from the database so you just have to use a translatable field. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/