Merge lp:~etsinko/aeroo/aeroo-trans_parse_view-fix into lp:aeroo

Proposed by Egor Tsinko
Status: Approved
Approved by: sraps (Alistek)
Approved revision: 4
Proposed branch: lp:~etsinko/aeroo/aeroo-trans_parse_view-fix
Merge into: lp:aeroo
Diff against target: 30 lines (+3/-3)
1 file modified
report_aeroo/translate.py (+3/-3)
To merge this branch: bzr merge lp:~etsinko/aeroo/aeroo-trans_parse_view-fix
Reviewer Review Type Date Requested Status
Alistek developers - http://www.alistek.com Pending
Review via email: mp+151993@code.launchpad.net

Description of the change

This modification renames trans_parse_view() function to extract_translatable_view_strings() as it was recently renamed in OpenERP 7.0

To post a comment you must log in.

Unmerged revisions

4. By Egor Tsinko

Renamed trans_parse_view() to extract_translatable_view_strings() as it was renamed in OpenERP 7.0

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'report_aeroo/translate.py'
2--- report_aeroo/translate.py 2013-02-01 16:11:17 +0000
3+++ report_aeroo/translate.py 2013-03-06 15:48:21 +0000
4@@ -26,7 +26,7 @@
5 import pooler
6 import re
7 import tools
8-from tools.translate import trans_parse_rml, trans_parse_xsl, trans_parse_view
9+from tools.translate import trans_parse_rml, trans_parse_xsl, extract_translatable_view_strings
10 import itertools
11 import fnmatch
12 from os.path import join
13@@ -92,7 +92,7 @@
14
15 if model=='ir.ui.view':
16 d = etree.XML(encode(obj.arch))
17- for t in trans_parse_view(d):
18+ for t in extract_translatable_view_strings(d):
19 push_translation(module, 'view', encode(obj.model), 0, t)
20 elif model=='ir.actions.wizard':
21 service_name = 'wizard.'+encode(obj.wiz_name)
22@@ -128,7 +128,7 @@
23 arch = result['arch']
24 if arch and not isinstance(arch, UpdateableStr):
25 d = etree.XML(arch)
26- for t in trans_parse_view(d):
27+ for t in extract_translatable_view_strings(d):
28 push_translation(module, 'wizard_view', name, 0, t)
29
30 # export button labels

Subscribers

People subscribed via source and target branches