allow translation of the help_text and add german translations.

This commit is contained in:
Florian Apolloner 2012-02-17 16:35:48 +01:00
parent bcf2143703
commit 88a479f7a4
3 changed files with 60 additions and 1 deletions

View file

@ -95,7 +95,7 @@ class ConstanceAdmin(admin.ModelAdmin):
context['config'].append({
'name': name,
'default': localize(default),
'help_text': help_text,
'help_text': _(help_text),
'value': localize(value),
'modified': value != default,
'form_field': form[name]

Binary file not shown.

View file

@ -0,0 +1,59 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-02-17 16:33+0100\n"
"PO-Revision-Date: 2012-02-17 16:34+0100\n"
"Last-Translator: Florian Apolloner <apollo13@apolloner.eu>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
#: admin.py:79
msgid "Live settings updated successfully."
msgstr "Die Livekonfiguration wurde erfolgreich aktualisiert."
#: admin.py:83
msgid "Constance config"
msgstr "Constance Konfiguration"
#: backends/database/models.py:18
msgid "constance"
msgstr ""
#: backends/database/models.py:19
msgid "constances"
msgstr ""
#: templates/admin/constance/change_list.html:39
msgid "Name"
msgstr "Name"
#: templates/admin/constance/change_list.html:40
msgid "Default"
msgstr "Voreinstellung"
#: templates/admin/constance/change_list.html:41
msgid "Value"
msgstr "Wert"
#: templates/admin/constance/change_list.html:42
msgid "Is modified"
msgstr "Ist modifiziert"
#: templates/admin/constance/change_list.html:64
msgid "Save"
msgstr "Speichern"
#: templates/admin/constance/change_list.html:74
msgid "Home"
msgstr "Start"