1.1 --- a/pymove3d.py Sat Jan 18 21:05:22 2014 +0100
1.2 +++ b/pymove3d.py Sun Jan 19 07:53:05 2014 +0100
1.3 @@ -20,14 +20,15 @@
1.4 app = Flask(__name__)
1.5 babel = Babel(app)
1.6
1.7 +app.config['BABEL_DEFAULT_LOCALE'] = 'de'
1.8 +
1.9 def get_topmenue():
1.10 - topmenue = [('/competition', _('Competition')),
1.11 - ('/task', _('Task')),
1.12 - ('/submission', _('Submission')),
1.13 - ('/coursematerial', _('Coursematerial')),
1.14 - ]
1.15 -
1.16 - return topmenue
1.17 + menue = [('/competition', u'Competition'),
1.18 + ('/task', 'Task'),
1.19 + ('/submission', u'Submission'),
1.20 + ('/coursematerial', u'Coursematerial'),
1.21 + ]
1.22 + return menue
1.23
1.24 app.jinja_env.globals.update(get_topmenue=get_topmenue)
1.25
2.1 --- a/templates/theme.html Sat Jan 18 21:05:22 2014 +0100
2.2 +++ b/templates/theme.html Sun Jan 19 07:53:05 2014 +0100
2.3 @@ -43,13 +43,10 @@
2.4 <ul class="nav navbar-nav navbar-right">
2.5 {% for href, caption in get_topmenue(): %}
2.6 {%- if href[1:] == act -%}
2.7 - <li class="active">{% else %} <li>{% endif %}<a href="{{ href }}" >{{ caption }}</a></li>
2.8 + <li class="active">{% else %} <li>{% endif %}<a href="{{ href }}" >{{ _(caption) }}</a></li>
2.9 {% endfor %}
2.10 - <!-- ToDo add after translation finished
2.11 <li class="module-language"><a class="link-yellow" href="./de">DE</a></li>
2.12 -
2.13 <li><a class="link-yellow" href="./en">EN</a></li>
2.14 - -->
2.15 </ul>
2.16 </div><!--/.nav-collapse -->
2.17 </div>
3.1 Binary file translations/de/LC_MESSAGES/messages.mo has changed
4.1 --- a/translations/de/LC_MESSAGES/messages.po Sat Jan 18 21:05:22 2014 +0100
4.2 +++ b/translations/de/LC_MESSAGES/messages.po Sun Jan 19 07:53:05 2014 +0100
4.3 @@ -3,14 +3,13 @@
4.4 # This file is distributed under the same license as the PROJECT project.
4.5 # FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
4.6 #
4.7 -#, fuzzy
4.8 msgid ""
4.9 msgstr ""
4.10 "Project-Id-Version: PROJECT VERSION\n"
4.11 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
4.12 "POT-Creation-Date: 2014-01-18 20:46+0100\n"
4.13 -"PO-Revision-Date: 2014-01-18 20:46+0100\n"
4.14 -"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
4.15 +"PO-Revision-Date: 2014-01-19 07:48+0100\n"
4.16 +"Last-Translator: Peter Koppatz <peter.koppatz@sudile.com>\n"
4.17 "Language-Team: de <LL@li.org>\n"
4.18 "Plural-Forms: nplurals=2; plural=(n != 1)\n"
4.19 "MIME-Version: 1.0\n"