translation not done
Bug #638796 reported by
Jean-Luc WEYL
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In 5.0.14, a field defined in a .xml with attribute string="xxx" will never be translated using a .po file.
Exemple
in base/res/
<field domain="[('domain', '=', 'contact')]" name="title" string="Type"/>
If you try to translate "Type" into something else using a .po file, it will not work.
Solution:
in base/ir/
#if source and not trad:
# return source
affects: | account-banking → openobject-addons |
To post a comment you must log in.
Hello Jean,
For getting translation in xml strings you need to have translation with type view. So you need to have an entry in the ir_translation with type=view. For that keep the entry in the .po file of your installed language as shown below and update the server. You'll get the required translation in your view.
For e.g.
In your case the entry would be :
in fr.po
#. module: base
#: view:res.partner:0
msgid "Type"
msgstr "Typo"
Thanks.