1.1 --- a/pymove3d.py Sat Jan 18 20:06:19 2014 +0100
1.2 +++ b/pymove3d.py Sat Jan 18 20:43:38 2014 +0100
1.3 @@ -12,6 +12,7 @@
1.4
1.5 from config import LANGUAGES
1.6 from sayings import get_saying
1.7 +from jinja2 import Environment, FileSystemLoader
1.8
1.9 LANGUAGE_SELECTED = "de"
1.10 #ToDo after engelish is implemented set LANGUAGE_SELECTED = None
1.11 @@ -19,6 +20,19 @@
1.12 app = Flask(__name__)
1.13 babel = Babel(app)
1.14
1.15 +def get_topmenue():
1.16 +
1.17 + topmenue = [('/competition', _('Competition')),
1.18 + ('/task', _('Task')),
1.19 + ('/submission', _('Submission')),
1.20 + ('/coursematerial', _('Coursematerial')),
1.21 + ]
1.22 +
1.23 + return topmenue
1.24 +
1.25 +app.jinja_env.globals.update(get_topmenue=get_topmenue)
1.26 +
1.27 +
1.28 @babel.localeselector
1.29 def get_locale():
1.30 """ToDo: if translation is completed, switch to en """