I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 28e96d3e authored by str4d's avatar str4d
Browse files

Handle zh -> zh_CN for a few legacy pages

parent 2d412878
No related branches found
No related tags found
No related merge requests found
......@@ -182,6 +182,8 @@ def legacy_show(f):
lang = 'en'
if hasattr(g, 'lang') and g.lang:
lang = g.lang
if lang == 'zh':
lang = 'zh_CN'
if f in LEGACY_FUNCTIONS_MAP:
return redirect(url_for(LEGACY_FUNCTIONS_MAP[f]['function'], lang=lang, **LEGACY_FUNCTIONS_MAP[f]['params']))
elif f in LEGACY_PAGES_MAP:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment