Merge pull request #222 from JoshLabs/vb_validation_fix

Fixed #201
This commit is contained in:
Camilo Nova 2017-11-06 11:47:22 -05:00 committed by GitHub
commit 7da7598291
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 436 additions and 259 deletions

View file

@ -149,6 +149,19 @@ class ConstanceForm(forms.Form):
'form and resubmit your changes.'))
return value
def clean(self):
cleaned_data = super(ConstanceForm, self).clean()
field_name_list = []
for fieldset_title, fields_list in settings.CONFIG_FIELDSETS.items():
for field_name in fields_list:
field_name_list.append(field_name)
if set(set(settings.CONFIG.keys()) - set(field_name_list)):
raise forms.ValidationError(_('CONSTANCE_CONFIG_FIELDSETS does not contain '
'fields that exist in CONSTANCE_CONFIG.'))
return cleaned_data
class ConstanceAdmin(admin.ModelAdmin):
change_list_template = 'admin/constance/change_list.html'

View file

@ -1,48 +1,58 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: django-constance\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-11-27 19:05+0100\n"
"POT-Creation-Date: 2017-06-13 19:40+0530\n"
"PO-Revision-Date: 2014-11-27 18:13+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Czech (Czech Republic) (http://www.transifex.com/projects/p/django-constance/language/cs_CZ/)\n"
"Language-Team: Czech (Czech Republic) (http://www.transifex.com/projects/p/"
"django-constance/language/cs_CZ/)\n"
"Language: cs_CZ\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: cs_CZ\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#: admin.py:72
#: admin.py:113
#, python-format
msgid ""
"Default value type must be equal to declared config parameter type. Please "
"fix the default value of '%(name)s'."
msgstr ""
#: admin.py:123
#, python-format
msgid ""
"Constance doesn't support config values of the type %(config_type)s. Please "
"fix the value of '%(name)s'."
msgstr ""
#: admin.py:91
#: admin.py:147
msgid ""
"The settings have been modified by someone else. Please reload the form and "
"resubmit your changes."
msgstr ""
#: admin.py:129
#: admin.py:160
msgid ""
"CONSTANCE_CONFIG_FIELDSETS does not contain fields that exist in "
"CONSTANCE_CONFIG."
msgstr ""
#: admin.py:224
msgid "Live settings updated successfully."
msgstr "Nastavení bylo úspěšně uloženo."
#: admin.py:134
msgid "Constance config"
msgstr "Nastavení konstant"
#: admin.py:177
#: admin.py:285
msgid "config"
msgstr "nastavení"
#: apps.py:9
#: apps.py:8
msgid "Constance"
msgstr ""
@ -54,26 +64,33 @@ msgstr "konstanta"
msgid "constances"
msgstr "konstanty"
#: templates/admin/constance/change_list.html:50
msgid "Name"
msgstr "Název"
#: management/commands/constance.py:30
msgid "Get/Set In-database config settings handled by Constance"
msgstr ""
#: templates/admin/constance/change_list.html:51
msgid "Default"
msgstr "Výchozí hodnota"
#: templates/admin/constance/change_list.html:52
msgid "Value"
msgstr "Hodnota"
#: templates/admin/constance/change_list.html:53
msgid "Is modified"
msgstr "Je změněna?"
#: templates/admin/constance/change_list.html:79
#: templates/admin/constance/change_list.html:75
msgid "Save"
msgstr "Uložit"
#: templates/admin/constance/change_list.html:89
#: templates/admin/constance/change_list.html:84
msgid "Home"
msgstr "Domů"
#: templates/admin/constance/includes/results_list.html:5
msgid "Name"
msgstr "Název"
#: templates/admin/constance/includes/results_list.html:6
msgid "Default"
msgstr "Výchozí hodnota"
#: templates/admin/constance/includes/results_list.html:7
msgid "Value"
msgstr "Hodnota"
#: templates/admin/constance/includes/results_list.html:8
msgid "Is modified"
msgstr "Je změněna?"
#~ msgid "Constance config"
#~ msgstr "Nastavení konstant"

View file

