[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
This commit is contained in:
parent
312b85ee2a
commit
e12cecea9d
|
@ -874,6 +874,8 @@ def trans_generate(lang, modules, cr):
|
||||||
display_path = "addons%s" % frelativepath
|
display_path = "addons%s" % frelativepath
|
||||||
module = get_module_from_path(fabsolutepath, mod_paths=mod_paths)
|
module = get_module_from_path(fabsolutepath, mod_paths=mod_paths)
|
||||||
if ('all' in modules or module in modules) and module in installed_modules:
|
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 module, fabsolutepath, frelativepath, display_path
|
||||||
return None, None, None, None
|
return None, None, None, None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue