eskp.py
changeset 265 69babac65a72
parent 264 bdf11bb4cb98
child 267 64c9f7ecbac4
equal deleted inserted replaced
264:bdf11bb4cb98 265:69babac65a72
   100 
   100 
   101 @app.route('/de')
   101 @app.route('/de')
   102 def de():
   102 def de():
   103     global LANGUAGE_SELECTED
   103     global LANGUAGE_SELECTED
   104     LANGUAGE_SELECTED = "de"
   104     LANGUAGE_SELECTED = "de"
   105     saying, author = get_saying()
       
   106     return render_template("/index.html",
   105     return render_template("/index.html",
   107                            saying=saying,
       
   108                            author=author,
       
   109                            eskp_info=_(u'About ESKP'),
   106                            eskp_info=_(u'About ESKP'),
   110                            )
   107                            )
   111 
   108 
   112 @app.route('/en')
   109 @app.route('/en')
   113 def en():
   110 def en():
   114     saying, author = get_saying()
       
   115     global LANGUAGE_SELECTED
   111     global LANGUAGE_SELECTED
   116     LANGUAGE_SELECTED = "en"
   112     LANGUAGE_SELECTED = "en"
   117     return render_template("/index.html",
   113     return render_template("/index.html",
   118                            saying=saying,
       
   119                            author=author,
       
   120                            eskp_info=_(u'About ESKP'),
   114                            eskp_info=_(u'About ESKP'),
   121                            )
   115                            )
   122 
   116 
   123 @app.route("/eskp")
   117 @app.route("/eskp")
   124 def eskp():
   118 def eskp():
Impressum Datenschutzerklärung