@ -1,49 +1,68 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2014
msgid ""
msgstr ""
"Project-Id-Version: django-constance\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-11-27 19:05+0100\n"
"POT-Creation-Date: 2017-06-13 19:40+0530\n"
"PO-Revision-Date: 2014-11-27 18:17+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: German (http://www.transifex.com/projects/p/django-constance/language/de/)\n"
"Language-Team: German (http://www.transifex.com/projects/p/django-constance/"
"language/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: admin.py:72
#: admin.py:113
#, fuzzy, python-format
#| msgid ""
#| "Constance doesn't support config values of the type %(config_type)s. "
#| "Please fix the value of '%(name)s'."
msgid ""
"Default value type must be equal to declared config parameter type. Please "
"fix the default value of '%(name)s'."
msgstr ""
"Konstanze unterstützt die Konfigurationswerte vom Typ %(config_type)s nicht. "
"Bitte den Ausgangswert von '%(name)s' ändern."
#: admin.py:123
#, python-format
msgid ""
"Constance doesn't support config values of the type %(config_type)s. Please "
"fix the value of '%(name)s'."
msgstr "Konstanze unterstützt die Konfigurationswerte vom Typ %(config_type)s nicht. Bitte den Ausgangswert von '%(name)s' ändern."
msgstr ""
"Konstanze unterstützt die Konfigurationswerte vom Typ %(config_type)s nicht. "
"Bitte den Ausgangswert von '%(name)s' ändern."
#: admin.py:91
#: admin.py:147
msgid ""
"The settings have been modified by someone else. Please reload the form and "
"resubmit your changes."
msgstr "Die Konfiguration wurde seit Öffnen dieser Seite verändert. Bitte die Seite neuladen und die Änderungen erneut vornehmen."
msgstr ""
"Die Konfiguration wurde seit Öffnen dieser Seite verändert. Bitte die Seite "
"neuladen und die Änderungen erneut vornehmen."
#: admin.py:129
#: admin.py:160
msgid ""
"CONSTANCE_CONFIG_FIELDSETS does not contain fields that exist in "
"CONSTANCE_CONFIG."
msgstr ""
#: admin.py:224
msgid "Live settings updated successfully."
msgstr "Die Livekonfiguration wurde erfolgreich aktualisiert."
#: admin.py:134
msgid "Constance config"
msgstr "Constance Konfiguration"
#: admin.py:177
#: admin.py:285
msgid "config"
msgstr "Konfiguration"
#: apps.py:9
#: apps.py:8
msgid "Constance"
msgstr "Konstanze"
@ -55,26 +74,33 @@ msgstr "Konstanze"
msgid "constances"
msgstr "Konstanzes"
#: templates/admin/constance/change_list.html:50
msgid "Name"
msgstr "Name"
#: management/commands/constance.py:30
msgid "Get/Set In-database config settings handled by Constance"
msgstr ""
#: templates/admin/constance/change_list.html:51
msgid "Default"
msgstr "Voreinstellung"
#: templates/admin/constance/change_list.html:52
msgid "Value"
msgstr "Wert"
#: templates/admin/constance/change_list.html:53
msgid "Is modified"
msgstr "Ist modifiziert"
#: templates/admin/constance/change_list.html:79
#: templates/admin/constance/change_list.html:75
msgid "Save"
msgstr "Sichern"
#: templates/admin/constance/change_list.html:89
#: templates/admin/constance/change_list.html:84
msgid "Home"
msgstr "Start"
#: templates/admin/constance/includes/results_list.html:5
msgid "Name"
msgstr "Name"
#: templates/admin/constance/includes/results_list.html:6
msgid "Default"
msgstr "Voreinstellung"
#: templates/admin/constance/includes/results_list.html:7
msgid "Value"
msgstr "Wert"
#: templates/admin/constance/includes/results_list.html:8
msgid "Is modified"
msgstr "Ist modifiziert"
#~ msgid "Constance config"
#~ msgstr "Constance Konfiguration"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-11-27 19:05+0100\n"
"POT-Creation-Date: 2017-06-13 19:40+0530\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,32 +17,41 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: admin.py:72
#: admin.py:113
#, python-format
msgid ""
"Default value type must be equal to declared config parameter type. Please "
"fix the default value of '%(name)s'."
msgstr ""
#: admin.py:123
#, python-format
msgid ""
"Constance doesn't support config values of the type %(config_type)s. Please "
"fix the value of '%(name)s'."
msgstr ""
#: admin.py:91
#: admin.py:147
msgid ""
"The settings have been modified by someone else. Please reload the form and "
"resubmit your changes."
msgstr ""
#: admin.py:129
#: admin.py:160
msgid ""
"CONSTANCE_CONFIG_FIELDSETS does not contain fields that exist in "
"CONSTANCE_CONFIG."
msgstr ""
#: admin.py:224
msgid "Live settings updated successfully."
msgstr ""
#: admin.py:134
msgid "Constance config"
msgstr ""
#: admin.py:177
#: admin.py:285
msgid "config"
msgstr ""
#: apps.py:9
#: apps.py:8
msgid "Constance"
msgstr ""
@ -54,26 +63,30 @@ msgstr ""
msgid "constances"
msgstr ""
#: templates/admin/constance/change_list.html:50
msgid "Name"
#: management/commands/constance.py:30
msgid "Get/Set In-database config settings handled by Constance"
msgstr ""
#: templates/admin/constance/change_list.html:51
msgid "Default"
msgstr ""
#: templates/admin/constance/change_list.html:52
msgid "Value"
msgstr ""
#: templates/admin/constance/change_list.html:53
msgid "Is modified"
msgstr ""
#: templates/admin/constance/change_list.html:79
#: templates/admin/constance/change_list.html:75
msgid "Save"
msgstr ""
#: templates/admin/constance/change_list.html:89
#: templates/admin/constance/change_list.html:84
msgid "Home"
msgstr ""
#: templates/admin/constance/includes/results_list.html:5
msgid "Name"
msgstr ""
#: templates/admin/constance/includes/results_list.html:6
msgid "Default"
msgstr ""
#: templates/admin/constance/includes/results_list.html:7
msgid "Value"
msgstr ""
#: templates/admin/constance/includes/results_list.html:8
msgid "Is modified"
msgstr ""

