pymove3d.py
changeset 141 ea70f3d81676
parent 123 9eb7837f7332
child 142 6dea01810014
equal deleted inserted replaced
140:ae4cd5fbf65f 141:ea70f3d81676
     9 
     9 
    10 from flask.ext.babel import gettext as _
    10 from flask.ext.babel import gettext as _
    11 from flask.ext.babel import Babel
    11 from flask.ext.babel import Babel
    12 
    12 
    13 from config import LANGUAGES
    13 from config import LANGUAGES
       
    14 from sayings import get_saying
    14 
    15 
    15 LANGUAGE_SELECTED = "de"
    16 LANGUAGE_SELECTED = "de"
    16 #ToDo after engelish is implemented set LANGUAGE_SELECTED = None
    17 #ToDo after engelish is implemented set LANGUAGE_SELECTED = None
    17 
    18 
    18 app = Flask(__name__)
    19 app = Flask(__name__)
    25 
    26 
    26 
    27 
    27 @app.route("/")
    28 @app.route("/")
    28 @app.route("/index")
    29 @app.route("/index")
    29 def index():
    30 def index():
    30     return render_template(get_locale() + "/index.html")
    31     saying, author = get_saying()
       
    32     return render_template(get_locale() + "/index.html", 
       
    33                            saying = saying,
       
    34                            author = author)
    31 
    35 
    32 @app.route('/de')
    36 @app.route('/de')
    33 def de():
    37 def de():
    34     global LANGUAGE_SELECTED
    38     global LANGUAGE_SELECTED
    35     LANGUAGE_SELECTED = "de"
    39     LANGUAGE_SELECTED = "de"
Impressum Datenschutzerklärung