[I18N] migrate to the nex transifex API
Tansifex is deprecating it's client and switches to a go-based solution in its API v3 The new client is still backward compatible with the old format but the v2 API is going to be phased out. See https://github.com/transifex/cli to install the deplyments using the tx client This PR is the result of the "tx migrate" command closes odoo/odoo#112402 Transifex: adapt to new URL format X-original-commit: 7ca55aec4f1faa8bc2ad80d730a7f0771df3998e Related: odoo/documentation#3534 Related: odoo/enterprise#36950 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
+267
-268
File diff suppressed because it is too large
Load Diff
@@ -33,8 +33,10 @@ class TransifexTranslation(models.AbstractModel):
|
||||
):
|
||||
if isfile(tx_path):
|
||||
tx_config_file.read(tx_path)
|
||||
# tx_config_file.sections(): ['main', 'odoo-16.sale', ...]
|
||||
projects.update(sec.split('.')[::-1] for sec in tx_config_file.sections()[1:])
|
||||
# tx_config_file.sections(): ['main', 'o:odoo:p:odoo-16:r:base', ...]
|
||||
for sec in tx_config_file.sections()[1:]:
|
||||
_, _, _, tx_project, _, tx_mod = sec.split(':')
|
||||
projects[tx_mod] = tx_project
|
||||
return projects
|
||||
|
||||
def _update_transifex_url(self, translations):
|
||||
|
||||
Reference in New Issue
Block a user