mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 00:24:09 +02:00
Cleanup up run()
This commit is contained in:
parent
7937c083e4
commit
95bb9e3c8b
1 changed files with 6 additions and 4 deletions
|
|
@ -216,6 +216,12 @@ def mo_file(self, po_file):
|
|||
|
||||
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 @@ def run(self, opts):
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue