From e12cecea9d33146b863f10f79c8a8319deb8dec5 Mon Sep 17 00:00:00 2001 From: Olivier LAURENT Date: Thu, 26 Feb 2015 15:06:01 +0100 Subject: [PATCH] [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 --- openerp/tools/translate.py | 2 ++ 1 file changed, 2 insertions(+) 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