Allow to put languages file in a subfolder

This commit is contained in:
Nicolas Évrard committed 2011-09-27 18:32:40 +02:00
1 parent 8a7b7a2b06
commit 433174afbc
1 file changed
+1 -1
+1 -1
View File
@@ -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))