Use better order for existing translation when importing po file

review701002
This commit is contained in:
Cédric Krier committed 2013-03-05 10:31:15 +01:00
1 parent 7bea08c745
commit d5b8bba99a
1 file changed
+7 -3
+7 -3
View File
@@ -528,9 +528,13 @@ class Translation(ModelSQL, ModelView):
id2translation = {}
key2ids = {}
module_translations = cls.search([
('lang', '=', lang),
('module', '=', module),
])
('lang', '=', lang),
('module', '=', module),
],
order=[
('type', 'DESC'),
('name', 'DESC'),
])
for translation in module_translations:
if translation.type in ('odt', 'view', 'wizard_button',
'selection', 'error'):