Merge pull request #10 from apollo13/small-fixes

Okay, supporting 1.4 Django now. Older Django versions will have the icon missing but we can live with that.
This commit is contained in:
Jiri Barton 2012-06-05 06:39:52 -07:00
commit d2b6316460
4 changed files with 61 additions and 2 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"

View file

@ -55,7 +55,7 @@
{{item.form_field}}
</td>
<td>
<img src="{% admin_media_prefix %}img/admin/icon-{% if item.modified %}yes{% else %}no{% endif %}.gif" alt="%s" />
<img src="{% admin_media_prefix %}img/icon-{% if item.modified %}yes{% else %}no{% endif %}.gif" alt="{{ item.modified }}" />
</td>
</tr>
{% endfor %}