one more try

This commit is contained in:
Matthias Bussonnier 2018-09-16 18:12:41 +02:00
parent d239839e07
commit 07126ca8a5

View File

@ -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',