Community: Translators mailing list archives

Some translations that don't work

Projetgrup, Levent Karakaş
- 03/26/2015 12:22:21

I am trying to make Turkish translations and I have few cases that I couldn't get them work.

1) compute fields like this don't get translated:

name = fields.Char(
    compute='_get_name', string='Number'

<record model="ir.ui.view" id="view_account_check_tree">
<field name="name">test.tree</field>
<field name="model">test.test</field>
<field name="priority">100</field>
<field name="arch" type="xml">
<tree string="Test">
<field name="name"/>
I've tried several options like store=True translate=True with no luck. Put string='Number' in the beginning with no luck.

These terms are not exported as if they don't exist. If I add them manually to pot and po files they are imported but not shown.

2) raised Warnings in a wizard action:

Such as:class test_action(models.TransientModel):
    _name = 'test.action'
def action_confirm(self, cr, uid, ids, context=None):
  raise Warning(
_('Not translated.'))
with this form:

<record model="ir.ui.view" id="test.test_action_form_view">
<field name="name">test.action.wizard.form</field>
<field name="model">test.action</field>
<field name="arch" type="xml">
<form string="Test Action" version="7.0">
<field name="testing"/>
<button string="Confirm" name="action_confirm" type="object" class="oe_highlight"/>
<button string="Cancel" class="oe_link" special="cancel"/>
3) Warnings raised from within workflow:

It happens because there is no context (and language) when these messages triggered. Check this thread:

It seems like problem is still there.

I'll be glad if you can suggest workarounds/solutions for these cases.

Thanks in advance,
Levent Karakaş