Skip to content

Commit 07126ca

Browse files
committed
one more try
1 parent d239839 commit 07126ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setupbase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def finalize_options(self):
352352
def run(self):
353353
paths = glob('notebook/i18n/??_??')
354354
for p in paths:
355-
LANG = p.split('/')[-1]
355+
LANG = p[-5:]
356356
for component in ['notebook', 'nbui']:
357357
run(['pybabel', 'compile',
358358
'-D', component,
@@ -551,7 +551,7 @@ def build_main(self, name):
551551
run(['node', 'tools/build-main.js', name])
552552

553553
def build_jstranslation(self, trd):
554-
lang = trd.split('/')[2]
554+
lang = trd[-5:]
555555
run(['po2json', '-p', '-F',
556556
'-f', 'jed1.x',
557557
'-d', 'nbjs',

0 commit comments

Comments
 (0)