View file

@ -1,24 +1,37 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
#
# Translators:
# Igor Támara <igor@tamarapatino.org>, 2015
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-15 16:23-0500\n"
"POT-Creation-Date: 2017-06-13 19:40+0530\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Igor Támara <igor@tamarapatino.org>\n"
"Language-Team: Spanish (http://www.transifex.com/projects/p/django-constance/language/de/\n"
"Language-Team: Spanish (http://www.transifex.com/projects/p/django-constance/"
"language/de/\n"
"Language: es\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:71
#: admin.py:113
#, fuzzy, python-format
#| msgid ""
#| "Constance doesn't support config values of the type %(config_type)s. "
#| "Please fix the value of '%(name)s'."
msgid ""
"Default value type must be equal to declared config parameter type. Please "
"fix the default value of '%(name)s'."
msgstr ""
"Constance no soporta valores de configuración de los tipos %(config_type)s. "
"Por favor arregle el valor de '%(name)s'."
#: admin.py:123
#, python-format
msgid ""
"Constance doesn't support config values of the type %(config_type)s. Please "
@ -27,7 +40,7 @@ msgstr ""
"Constance no soporta valores de configuración de los tipos %(config_type)s. "
"Por favor arregle el valor de '%(name)s'."
#: admin.py:90
#: admin.py:147
msgid ""
"The settings have been modified by someone else. Please reload the form and "
"resubmit your changes."
@ -35,19 +48,21 @@ msgstr ""
"La configuración ha sido modificada por alguien más. Por favor recargue el "
"formulario y reenvíe sus cambios."
#: admin.py:128
#: admin.py:160
msgid ""
"CONSTANCE_CONFIG_FIELDSETS does not contain fields that exist in "
"CONSTANCE_CONFIG."
msgstr ""
#: admin.py:224
msgid "Live settings updated successfully."
msgstr "Las configuraciones en vivo se actualizaron exitosamente."
#: admin.py:133
msgid "Constance config"
msgstr "Configuración de Constance"
#: admin.py:176
#: admin.py:285
msgid "config"
msgstr "configuración"
#: apps.py:7
#: apps.py:8
msgid "Constance"
msgstr "Constance"
@ -59,26 +74,33 @@ msgstr "constance"
msgid "constances"
msgstr "constances"
#: templates/admin/constance/change_list.html:58
msgid "Name"
msgstr "Nombre"
#: management/commands/constance.py:30
msgid "Get/Set In-database config settings handled by Constance"
msgstr ""
#: templates/admin/constance/change_list.html:59
msgid "Default"
msgstr "Predeterminado"
#: templates/admin/constance/change_list.html:60
msgid "Value"
msgstr "Valor"
#: templates/admin/constance/change_list.html:61
msgid "Is modified"
msgstr "Está modificado"
#: templates/admin/constance/change_list.html:87
#: templates/admin/constance/change_list.html:75
msgid "Save"
msgstr "Guardar"
#: templates/admin/constance/change_list.html:96
#: templates/admin/constance/change_list.html:84
msgid "Home"
msgstr "Inicio"
#: templates/admin/constance/includes/results_list.html:5
msgid "Name"
msgstr "Nombre"
#: templates/admin/constance/includes/results_list.html:6
msgid "Default"
msgstr "Predeterminado"
#: templates/admin/constance/includes/results_list.html:7
msgid "Value"
msgstr "Valor"
#: templates/admin/constance/includes/results_list.html:8
msgid "Is modified"
msgstr "Está modificado"
#~ msgid "Constance config"
#~ msgstr "Configuración de Constance"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-10 10:26+0000\n"
"POT-Creation-Date: 2017-06-13 19:40+0530\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,25 +18,25 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: constance/admin.py:111
#: admin.py:113
#, python-format
msgid ""
"Default value type must be equal to declared config parameter type. Please "
"fix the default value of '%(name)s'."
msgstr ""
"Vaikimisi väärtus peab olema vastav seade parameetri tüübile. Palun sisestage"
"korrekne vaikimisi väärtus väljale '%(name)s'"
"Vaikimisi väärtus peab olema vastav seade parameetri tüübile. Palun "
"sisestagekorrekne vaikimisi väärtus väljale '%(name)s'"
#: constance/admin.py:121
#: admin.py:123
#, python-format
msgid ""
"Constance doesn't support config values of the type %(config_type)s. Please "
"fix the value of '%(name)s'."
msgstr ""
"Constance ei toeta seadete seda tüüpi %(constance_type) seadete väärtusi. Palun"
"sisestage korrektne väärtus väljale '%(name)s'."
"Constance ei toeta seadete seda tüüpi %(constance_type) seadete väärtusi. "
"Palunsisestage korrektne väärtus väljale '%(name)s'."
#: constance/admin.py:145
#: admin.py:147
msgid ""
"The settings have been modified by someone else. Please reload the form and "
"resubmit your changes."
@ -44,50 +44,56 @@ msgstr ""
"Seadeid on vahepeal muudetud, palun esitage oma muudatused peale seda kui "
"olete lehe uuesti laadinud"
#: constance/admin.py:209
#: admin.py:160
msgid ""
"CONSTANCE_CONFIG_FIELDSETS does not contain fields that exist in "
"CONSTANCE_CONFIG."
msgstr ""
#: admin.py:224
msgid "Live settings updated successfully."
msgstr "Seaded edukalt muudetud."
#: constance/admin.py:271
#: admin.py:285
msgid "config"
msgstr "konfiguratsioon"
#: constance/apps.py:8
#: apps.py:8
msgid "Constance"
msgstr "Seaded"
#: constance/backends/database/models.py:19
#: backends/database/models.py:19
msgid "constance"
msgstr "seaded"
#: constance/backends/database/models.py:20
#: backends/database/models.py:20
msgid "constances"
msgstr "seaded"
#: constance/management/commands/constance.py:30
#: management/commands/constance.py:30
msgid "Get/Set In-database config settings handled by Constance"
msgstr "Loe/salvesta andmebaasi põhiseid seadeid"
#: constance/templates/admin/constance/change_list.html:68
#: templates/admin/constance/change_list.html:75
msgid "Save"
msgstr "Salvesta"
#: constance/templates/admin/constance/change_list.html:77
#: templates/admin/constance/change_list.html:84
msgid "Home"
msgstr ""
#: constance/templates/admin/constance/includes/results_list.html:5
#: templates/admin/constance/includes/results_list.html:5
msgid "Name"
msgstr "Nimi"
#: constance/templates/admin/constance/includes/results_list.html:6
#: templates/admin/constance/includes/results_list.html:6
msgid "Default"
msgstr "Vaikimisi"
#: constance/templates/admin/constance/includes/results_list.html:7
#: templates/admin/constance/includes/results_list.html:7
msgid "Value"
msgstr "Väärtus"
#: constance/templates/admin/constance/includes/results_list.html:8
#: templates/admin/constance/includes/results_list.html:8
msgid "Is modified"
msgstr "Muudetud"

