-
- Downloads
[FIX] tools: reimport translations in csv
Before this commit trying to reimport csv of a translation failed. The reason was that before 632fa044 the parsing was common between po and csv while now it's split in two different parsers. The res_id column of the CSV is the external id of the record and is handled by IrTranslationImport. Use DictReader instead of csv_reader to easily add new keys and still be flexible on the given csv files. Match the POReader format with a imd_model and imd_name column. As for the PoFileReader, the code translations are unique and must be discarded in case of duplicate. Correct the error message if the imported file is not correct (was missing an argument) Fixes odoo/odoo#50975 closes odoo/odoo#51468 X-original-commit: 3cedadb5ba606e156f52e70ed08b25ac2df8d58b Signed-off-by:Martin Trigaux (mat) <mat@odoo.com>
Showing
- odoo/addons/base/wizard/base_import_language.py 1 addition, 1 deletionodoo/addons/base/wizard/base_import_language.py
- odoo/addons/test_translation_import/tests/test_term_count.py 29 additions, 0 deletionsodoo/addons/test_translation_import/tests/test_term_count.py
- odoo/tools/translate.py 21 additions, 4 deletionsodoo/tools/translate.py
Loading
Please register or sign in to comment