Permalink
Browse files

Include translate directory when loading overlays

  • Loading branch information...
1 parent ba08c9a commit 4ddc00df90e06816b5accef1d4d25177f865aefc @Gadgetoid committed Nov 1, 2016
Showing with 6 additions and 1 deletion.
  1. +6 −1 urlmapper.py
View
@@ -31,7 +31,12 @@ def load_overlay_url(overlay, lang):
loaded = data['data']
except IOError:
- return None
+ try:
+ data = markjaml.load('src/{}/translate/{}.md'.format(lang, overlay))
+
+ loaded = data['data']
+ except IOError:
+ return None
if not 'page_url' in loaded:
loaded['page_url'] = url_slugify(loaded['name'])

0 comments on commit 4ddc00d

Please sign in to comment.