Use better order for existing translation when importing po file
review701002
This commit is contained in:
1 parent
7bea08c745
commit
d5b8bba99a
1 file changed
+7
-3
@@ -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'):
|
||||
|
||||
Reference in new issue
Block a user