diff options
| author | Olivier LAURENT <olivier.laurent@acsone.eu> | 2015-02-26 15:06:01 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2015-07-14 11:40:16 +0200 |
| commit | e12cecea9d33146b863f10f79c8a8319deb8dec5 (patch) | |
| tree | fb82bf5f84cabed55e1531a3387915741164f92d | |
| parent | 312b85ee2aba9fcefa7801f3a5113c8f08f08305 (diff) | |
[FIX] tools: separator in po comments
Comments in .po(t) files for translations of type "code" (e.g. field labels)
specify the path to the file containing the translation. This path should be
OS-independent to get the same result whatever the plateform the instance is
running on.
Closes #7561
| -rw-r--r-- | openerp/tools/translate.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openerp/tools/translate.py b/openerp/tools/translate.py index 1c53b47beff..bdc6052dbdd 100644 --- a/openerp/tools/translate.py +++ b/openerp/tools/translate.py @@ -874,6 +874,8 @@ def trans_generate(lang, modules, cr): display_path = "addons%s" % frelativepath module = get_module_from_path(fabsolutepath, mod_paths=mod_paths) if ('all' in modules or module in modules) and module in installed_modules: + if os.path.sep != '/': + display_path = display_path.replace(os.path.sep, '/') return module, fabsolutepath, frelativepath, display_path return None, None, None, None |
