mirror of
https://github.com/jupyter/notebook.git
synced 2024-11-21 01:11:21 +08:00
one more try
This commit is contained in:
parent
d239839e07
commit
07126ca8a5
@ -352,7 +352,7 @@ class CompileBackendTranslation(Command):
|
|||||||
def run(self):
|
def run(self):
|
||||||
paths = glob('notebook/i18n/??_??')
|
paths = glob('notebook/i18n/??_??')
|
||||||
for p in paths:
|
for p in paths:
|
||||||
LANG = p.split('/')[-1]
|
LANG = p[-5:]
|
||||||
for component in ['notebook', 'nbui']:
|
for component in ['notebook', 'nbui']:
|
||||||
run(['pybabel', 'compile',
|
run(['pybabel', 'compile',
|
||||||
'-D', component,
|
'-D', component,
|
||||||
@ -551,7 +551,7 @@ class CompileJS(Command):
|
|||||||
run(['node', 'tools/build-main.js', name])
|
run(['node', 'tools/build-main.js', name])
|
||||||
|
|
||||||
def build_jstranslation(self, trd):
|
def build_jstranslation(self, trd):
|
||||||
lang = trd.split('/')[2]
|
lang = trd[-5:]
|
||||||
run(['po2json', '-p', '-F',
|
run(['po2json', '-p', '-F',
|
||||||
'-f', 'jed1.x',
|
'-f', 'jed1.x',
|
||||||
'-d', 'nbjs',
|
'-d', 'nbjs',
|
||||||
|
Loading…
Reference in New Issue
Block a user