From 95bb9e3c8b6c2855977568df551ccb386e261ac9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 25 Jun 2016 10:10:37 +0530 Subject: [PATCH] Cleanup up run() --- setup/translations.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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