pymove3d.py
changeset 145 95d788307e42
parent 144 3b768d0f09ef
child 146 2e05b89881ed
equal deleted inserted replaced
144:3b768d0f09ef 145:95d788307e42
    18 #ToDo after engelish is implemented set LANGUAGE_SELECTED = None
    18 #ToDo after engelish is implemented set LANGUAGE_SELECTED = None
    19 
    19 
    20 app = Flask(__name__)
    20 app = Flask(__name__)
    21 babel = Babel(app)
    21 babel = Babel(app)
    22 
    22 
       
    23 app.config['BABEL_DEFAULT_LOCALE'] = 'de'
       
    24 
    23 def get_topmenue():
    25 def get_topmenue():
    24     topmenue = [('/competition', _('Competition')),
    26     menue =  [('/competition', u'Competition'),
    25                 ('/task', _('Task')),
    27               ('/task', 'Task'),
    26                 ('/submission', _('Submission')),
    28               ('/submission', u'Submission'),
    27                 ('/coursematerial', _('Coursematerial')),
    29               ('/coursematerial', u'Coursematerial'),
    28                 ]
    30               ]
    29     
    31     return menue
    30     return topmenue
       
    31 
    32 
    32 app.jinja_env.globals.update(get_topmenue=get_topmenue)
    33 app.jinja_env.globals.update(get_topmenue=get_topmenue)
    33 
    34 
    34 
    35 
    35 @babel.localeselector
    36 @babel.localeselector
Impressum Datenschutzerklärung