[FIX] translations resynchro terms
bzr revid: fp@tinyerp.com-20090610081157-5g0sw2ahciqpfbvd
This commit is contained in:
parent
2a76f3898f
commit
781a14d672
|
@ -3424,6 +3424,7 @@ msgstr "Configuration de l'action client"
|
|||
#. module: base
|
||||
#: model:ir.actions.act_window,name:base.action_partner_address_form
|
||||
#: model:ir.model,name:base.model_res_partner_address
|
||||
#: model:ir.ui.menu,name:base.menu_partner_address_form
|
||||
#: view:res.partner.address:0
|
||||
msgid "Partner Addresses"
|
||||
msgstr "Adresses des Partenaires"
|
||||
|
|
|
@ -928,7 +928,7 @@
|
|||
<field name="res_model">ir.translation</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_id" ref="view_translation_tree"/>
|
||||
<field name="domain">[('value', '=', False)]</field>
|
||||
<field name="domain">['|',('value', '=', False),('value','=','')]</field>
|
||||
</record>
|
||||
<menuitem action="action_translation_untrans" id="menu_action_translation_untrans" parent="menu_action_translation"/>
|
||||
|
||||
|
|
|
@ -524,8 +524,11 @@ def trans_generate(lang, modules, dbname=None):
|
|||
for field_name,field_def in pool.get(model)._columns.items():
|
||||
if field_def.translate:
|
||||
name = model + "," + field_name
|
||||
trad = getattr(obj, field_name) or ''
|
||||
push_translation(module, 'model', name, xml_name, encode(trad))
|
||||
try:
|
||||
trad = getattr(obj, field_name) or ''
|
||||
push_translation(module, 'model', name, xml_name, encode(trad))
|
||||
except:
|
||||
pass
|
||||
|
||||
# parse source code for _() calls
|
||||
def get_module_from_path(path):
|
||||
|
@ -643,8 +646,8 @@ def trans_load_data(db_name, fileobj, fileformat, lang, strict=False, lang_name=
|
|||
for row in reader:
|
||||
line += 1
|
||||
# skip empty rows and rows where the translation field (=last fiefd) is empty
|
||||
if (not row) or (not row[-1]):
|
||||
continue
|
||||
#if (not row) or (not row[-1]):
|
||||
# continue
|
||||
|
||||
# dictionary which holds values for this line of the csv file
|
||||
# {'lang': ..., 'type': ..., 'name': ..., 'res_id': ...,
|
||||
|
|
Loading…
Reference in New Issue