Reviewers: ,
Please review this at http://codereview.tryton.org/310001/ Affected files: M localize_modules.py Index: localize_modules.py =================================================================== --- a/localize_modules.py +++ b/localize_modules.py @@ -17,13 +17,14 @@ trytond_path, _ = os.path.split(module_path) trytond = config.set_trytond(database_name=opts.db, user=opts.user, password=opts.password) + language = Model.get('ir.lang').find([('code', '=', opts.lang)])[0] Module = Model.get('ir.module.module') for module in Module.find([('state', '=', 'installed')]): export_wizard = Wizard('ir.translation.export') wiz_form = export_wizard.form - wiz_form.lang = opts.lang - wiz_form.module = module.name - export_wizard.execute('start') + wiz_form.language = language + wiz_form.module = module + export_wizard.execute('export') base_path = EXCEPTION_PATH.get(module.name, os.path.join('modules', module.name)) locale_dir = os.path.join(trytond_path, base_path, 'locale') -- [email protected] mailing list