View file

@ -1,48 +1,58 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: django-constance\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-11-27 19:05+0100\n"
"POT-Creation-Date: 2017-06-13 19:40+0530\n"
"PO-Revision-Date: 2014-11-27 18:13+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Italian (http://www.transifex.com/projects/p/django-constance/language/it/)\n"
"Language-Team: Italian (http://www.transifex.com/projects/p/django-constance/"
"language/it/)\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: admin.py:72
#: admin.py:113
#, python-format
msgid ""
"Default value type must be equal to declared config parameter type. Please "
"fix the default value of '%(name)s'."
msgstr ""
#: admin.py:123
#, python-format
msgid ""
"Constance doesn't support config values of the type %(config_type)s. Please "
"fix the value of '%(name)s'."
msgstr ""
#: admin.py:91
#: admin.py:147
msgid ""
"The settings have been modified by someone else. Please reload the form and "
"resubmit your changes."
msgstr ""
#: admin.py:129
#: admin.py:160
msgid ""
"CONSTANCE_CONFIG_FIELDSETS does not contain fields that exist in "
"CONSTANCE_CONFIG."
msgstr ""
#: admin.py:224
msgid "Live settings updated successfully."
msgstr "Le impostazioni attive sono state aggiornate correttamente."
#: admin.py:134
msgid "Constance config"
msgstr "Configurazione Impostazioni"
#: admin.py:177
#: admin.py:285
msgid "config"
msgstr ""
#: apps.py:9
#: apps.py:8
msgid "Constance"
msgstr ""
@ -54,26 +64,33 @@ msgstr "impostazione"
msgid "constances"
msgstr "impostazioni"
#: templates/admin/constance/change_list.html:50
msgid "Name"
msgstr "Nome"
#: management/commands/constance.py:30
msgid "Get/Set In-database config settings handled by Constance"
msgstr ""
#: templates/admin/constance/change_list.html:51
msgid "Default"
msgstr "Default"
#: templates/admin/constance/change_list.html:52
msgid "Value"
msgstr "Valore"
#: templates/admin/constance/change_list.html:53
msgid "Is modified"
msgstr "Modificato"
#: templates/admin/constance/change_list.html:79
#: templates/admin/constance/change_list.html:75
msgid "Save"
msgstr "Salva"
#: templates/admin/constance/change_list.html:89
#: templates/admin/constance/change_list.html:84
msgid "Home"
msgstr "Inizio"
#: templates/admin/constance/includes/results_list.html:5
msgid "Name"
msgstr "Nome"
#: templates/admin/constance/includes/results_list.html:6
msgid "Default"
msgstr "Default"
#: templates/admin/constance/includes/results_list.html:7
msgid "Value"
msgstr "Valore"
#: templates/admin/constance/includes/results_list.html:8
msgid "Is modified"
msgstr "Modificato"
#~ msgid "Constance config"
#~ msgstr "Configurazione Impostazioni"

