mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
a2043ced89
commit
a95f3d5ec1
@ -80,6 +80,8 @@ def compile_pyj(data, filename='<stdin>', beautify=True, private_scope=True, lib
|
|||||||
return c.eval('exports["compile"](rs_source_code, %s, current_options)' % json.dumps(filename))
|
return c.eval('exports["compile"](rs_source_code, %s, current_options)' % json.dumps(filename))
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
# Translations {{{
|
||||||
|
|
||||||
def create_pot(source_files):
|
def create_pot(source_files):
|
||||||
ctx = compiler()
|
ctx = compiler()
|
||||||
ctx.g.gettext_options = {
|
ctx.g.gettext_options = {
|
||||||
@ -103,6 +105,7 @@ def msgfmt(po_data_as_string):
|
|||||||
ctx.g.po_data = po_data_as_string
|
ctx.g.po_data = po_data_as_string
|
||||||
ctx.g.msgfmt_options = {'use_fuzzy': False}
|
ctx.g.msgfmt_options = {'use_fuzzy': False}
|
||||||
return ctx.eval('exports.msgfmt(po_data, msgfmt_options)')
|
return ctx.eval('exports.msgfmt(po_data, msgfmt_options)')
|
||||||
|
# }}}
|
||||||
|
|
||||||
# REPL {{{
|
# REPL {{{
|
||||||
def leading_whitespace(line):
|
def leading_whitespace(line):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user