On Monday, November 3, 2014 2:40:04 PM UTC-3, Cédric Krier wrote:
>
> On 03 Nov 09:07, Mariano Ramon wrote: 
> >   
> > 
> > > Since [1], it is possible to forge a po file that will overide 
> > > translations. You must just reuse the same line as in original po file 
> > > but prefix ressource ID by the module name + '.'. 
> > > 
> > > [1] http://hg.tryton.org/trytond/rev/62615d5dba33 
> > > 
> > > 
> > 
> > Could you clarify this with an example. 
> > 
> > I have something like this: 
> > 
> > msgctxt "model:ir.action,name:act_psc_form1" 
> > msgid "PSC" 
> > msgstr "LSP" 
> > 
> > and I have a module named custom, should I write: 
> > 
> > 
> > msgctxt "model:ir.action,name:.custom.act_psc_form1" 
> > msgid "PSC" 
> > msgstr "LSP" 
>
> Without the point: 
> msgctxt "model:ir.action,name:custom.act_psc_form1" 
>
> > should I add the resource to my module too? 
>
> in locale/xx_XX.po file 
>
>

I meant if I have to add it to the view file of my own module, like when 
extending views.

I get this error when adding it like this example and updating the module:

[Tue Nov 04 13:06:11 2014] INFO:modules:custom:loading locale/es_AR.po
Traceback (most recent call last):
  File "./gnuhealth/xxxxxxx/server/trytond-3.2.3/bin/trytond", line 113, in 
<module>
    trytond.server.TrytonServer(options).run()
  File 
"/home/xxxxxxx/gnuhealth/tryton/server/trytond-3.2.3/trytond/server.py", 
line 123, in run
    Pool(db_name).init(update=update, lang=lang)
  File 
"/home/xxxxxxx/gnuhealth/tryton/server/trytond-3.2.3/trytond/pool.py", line 
151, in init
    lang=lang)
  File 
"/home/xxxxxxx/gnuhealth/tryton/server/trytond-3.2.3/trytond/modules/__init__.py",
 
line 429, in load_modules
    _load_modules()
  File 
"/home/xxxxxxx/gnuhealth/tryton/server/trytond-3.2.3/trytond/modules/__init__.py",
 
line 397, in _load_modules
    load_module_graph(graph, pool, lang)
  File 
"/home/xxxxxxx/gnuhealth/tryton/server/trytond-3.2.3/trytond/modules/__init__.py",
 
line 264, in load_module_graph
    Translation.translation_import(lang2, module, filename)
  File 
"/home/xxxxxxx/gnuhealth/tryton/server/trytond-3.2.3/trytond/ir/translation.py",
 
line 855, in translation_import
    override_translation(res_id, translation)
  File 
"/home/xxxxxxx/gnuhealth/tryton/server/trytond-3.2.3/trytond/ir/translation.py",
 
line 813, in override_translation
    ('fs_id', '=', res_id),
ValueError: need more than 0 values to unpack

Thanks!. My superiors are talking about donating. Bureaucracy is a fickle 
mistress and exchange rates to euros are insane here, but we are on it.
Have a good day.

Reply via email to