diff options
| author | Odoo's Mergebot <xmo+roboto@odoo.com> | 2019-11-19 14:58:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-19 14:58:29 +0100 |
| commit | f591ec1ea992b624657c53edc2744f1663d09f28 (patch) | |
| tree | 58f987c40de79837328605be86d43509b335d7ce /addons/web/static/src/js/views | |
| parent | ab4507ed32626acfe88f205289210151ebd9c647 (diff) | |
| parent | 95ed21795d1618c0144f50d5265cee6c21c332d4 (diff) | |
[IMP] *: translation methods cleaning
Extract some cleaning wanted in #30759 but not related to language packs
- `amount_to_text` should work only on activated languages
- deprecate `load_lang` and rely on `_create_lang` or `_activate_lang`
- `trans_load_data` and `_load_module_terms` no longer silently activate languages
- pass explicitly parameters instead of relying on context content
- replace some `IrTranslation._load_module_terms(['base'], ['fr_FR'])` by `BaseModule._update_translations(['fr_FR'])` for higher level methods
- create `TranslationExporter` class to clarify the `trans_export` method (and clean dead code)
closes odoo/odoo#38859
Task-id: 2088290
Pad: https://pad.odoo.com/p/r.f6f789f8711d21314bd902972153ea9d
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views')
0 files changed, 0 insertions, 0 deletions