View file

@ -1,48 +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.
#
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: django-constance\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-11-27 19:05+0100\n"
"POT-Creation-Date: 2017-06-13 19:40+0530\n"
"PO-Revision-Date: 2014-11-27 18:13+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Polish (http://www.transifex.com/projects/p/django-constance/language/pl/)\n"
"Language-Team: Polish (http://www.transifex.com/projects/p/django-constance/"
"language/pl/)\n"
"Language: pl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: pl\n"
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
"|| n%100>=20) ? 1 : 2);\n"
#: admin.py:72
#: admin.py:113
#, python-format
msgid ""
"Default value type must be equal to declared config parameter type. Please "
"fix the default value of '%(name)s'."
msgstr ""
#: admin.py:123
#, python-format
msgid ""
"Constance doesn't support config values of the type %(config_type)s. Please "
"fix the value of '%(name)s'."
msgstr ""
#: admin.py:91
#: admin.py:147
msgid ""
"The settings have been modified by someone else. Please reload the form and "
"resubmit your changes."
msgstr ""
#: admin.py:129
#: admin.py:160
msgid ""
"CONSTANCE_CONFIG_FIELDSETS does not contain fields that exist in "
"CONSTANCE_CONFIG."
msgstr ""
#: admin.py:224
msgid "Live settings updated successfully."
msgstr "Parametry zostały zaktualizowane"
#: admin.py:134
msgid "Constance config"
msgstr "Konfiguracja Constance"
#: admin.py:177
#: admin.py:285
msgid "config"
msgstr ""
#: apps.py:9
#: apps.py:8
msgid "Constance"
msgstr ""
@ -54,26 +65,33 @@ msgstr "parametr"
msgid "constances"
msgstr "parametry"
#: templates/admin/constance/change_list.html:50
msgid "Name"
msgstr "Nazwa"
#: management/commands/constance.py:30
msgid "Get/Set In-database config settings handled by Constance"
msgstr ""
#: templates/admin/constance/change_list.html:51
msgid "Default"
msgstr "Domyślnie"
#: templates/admin/constance/change_list.html:52
msgid "Value"
msgstr "Wartość"
#: templates/admin/constance/change_list.html:53
msgid "Is modified"
msgstr "Zmodyfikowana"
#: templates/admin/constance/change_list.html:79
#: templates/admin/constance/change_list.html:75
msgid "Save"
msgstr "Zapisz"
#: templates/admin/constance/change_list.html:89
#: templates/admin/constance/change_list.html:84
msgid "Home"
msgstr "Początek"
#: templates/admin/constance/includes/results_list.html:5
msgid "Name"
msgstr "Nazwa"
#: templates/admin/constance/includes/results_list.html:6
msgid "Default"
msgstr "Domyślnie"
#: templates/admin/constance/includes/results_list.html:7
msgid "Value"
msgstr "Wartość"
#: templates/admin/constance/includes/results_list.html:8
msgid "Is modified"
msgstr "Zmodyfikowana"
#~ msgid "Constance config"
#~ msgstr "Konfiguracja Constance"

