Translations export has no fixed order
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP's Framework R&D | |||
OpenERP Community Backports (Server) | Status tracked in 7.0 | |||||
7.0 |
Fix Released
|
Low
|
Lionel Sausin - Initiatives/Numérigraphe |
Bug Description
1- export a .po using the Administration > Translations > Import/Export, export a file for a module,
2- add some fields on any object of the module:
'test_translation': fields.
'test_translati
for example
3- reexport the .po exported in step 1
You will get 2 files containing the same data (with the exception of the new fields to translate) BUT in a totally different order making the difference between this two files enormous while just one line should have changed...
This is only because of the use of dictionnary in the export function and the fact that dictionnaries' keys are not sorted in python:
changing only some lines from:
for src, row in grouped_
to:
for src in sorted(
row = grouped_rows[src]
makes sure the translation are always exported in the same order making the historization of the translations way easier/clearer.
Related branches
- Olivier Dony (Odoo): Approve
- Pedro Manuel Baeza (community): Approve
- Yannick Vaucher @ Camptocamp (community): Approve
- Guewen Baconnier @ Camptocamp (community): Approve (code review, no test)
- Xavier Fernandez http://www.smile.fr (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedopenerp/tools/translate.py (+1/-1)
- Sandy Carter (http://www.savoirfairelinux.com): Approve (code review)
- Holger Brunn (Therp): Approve (code review)
- Yann Papouin: Approve
- Pedro Manuel Baeza: Approve (code review)
-
Diff: 12 lines (+1/-1)1 file modifiedopenerp/tools/translate.py (+1/-1)
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Low |
status: | Incomplete → Confirmed |
tags: | added: maintenance |
Changed in openobject-server: | |
assignee: | OpenERP's Framework R&D (openerp-dev-framework) → OpenERP Publisher's Warranty Team (openerp-opw) |
no longer affects: | openobject-server/6.1 |
no longer affects: | openobject-server/6.0 |
no longer affects: | openobject-server/trunk |
Hello Xavier Fernandez ,
I have checked your issue with the latest code of 6.1 but I didn't face any problem as you have describe in bug specification. So would you please elaborate more on this issue like, which version you did check this issue, revision number and give proper steps with video what you did at your end ?
Would you please tried with latest code and informed us where you faced the problem.
Thanks and waiting for your reply.