added further parameters and translations to index.htm
authorReimar Bauer <rb.proj AT googlemail DOT com>
Sun, 19 Jan 2014 13:31:34 +0100
changeset 168da7e673fae7b
parent 167 e928502fe563
child 169 934e2d8e279d
added further parameters and translations to index.htm
pymove3d.py
templates/index.html
translations/de/LC_MESSAGES/messages.mo
translations/de/LC_MESSAGES/messages.po
translations/en/LC_MESSAGES/messages.po
translations/pymove3d.pot
     1.1 --- a/pymove3d.py	Sun Jan 19 13:08:12 2014 +0100
     1.2 +++ b/pymove3d.py	Sun Jan 19 13:31:34 2014 +0100
     1.3 @@ -58,7 +58,9 @@
     1.4      saying, author = get_saying()
     1.5      return render_template("/index.html", 
     1.6                             saying = saying,
     1.7 -                           author = author)
     1.8 +                           author = author,
     1.9 +                           competition_info=_('About Competition'),
    1.10 +                           dates=_('Dates'))
    1.11  
    1.12  @app.route('/de')
    1.13  def de():
    1.14 @@ -67,7 +69,9 @@
    1.15      saying, author = get_saying()
    1.16      return render_template("/index.html",
    1.17                             saying = saying,
    1.18 -                           author = author)
    1.19 +                           author = author,
    1.20 +                           competition_info=_('About Competition'),
    1.21 +                           dates=_('Dates'))
    1.22  
    1.23  @app.route('/en')
    1.24  def en():
    1.25 @@ -76,7 +80,9 @@
    1.26      LANGUAGE_SELECTED = "en"
    1.27      return render_template("/index.html",
    1.28                             saying = saying,
    1.29 -                           author = author)
    1.30 +                           author = author,
    1.31 +                           competition_info=_('About Competition'),
    1.32 +                           dates=_('Dates'))
    1.33  
    1.34  @app.route("/competition")
    1.35  def competition():
     2.1 --- a/templates/index.html	Sun Jan 19 13:08:12 2014 +0100
     2.2 +++ b/templates/index.html	Sun Jan 19 13:31:34 2014 +0100
     2.3 @@ -8,9 +8,9 @@
     2.4  	<h1 class="header" style="color:white;padding-top: 45px;margin-bottom:30px;">Der Python Wettbewerb für Mädchen & Jungen ab 13 Jahren</h1>
     2.5  	<h4 class="" style="color:white;">3D Objekte mit Python steuern & bewegen</h4>
     2.6  	<a type="button" class="btn btn-default"
     2.7 -	   href="/competition">{{ _('competition_info') }}</a>
     2.8 +	   href="/competition">{{ competition_info }}</a>
     2.9  	<a  type="button" class="btn btn-default"  
    2.10 -	    href="{{ url_for('dates') }}">{{ _('dates') }}</a>
    2.11 +	    href="{{ url_for('dates') }}">{{ dates }}</a>
    2.12        </div>
    2.13      </div>
    2.14    </div>  
     3.1 Binary file translations/de/LC_MESSAGES/messages.mo has changed
     4.1 --- a/translations/de/LC_MESSAGES/messages.po	Sun Jan 19 13:08:12 2014 +0100
     4.2 +++ b/translations/de/LC_MESSAGES/messages.po	Sun Jan 19 13:31:34 2014 +0100
     4.3 @@ -7,7 +7,7 @@
     4.4  msgstr ""
     4.5  "Project-Id-Version: PROJECT VERSION\n"
     4.6  "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
     4.7 -"POT-Creation-Date: 2014-01-19 10:11+0100\n"
     4.8 +"POT-Creation-Date: 2014-01-19 13:22+0100\n"
     4.9  "PO-Revision-Date: 2014-01-19 07:48+0100\n"
    4.10  "Last-Translator: Peter Koppatz <peter.koppatz@sudile.com>\n"
    4.11  "Language-Team: de <LL@li.org>\n"
    4.12 @@ -17,28 +17,36 @@
    4.13  "Content-Transfer-Encoding: 8bit\n"
    4.14  "Generated-By: Babel 1.3\n"
    4.15  
    4.16 -#: pymove3d.py:26
    4.17 +#: pymove3d.py:39
    4.18  msgid "Competition"
    4.19  msgstr "Wettbewerb"
    4.20  
    4.21 -#: pymove3d.py:27
    4.22 +#: pymove3d.py:40
    4.23  msgid "Task"
    4.24  msgstr "Aufgabe"
    4.25  
    4.26 -#: pymove3d.py:28
    4.27 +#: pymove3d.py:41
    4.28  msgid "Submission"
    4.29  msgstr "Einreichnung"
    4.30  
    4.31 -#: pymove3d.py:29
    4.32 +#: pymove3d.py:42
    4.33  msgid "Coursematerial"
    4.34  msgstr "Kursmaterial"
    4.35  
    4.36 -#: pymove3d.py:112
    4.37 +#: pymove3d.py:62 pymove3d.py:73 pymove3d.py:84
    4.38 +msgid "About Competition"
    4.39 +msgstr "Der Wettbewerb"
    4.40 +
    4.41 +#: pymove3d.py:63 pymove3d.py:74 pymove3d.py:85
    4.42 +msgid "Dates"
    4.43 +msgstr "Termine"
    4.44 +
    4.45 +#: pymove3d.py:146
    4.46  #, python-format
    4.47  msgid "Url: %(url)s not found"
    4.48  msgstr "Url: %(url)s nicht gefunden"
    4.49  
    4.50 -#: pymove3d.py:113
    4.51 +#: pymove3d.py:147
    4.52  msgid "This information is not available!"
    4.53  msgstr "Diese Information ist nicht verfügbar"
    4.54  
     5.1 --- a/translations/en/LC_MESSAGES/messages.po	Sun Jan 19 13:08:12 2014 +0100
     5.2 +++ b/translations/en/LC_MESSAGES/messages.po	Sun Jan 19 13:31:34 2014 +0100
     5.3 @@ -8,7 +8,7 @@
     5.4  msgstr ""
     5.5  "Project-Id-Version: PROJECT VERSION\n"
     5.6  "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
     5.7 -"POT-Creation-Date: 2014-01-19 10:11+0100\n"
     5.8 +"POT-Creation-Date: 2014-01-19 13:22+0100\n"
     5.9  "PO-Revision-Date: 2014-01-18 20:46+0100\n"
    5.10  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    5.11  "Language-Team: en <LL@li.org>\n"
    5.12 @@ -18,28 +18,36 @@
    5.13  "Content-Transfer-Encoding: 8bit\n"
    5.14  "Generated-By: Babel 1.3\n"
    5.15  
    5.16 -#: pymove3d.py:26
    5.17 +#: pymove3d.py:39
    5.18  msgid "Competition"
    5.19  msgstr ""
    5.20  
    5.21 -#: pymove3d.py:27
    5.22 +#: pymove3d.py:40
    5.23  msgid "Task"
    5.24  msgstr ""
    5.25  
    5.26 -#: pymove3d.py:28
    5.27 +#: pymove3d.py:41
    5.28  msgid "Submission"
    5.29  msgstr ""
    5.30  
    5.31 -#: pymove3d.py:29
    5.32 +#: pymove3d.py:42
    5.33  msgid "Coursematerial"
    5.34  msgstr ""
    5.35  
    5.36 -#: pymove3d.py:112
    5.37 +#: pymove3d.py:62 pymove3d.py:73 pymove3d.py:84
    5.38 +msgid "About Competition"
    5.39 +msgstr ""
    5.40 +
    5.41 +#: pymove3d.py:63 pymove3d.py:74 pymove3d.py:85
    5.42 +msgid "Dates"
    5.43 +msgstr ""
    5.44 +
    5.45 +#: pymove3d.py:146
    5.46  #, python-format
    5.47  msgid "Url: %(url)s not found"
    5.48  msgstr ""
    5.49  
    5.50 -#: pymove3d.py:113
    5.51 +#: pymove3d.py:147
    5.52  msgid "This information is not available!"
    5.53  msgstr ""
    5.54  
    5.55 @@ -126,3 +134,6 @@
    5.56  msgid "Namespaces are one honking great idea -- let's do more of those!"
    5.57  msgstr ""
    5.58  
    5.59 +#~ msgid "dates"
    5.60 +#~ msgstr ""
    5.61 +
     6.1 --- a/translations/pymove3d.pot	Sun Jan 19 13:08:12 2014 +0100
     6.2 +++ b/translations/pymove3d.pot	Sun Jan 19 13:31:34 2014 +0100
     6.3 @@ -8,7 +8,7 @@
     6.4  msgstr ""
     6.5  "Project-Id-Version: PROJECT VERSION\n"
     6.6  "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
     6.7 -"POT-Creation-Date: 2014-01-19 10:11+0100\n"
     6.8 +"POT-Creation-Date: 2014-01-19 13:22+0100\n"
     6.9  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    6.10  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    6.11  "Language-Team: LANGUAGE <LL@li.org>\n"
    6.12 @@ -17,28 +17,36 @@
    6.13  "Content-Transfer-Encoding: 8bit\n"
    6.14  "Generated-By: Babel 1.3\n"
    6.15  
    6.16 -#: pymove3d.py:26
    6.17 +#: pymove3d.py:39
    6.18  msgid "Competition"
    6.19  msgstr ""
    6.20  
    6.21 -#: pymove3d.py:27
    6.22 +#: pymove3d.py:40
    6.23  msgid "Task"
    6.24  msgstr ""
    6.25  
    6.26 -#: pymove3d.py:28
    6.27 +#: pymove3d.py:41
    6.28  msgid "Submission"
    6.29  msgstr ""
    6.30  
    6.31 -#: pymove3d.py:29
    6.32 +#: pymove3d.py:42
    6.33  msgid "Coursematerial"
    6.34  msgstr ""
    6.35  
    6.36 -#: pymove3d.py:112
    6.37 +#: pymove3d.py:62 pymove3d.py:73 pymove3d.py:84
    6.38 +msgid "About Competition"
    6.39 +msgstr ""
    6.40 +
    6.41 +#: pymove3d.py:63 pymove3d.py:74 pymove3d.py:85
    6.42 +msgid "Dates"
    6.43 +msgstr ""
    6.44 +
    6.45 +#: pymove3d.py:146
    6.46  #, python-format
    6.47  msgid "Url: %(url)s not found"
    6.48  msgstr ""
    6.49  
    6.50 -#: pymove3d.py:113
    6.51 +#: pymove3d.py:147
    6.52  msgid "This information is not available!"
    6.53  msgstr ""
    6.54  
Impressum Datenschutzerklärung