View file

@ -1,48 +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.
#
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: django-constance\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-11-27 19:05+0100\n"
"POT-Creation-Date: 2017-06-13 19:40+0530\n"
"PO-Revision-Date: 2014-11-27 18:13+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Russian (http://www.transifex.com/projects/p/django-constance/language/ru/)\n"
"Language-Team: Russian (http://www.transifex.com/projects/p/django-constance/"
"language/ru/)\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ru\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
#: admin.py:72
#: admin.py:113
#, python-format
msgid ""
"Default value type must be equal to declared config parameter type. Please "
"fix the default value of '%(name)s'."
msgstr ""
#: admin.py:123
#, python-format
msgid ""
"Constance doesn't support config values of the type %(config_type)s. Please "
"fix the value of '%(name)s'."
msgstr ""
#: admin.py:91
#: admin.py:147
msgid ""
"The settings have been modified by someone else. Please reload the form and "
"resubmit your changes."
msgstr ""
#: admin.py:129
#: admin.py:160
msgid ""
"CONSTANCE_CONFIG_FIELDSETS does not contain fields that exist in "
"CONSTANCE_CONFIG."
msgstr ""
#: admin.py:224
msgid "Live settings updated successfully."
msgstr "Настройки успешно сохранены"
#: admin.py:134
msgid "Constance config"
msgstr "Настройки"
#: admin.py:177
#: admin.py:285
msgid "config"
msgstr "настройки"
#: apps.py:9
#: apps.py:8
msgid "Constance"
msgstr ""
@ -54,26 +65,33 @@ msgstr "настройки"
msgid "constances"
msgstr "настройки"
#: templates/admin/constance/change_list.html:50
msgid "Name"
msgstr "Название"
#: management/commands/constance.py:30
msgid "Get/Set In-database config settings handled by Constance"
msgstr ""
#: templates/admin/constance/change_list.html:51
msgid "Default"
msgstr "По умолчанию"
#: templates/admin/constance/change_list.html:52
msgid "Value"
msgstr "Текущее значение"
#: templates/admin/constance/change_list.html:53
msgid "Is modified"
msgstr "Было изменено"
#: templates/admin/constance/change_list.html:79
#: templates/admin/constance/change_list.html:75
msgid "Save"
msgstr "Сохранить"
#: templates/admin/constance/change_list.html:89
#: templates/admin/constance/change_list.html:84
msgid "Home"
msgstr "Главная"
#: templates/admin/constance/includes/results_list.html:5
msgid "Name"
msgstr "Название"
#: templates/admin/constance/includes/results_list.html:6
msgid "Default"
msgstr "По умолчанию"
#: templates/admin/constance/includes/results_list.html:7
msgid "Value"
msgstr "Текущее значение"
#: templates/admin/constance/includes/results_list.html:8
msgid "Is modified"
msgstr "Было изменено"
#~ msgid "Constance config"
#~ msgstr "Настройки"

