~savoirfairelinux-openerp/ocb-server/7.0_mail_thread_translate_bug1262000

« back to all changes in this revision

Viewing changes to openerp/tools/translate.py

  • Committer: Sandy Carter
  • Author(s): Mohammed Shekha
  • Date: 2014-04-06 00:21:03 UTC
  • Revision ID: sandy.carter@savoirfairelinux.com-20140406002103-f1s751dy1psuwlr6
[FIX]Base, Tools Translation: Fixed the issue of translation, warnings, except_orm and which is raised through OpenERPSession class send method or raised xmlrpclib.Fault in xmlrpc_handle_exception_legacy will also not be translatanble, also there is no way through which translation terms which are used outside any module like used in tools and service will not be registered in pot when translation is exported, we need to add those path explicitly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
856
856
        path_list = [root_path,] + apaths
857
857
 
858
858
    # Also scan these non-addon paths
859
 
    for bin_path in ['osv', 'report' ]:
 
859
    for bin_path in ['osv', 'report', 'tools', 'service' ]:
860
860
        path_list.append(os.path.join(config.config['root_path'], bin_path))
861
861
 
862
862
    _logger.debug("Scanning modules at paths: ", path_list)