diff options
| author | Vo Minh Thu <vmt@openerp.com> | 2010-12-28 16:56:40 +0100 |
|---|---|---|
| committer | Vo Minh Thu <vmt@openerp.com> | 2010-12-28 16:56:40 +0100 |
| commit | 799ef1b9884364ccdff01e1d6764ca9e52950bee (patch) | |
| tree | c7c1411ab495e3d5dd9876533df457883e90f0d8 /bin/tools | |
| parent | 8f8001d5f0412c811233b8e68570f455e0df94ab (diff) | |
[ADD] clean-po.py: script to clean .po files.
bzr revid: vmt@openerp.com-20101228155640-hift2uqfcmif1s9r
Diffstat (limited to 'bin/tools')
| -rw-r--r-- | bin/tools/translate.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/bin/tools/translate.py b/bin/tools/translate.py index 20ebea164d9..6bd5f0dbce2 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -934,13 +934,8 @@ def trans_load_data(db_name, fileobj, fileformat, lang, lang_name=None, verbose= if dic['type'] == 'model': args.append(('res_id', '=', dic['res_id'])) ids = trans_obj.search(cr, uid, args) - if dic['src'] == "Coach" or dic['src'] == "Work E-mail": - print ">>>>>> %s %s" % (ids, context) - print ">>>>>> %s -> %s" % (dic['src'], dic['value']) if ids: if context.get('overwrite') and dic['value']: - if dic['src'] == "Coach" or dic['src'] == "Work E-mail": - print ">>>>>> overwriting" trans_obj.write(cr, uid, ids, {'value': dic['value']}) else: trans_obj.create(cr, uid, dic) |
