Allow to put languages file in a subfolder
This commit is contained in:
1 parent
8a7b7a2b06
commit
433174afbc
1 file changed
+1
-1
@@ -256,7 +256,7 @@ def load_module_graph(graph, pool, lang=None):
|
||||
|
||||
for filename in package.datas.get('translation', []):
|
||||
filename = filename.replace('/', os.sep)
|
||||
lang2 = os.path.splitext(filename)[0]
|
||||
lang2 = os.path.splitext(os.path.basename(filename))[0]
|
||||
if lang2 not in lang:
|
||||
continue
|
||||
logger.info('%s:loading %s' % (module, filename))
|
||||
|
||||
Reference in new issue
Block a user