View file

@ -1,49 +1,62 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
#
# Translators:
# Yifu Yu <root@jackyyf.com>, 2015
msgid ""
msgstr ""
"Project-Id-Version: django-constance\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-11-27 19:05+0100\n"
"POT-Creation-Date: 2017-06-13 19:40+0530\n"
"PO-Revision-Date: 2015-03-15 18:40+0000\n"
"Last-Translator: Yifu Yu <root@jackyyf.com>\n"
"Language-Team: Chinese (China) (http://www.transifex.com/jezdez/django-constance/language/zh_CN/)\n"
"Language-Team: Chinese (China) (http://www.transifex.com/jezdez/django-"
"constance/language/zh_CN/)\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: admin.py:72
#: admin.py:113
#, fuzzy, python-format
#| msgid ""
#| "Constance doesn't support config values of the type %(config_type)s. "
#| "Please fix the value of '%(name)s'."
msgid ""
"Default value type must be equal to declared config parameter type. Please "
"fix the default value of '%(name)s'."
msgstr "Constance不支持保存类型为%(config_type)s的值请修正%(name)s的值。"
#: admin.py:123
#, python-format
msgid ""
"Constance doesn't support config values of the type %(config_type)s. Please "
"fix the value of '%(name)s'."
msgstr "Constance不支持保存类型为%(config_type)s的值请修正%(name)s的值。"
#: admin.py:91
#: admin.py:147
msgid ""
"The settings have been modified by someone else. Please reload the form and "
"resubmit your changes."
msgstr "设置已经被他人修改过,请刷新页面并重新提交您的更改。"
#: admin.py:129
#: admin.py:160
msgid ""
"CONSTANCE_CONFIG_FIELDSETS does not contain fields that exist in "
"CONSTANCE_CONFIG."
msgstr ""
#: admin.py:224
msgid "Live settings updated successfully."
msgstr "成功更新实时配置"
#: admin.py:134
msgid "Constance config"
msgstr "Constance 配置页面"
#: admin.py:177
#: admin.py:285
msgid "config"
msgstr "配置"
#: apps.py:9
#: apps.py:8
msgid "Constance"
msgstr "Constance模块"
@ -55,26 +68,33 @@ msgstr "Constance模块"
msgid "constances"
msgstr "Constance模块"
#: templates/admin/constance/change_list.html:50
msgid "Name"
msgstr "名称"
#: management/commands/constance.py:30
msgid "Get/Set In-database config settings handled by Constance"
msgstr ""
#: templates/admin/constance/change_list.html:51
msgid "Default"
msgstr "默认值"
#: templates/admin/constance/change_list.html:52
msgid "Value"
msgstr "值"
#: templates/admin/constance/change_list.html:53
msgid "Is modified"
msgstr "是否修改过"
#: templates/admin/constance/change_list.html:79
#: templates/admin/constance/change_list.html:75
msgid "Save"
msgstr "保存"
#: templates/admin/constance/change_list.html:89
#: templates/admin/constance/change_list.html:84
msgid "Home"
msgstr "首页"
#: templates/admin/constance/includes/results_list.html:5
msgid "Name"
msgstr "名称"
#: templates/admin/constance/includes/results_list.html:6
msgid "Default"
msgstr "默认值"
#: templates/admin/constance/includes/results_list.html:7
msgid "Value"
msgstr "值"
#: templates/admin/constance/includes/results_list.html:8
msgid "Is modified"
msgstr "是否修改过"
#~ msgid "Constance config"
#~ msgstr "Constance 配置页面"

View file

@ -23,6 +23,13 @@
<div id="content-main" class="constance">
<div class="module" id="changelist">
<form id="changelist-form" action="" method="post" enctype="multipart/form-data">{% csrf_token %}
{% if form.non_field_errors %}
<ul class="errorlist">
{% for error in form.non_field_errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
{% if form.errors %}
<ul class="errorlist">
{% endif %}