1.1 --- a/pymove3d.py Sat Jan 18 11:01:11 2014 +0100
1.2 +++ b/pymove3d.py Sat Jan 18 11:36:43 2014 +0100
1.3 @@ -18,7 +18,8 @@
1.4
1.5 @babel.localeselector
1.6 def get_locale():
1.7 - return request.accept_languages.best_match(LANGUAGES.keys())
1.8 + """ToDo: if translation is completed, switch to en """
1.9 + return request.accept_languages.best_match(LANGUAGES.keys()) or 'de'
1.10
1.11
1.12 @app.route("/")
1.13 @@ -45,12 +46,21 @@
1.14
1.15 @app.route("/imprint")
1.16 def imprint():
1.17 - return render_template(get_locale () + "/imprint.html", act="imprint")
1.18 + return render_template(get_locale() + "/imprint.html", act="imprint")
1.19
1.20 @app.route("/privacy")
1.21 def privacy():
1.22 return render_template(get_locale() + "/privacy.html", act="privacy")
1.23
1.24 +@app.route(_("/competition-2013"))
1.25 +def competition_2013():
1.26 + return render_template(get_locale() + "/archive/competitions/2013/comptetition_2013.html",
1.27 + act="coursematerial")
1.28 +
1.29 +@app.route(_("/competition-2014"))
1.30 +def competition_2014():
1.31 + return render_template(get_locale() + "archive/competitions/2014/competition_2014.html",
1.32 + act="coursematerial")
1.33
1.34 @app.errorhandler(404)
1.35 def page_not_found(e):