diff options
| author | P. Christeas <p_christ@hol.gr> | 2010-12-29 13:28:50 +0200 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2010-12-29 13:28:50 +0200 |
| commit | fbc69de16b96abb42825c2bdb6c84641e91f23ab (patch) | |
| tree | da4aff7a097f121da8ccc1c2c9d9da34b22c69d6 /bin/tools | |
| parent | 761c638a54e601406fd4b01e8f37c44512f8ddcf (diff) | |
translate: export the orm and report code translations
bzr revid: p_christ@hol.gr-20101229112850-cqe0wxxtewyfdjsk
Diffstat (limited to 'bin/tools')
| -rw-r--r-- | bin/tools/translate.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/tools/translate.py b/bin/tools/translate.py index 1e29b4f474e..8fd060c8112 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -219,6 +219,7 @@ class GettextAlias(object): logger.debug('no translation language detected, skipping translation for "%r" ', source) except Exception: logger.debug('translation went wrong for "%r", skipped', source) + # if so, double-check the root/base translations filenames finally: if cr and is_new_cr: cr.close() @@ -748,6 +749,10 @@ def trans_generate(lang, modules, dbname=None): path_list = apaths else : path_list = [root_path,] + apaths + + # Also scan these non-addon paths + for bin_path in ['osv', 'report' ]: + path_list.append(os.path.join(tools.config['root_path'], bin_path)) logger.debug("Scanning modules at paths: ", path_list) |
