pymove3d.py
changeset 168 da7e673fae7b
parent 167 e928502fe563
child 169 934e2d8e279d
equal deleted inserted replaced
167:e928502fe563 168:da7e673fae7b
    56 @app.route("/index")
    56 @app.route("/index")
    57 def index():
    57 def index():
    58     saying, author = get_saying()
    58     saying, author = get_saying()
    59     return render_template("/index.html", 
    59     return render_template("/index.html", 
    60                            saying = saying,
    60                            saying = saying,
    61                            author = author)
    61                            author = author,
       
    62                            competition_info=_('About Competition'),
       
    63                            dates=_('Dates'))
    62 
    64 
    63 @app.route('/de')
    65 @app.route('/de')
    64 def de():
    66 def de():
    65     global LANGUAGE_SELECTED
    67     global LANGUAGE_SELECTED
    66     LANGUAGE_SELECTED = "de"
    68     LANGUAGE_SELECTED = "de"
    67     saying, author = get_saying()
    69     saying, author = get_saying()
    68     return render_template("/index.html",
    70     return render_template("/index.html",
    69                            saying = saying,
    71                            saying = saying,
    70                            author = author)
    72                            author = author,
       
    73                            competition_info=_('About Competition'),
       
    74                            dates=_('Dates'))
    71 
    75 
    72 @app.route('/en')
    76 @app.route('/en')
    73 def en():
    77 def en():
    74     saying, author = get_saying()
    78     saying, author = get_saying()
    75     global LANGUAGE_SELECTED
    79     global LANGUAGE_SELECTED
    76     LANGUAGE_SELECTED = "en"
    80     LANGUAGE_SELECTED = "en"
    77     return render_template("/index.html",
    81     return render_template("/index.html",
    78                            saying = saying,
    82                            saying = saying,
    79                            author = author)
    83                            author = author,
       
    84                            competition_info=_('About Competition'),
       
    85                            dates=_('Dates'))
    80 
    86 
    81 @app.route("/competition")
    87 @app.route("/competition")
    82 def competition():
    88 def competition():
    83     filename = os.path.join("templates", get_locale(), "rst", "competition.rst")
    89     filename = os.path.join("templates", get_locale(), "rst", "competition.rst")
    84     content = get_content(filename)
    90     content = get_content(filename)
Impressum Datenschutzerklärung