diff --git a/setup/translations.py b/setup/translations.py index a43d3e20a7..3acc55ce9f 100644 --- a/setup/translations.py +++ b/setup/translations.py @@ -216,6 +216,12 @@ class Translations(POT): # {{{ def run(self, opts): self.compile_content_server_translations() + self.compile_main_translations() + self.write_stats() + self.freeze_locales() + self.compile_user_manual_translations() + + def compile_main_translations(self): l = {} lc_dataf = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lc_data.py') exec(compile(open(lc_dataf, 'rb').read(), lc_dataf, 'exec'), l, l) @@ -255,10 +261,6 @@ class Translations(POT): # {{{ print (err) raise SystemExit(1) - self.write_stats() - self.freeze_locales() - self.compile_user_manual_translations() - def compile_content_server_translations(self): self.info('\nCompiling content-server translations') from calibre.utils.rapydscript import msgfmt