From 14840d206419807a7e61cb8305f784f3cefe663f Mon Sep 17 00:00:00 2001
From: xmo-odoo
Date: Wed, 4 Apr 2018 13:12:33 +0200
Subject: [PATCH] [IMP] core: modernize tgz translations export
* don't use FS to do export
* update translations export dialog to fix outdated links (launchpad
& 6.1 translations doc)
Note: can't use ``TarFile.gettarinfo`` to create the TarInfo object
because it wants an actual file object with a ``name`` attribute and
possibly even an fd.
closes #22798
---
.../wizard/base_export_language_views.xml | 6 ++--
odoo/tools/translate.py | 30 +++++++++++--------
2 files changed, 19 insertions(+), 17 deletions(-)
diff --git a/odoo/addons/base/wizard/base_export_language_views.xml b/odoo/addons/base/wizard/base_export_language_views.xml
index e5b591604fa..f06dc590156 100644
--- a/odoo/addons/base/wizard/base_export_language_views.xml
+++ b/odoo/addons/base/wizard/base_export_language_views.xml
@@ -24,13 +24,11 @@
the rightmost column (value) contains the translations
PO(T) format: you should edit it with a PO editor such as
POEdit, or your preferred text editor
- TGZ format: this is a compressed archive containing a PO file, directly suitable
- for uploading to Odoo's translation platform,
- Launchpad
+ TGZ format: bundles multiple PO(T) files as a single archive
For more details about translating Odoo in your language, please refer to the
- documentation.
+ documentation.