* Add dutch translations.
from django.shortcuts import render_to_response
from django.shortcuts import get_object_or_404
+from django import newforms as forms
+from django.utils.translation import ugettext as _
from ee.influences.models import Character
from ee.influences.models import Influence
-from django import newforms as forms
class InfluenceForm(forms.ModelForm):
class Meta:
f = InfluenceForm(request.POST)
if (f.is_valid()):
f.save()
- message = "Influence added"
+ message = _("Influence added.")
f = None
else:
f = InfluenceForm()
--- /dev/null
+# Evolution Events translations
+# This file is distributed under the same license as the containing package.
+# Matthijs Kooijman <matthijs@stdin.nl>, 2008
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2008-01-23 18:43+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: Matthijs Kooijman <matthijs@stdin.nl>\n"
+"Language-Team: N/A\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: influences/views.py:20
+msgid "Influence added."
+msgstr "Invloed toegevoegd."
+
+#: templates/base/login.html:7
+msgid "Your username and password didn't match. Please try again."
+msgstr "Je gebruikersnaam en/of wachtwoord kloten niet. Probeer het opnieuw."
+
+#: templates/base/login.html:11
+#, python-format
+msgid "You are currently logged in as %(username)s"
+msgstr "Je bent nu ingelogd als %(username)s"
+
+#: templates/base/login.html:12
+msgid "Logout"
+msgstr "Uitloggen"
+
+# Translated by django
+#: templates/base/login.html:17
+msgid "Username"
+msgstr ""
+
+# Translated by django
+#: templates/base/login.html:18
+msgid "Password"
+msgstr ""
+
+#: templates/base/login.html:21
+msgid "Login"
+msgstr "Inloggen"
+
+#: templates/influences/character_addinfluence.html:2
+#: templates/influences/character_detail.html:10
+msgid "Submit influence"
+msgstr "Invloed indienen"
+
+#: templates/influences/character_addinfluence.html:11
+msgid "Submit"
+msgstr "Indienen"
+
+#: templates/influences/character_detail.html:3
+#, python-format
+msgid "Influences for %(name)s"
+msgstr "Invloeden voor %(name)s"
+
+#: templates/influences/character_list.html:2
+msgid "Your characters"
+msgstr "Jouw karakters"
+
+#: templates/influences/character_list.html:10
+msgid ""
+"No characters. Add a character first, so you can submit your influences."
+msgstr ""
+"Geen karakters. Voeg eerst een karakter toe, zodat je invloeden kun indienen."
# Language code for this installation. All choices can be found here:
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
# http://blogs.law.harvard.edu/tech/stories/storyReader$15
-LANGUAGE_CODE = 'en-us'
+#LANGUAGE_CODE = 'en-us'
+LANGUAGE_CODE = 'nl'
+LANGUAGES = (
+ ('en', 'English'),
+ ('nl', 'Nederlands'),
+)
SITE_ID = 1
+{% load i18n %}
{% extends "base/base.html" %}
{% block content %}
{% if form.has_errors %}
-<p>Your username and password didn't match. Please try again.</p>
+<p>{% trans "Your username and password didn't match. Please try again." %}</p>
{% endif %}
{% if user.is_authenticated %}
- <p>You are currently logged in as {{ user.username }}</p>
- <p><a href="../logout/">Logout</a></p>
+ <p>{% blocktrans with user.username as username %}You are currently logged in as {{ username }}{% endblocktrans %}</p>
+ <p><a href="../logout/">{% trans "Logout" %}</a></p>
{% endif %}
<form method="post" action=".">
<table>
-<tr><td><label for="id_username">Username:</label></td><td>{{ form.username }}</td></tr>
-<tr><td><label for="id_password">Password:</label></td><td>{{ form.password }}</td></tr>
+<tr><td><label for="id_username">{% trans "Username" %}</label></td><td>{{ form.username }}</td></tr>
+<tr><td><label for="id_password">{% trans "Password" %}</label></td><td>{{ form.password }}</td></tr>
</table>
-<input type="submit" value="login" />
+<input type="submit" value="{% trans "Login" %}" />
<input type="hidden" name="next" value="{{ next }}" />
</form>
-<h1><a href="/influences/character/{{ character.id }}/">{{ character.name }}</a></h1>
-<p>Influence toevoegen</p>
+{% load i18n %}
+<h2>{% trans "Submit influence" %}</h2>
{% if message %}
{{ message }}
{% endif %}
<table>
{{ form.as_table }}
</table>
-<input type="submit"/>
+<input type="submit" value="{% trans "Submit" %}"/>
</form>
{% endif %}
-<h1>{{ object.name }}</h1>
-Influences voor {{ object.name }}
+{% load i18n %}
+<h2>{{ object.name }}</h2>
+<h3>{% blocktrans with object.name as name %}Influences for {{ name }}{% endblocktrans %}</h3>
<ul>
{% for influence in object.influence_set.objects.all %}
<li>{{ influence }}</li>
{% endfor %}
</ul>
-<a href="/influences/character/{{ object.id }}/addinfluence">Influence toevoegen</a>
+<a href="/influences/character/{{ object.id }}/addinfluence">{% trans "Submit influence" %}</a>
+{% load i18n %}
+<h2>{% trans "Your characters"%}</h2>
{% if object_list %}
<ul>
{% for character in object_list %}
{% endfor %}
</ul>
{% else %}
- <p>Geen karakters.</p>
+ <p>{% trans "No characters. Add a character first, so you can submit your influences." %}</p>
{% endif %}