From d3da1e14bd788fd3488a55e25a49d7172ef257c9 Mon Sep 17 00:00:00 2001 From: Varun Bargali Date: Tue, 13 Jun 2017 19:37:39 +0530 Subject: [PATCH 1/2] added validation error for forgetting variables in CONSTANCE_CONFIG_FIELDSETS --- constance/admin.py | 12 ++++++++++++ constance/templates/admin/constance/change_list.html | 7 +++++++ 2 files changed, 19 insertions(+) diff --git a/constance/admin.py b/constance/admin.py index 80f3c04..195baf7 100644 --- a/constance/admin.py +++ b/constance/admin.py @@ -149,6 +149,18 @@ 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' diff --git a/constance/templates/admin/constance/change_list.html b/constance/templates/admin/constance/change_list.html index 2110210..6b07d04 100644 --- a/constance/templates/admin/constance/change_list.html +++ b/constance/templates/admin/constance/change_list.html @@ -38,6 +38,13 @@
{% csrf_token %} + {% if form.non_field_errors %} +
    + {% for error in form.non_field_errors %} +
  • {{ error }}
  • + {% endfor %} +
+ {% endif %} {% if form.errors %}
    {% endif %} From d80acd0dc69327ac6d58668c0864a7b882a08cef Mon Sep 17 00:00:00 2001 From: Varun Bargali Date: Tue, 13 Jun 2017 19:41:38 +0530 Subject: [PATCH 2/2] updated message files --- constance/admin.py | 3 +- constance/locale/cs_CZ/LC_MESSAGES/django.mo | Bin 1040 -> 987 bytes constance/locale/cs_CZ/LC_MESSAGES/django.po | 77 +++++++++------- constance/locale/de/LC_MESSAGES/django.mo | Bin 1555 -> 1482 bytes constance/locale/de/LC_MESSAGES/django.po | 90 ++++++++++++------- constance/locale/en/LC_MESSAGES/django.mo | Bin 378 -> 378 bytes constance/locale/en/LC_MESSAGES/django.po | 65 ++++++++------ constance/locale/es/LC_MESSAGES/django.mo | Bin 1551 -> 1474 bytes constance/locale/es/LC_MESSAGES/django.po | 80 +++++++++++------ constance/locale/et/LC_MESSAGES/django.mo | Bin 1720 -> 1720 bytes constance/locale/et/LC_MESSAGES/django.po | 46 +++++----- constance/locale/it/LC_MESSAGES/django.mo | Bin 977 -> 900 bytes constance/locale/it/LC_MESSAGES/django.po | 77 +++++++++------- constance/locale/pl/LC_MESSAGES/django.po | 80 ++++++++++------- constance/locale/ru/LC_MESSAGES/django.mo | Bin 1178 -> 1126 bytes constance/locale/ru/LC_MESSAGES/django.po | 80 ++++++++++------- constance/locale/zh_CN/LC_MESSAGES/django.mo | Bin 1440 -> 1368 bytes constance/locale/zh_CN/LC_MESSAGES/django.po | 80 ++++++++++------- 18 files changed, 418 insertions(+), 260 deletions(-) diff --git a/constance/admin.py b/constance/admin.py index 195baf7..d42a58f 100644 --- a/constance/admin.py +++ b/constance/admin.py @@ -157,7 +157,8 @@ class ConstanceForm(forms.Form): 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')) + raise forms.ValidationError(_('CONSTANCE_CONFIG_FIELDSETS does not contain ' + 'fields that exist in CONSTANCE_CONFIG.')) return cleaned_data diff --git a/constance/locale/cs_CZ/LC_MESSAGES/django.mo b/constance/locale/cs_CZ/LC_MESSAGES/django.mo index 0e445e6829f5f56cd091f924fecc57e0ba4f621e..4c9010077e4c79177133f60f34ddbb80297eb5bb 100644 GIT binary patch delta 333 zcmbQhahtvVo)F7a1|Z-DVi_PV0b)TQJ_E!cAi&7Lzz(DZfiw${mITruwQ@jO8AxkE z#r>dkFpy>iibnuxHXt1bq&b0fDv;&^()mF89uQXnG0>iRhDc_JhHN0s3sg`Dq*Z}* zJ&*<&uoOsx9IysTZvoOEgZ2Pvkio~H^hF>IG!yJNkT^O3nE?VEKn(H-$ZRGCA&BKb zy;r6 delta 386 zcmcc3K7phDo)F7a1|Z-8Vi_Q=0b)TQz5~P{puot$AONHlfiydiHUiQtK-vmOa|3C6 zAgv6fy`kdyP`U(2vjW8{fixSCt_RYbK)MY`a{=iIK>8jdLp{T6AVU}^P{jE1OB2&mtrU`r3o?5M`y~QRC`-*dyjCF_Vp_@M H2\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" diff --git a/constance/locale/de/LC_MESSAGES/django.mo b/constance/locale/de/LC_MESSAGES/django.mo index f27eed4686ed430fb759c41f1d72dfe5e9c95b8b..a0d65980fd11bcbf397dc61f6225c159ad5c8c52 100644 GIT binary patch delta 398 zcmXZXJud`N6vpv$&3N5G&?r{2iKt|g*{mJ08i|HPN2eN$Rmdooj%=Y>qMP^v8kK4z zQ4o!WsEAhKTS!FwAG0U(T*rRA zM<1WCfX_IMAKm_U*I(SC@Aa7V;x6{#J~FpuOVJ>uY$G484XOd6Au865v;1$?4K>Uo8luuI zR6&l}@jMMF;bL!e|Y`z>uYU6vy$KHpa%rzaSlS2)J2_iL?~EI5_I$=oV|5X1PJzZbBCai(?cgH&;dI zqOagX_yR?6ad8m8Ck?uI;pB6AX@2MAwVXP`w-xh7aTcj{>YA!hj=_V|MH^#W!X9?< z0%!3ZP5i_%e&GgMh3Wlf?iL<%U&k4|MN6rnx}%W+_c(`-_&~@@ejkx83!UOQj&K1j zQY2`Vhb+H_4XmOp6re2FL3vN-_Y<7w_Xpa{SKl-;xWqcl&Avijln^=Wp`5In{!iKx zB})`38BRp@5fc30AzG=uMEClEZij!JYqb;IiKFqMacL~qYrbFGZo2+X%WG6U-%BTj n=k%#~^UC-E{PH?} diff --git a/constance/locale/de/LC_MESSAGES/django.po b/constance/locale/de/LC_MESSAGES/django.po index e7959df..705ab1e 100644 --- a/constance/locale/de/LC_MESSAGES/django.po +++ b/constance/locale/de/LC_MESSAGES/django.po @@ -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 , 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 \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" diff --git a/constance/locale/en/LC_MESSAGES/django.mo b/constance/locale/en/LC_MESSAGES/django.mo index e7f414792ea1202801c900c526b0497409662bdf..8319b4801f99dc60951c0488fa290c61e3d47cfe 100644 GIT binary patch delta 27 icmeyx^owaim!P?>ftjwMv4Wwcm5G72fvNGt+4li>YY24! delta 27 icmeyx^owaim!OHRp`oskxq_jkm4T_YfuX^~+4li>7YJ\n" "Language-Team: LANGUAGE \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 "" diff --git a/constance/locale/es/LC_MESSAGES/django.mo b/constance/locale/es/LC_MESSAGES/django.mo index 72f56d259bb6b6c8d953b5b5b353d8a774692040..55a6b6c0d3f0518ed8970c636f6fecf3139d9928 100644 GIT binary patch delta 378 zcmXZXze_?<6u|LweNW5$f$0=F2rfYgPqf4~X|XvcH;tqrbWqyN!9fQ>8iJ<&16|%w zLsJOh($;E!halni_}+o@K96(nJ@?#M^eZx4C+!y@;$()Lk|}aaYSfHK7_adjZ}0#= z(Z(f4aD_Si_3Inoe{4~=0wO_dV+bFRzC-Epb3|c)3pP)@1u4`0k$M$%xDV8W-;O6SB&`4d delta 444 zcmZwDAy30V6u|L!qbrOR24o3hh$c8fLkkoFmT!Q>jk3`S+GJzc84?5u7|7HddZr2s z-vc)TL1L!(zpV*|OW*xoUVHEE`c{2(`X6i7voLDJ2Ju9!6OLhG#8|-uSFnpQ-r_ud zqlG_M#R+brU7FRm3U~0F`aYI%fVN0qh9tVd3ohaaM>KgY>M`9L)H`^C54enFy3j!C zs0VA{5pEatHtGSdFvA}5$e2mje_@6FWkRAGTXbXJ=`D1j-bx4O5NDdrzSDGp&?a+) z{yA-|msleH8+uSV$Q*&olL(dPqAasL+a5B>bJbY^P2 T?{%6{@}8&eMa#_(t$Xte4%#qu diff --git a/constance/locale/es/LC_MESSAGES/django.po b/constance/locale/es/LC_MESSAGES/django.po index 8604bb5..43b2b88 100644 --- a/constance/locale/es/LC_MESSAGES/django.po +++ b/constance/locale/es/LC_MESSAGES/django.po @@ -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 , 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 \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" diff --git a/constance/locale/et/LC_MESSAGES/django.mo b/constance/locale/et/LC_MESSAGES/django.mo index 724a3f3158f8a783e6f740d7683bbdc9326cc210..31776a3628b4d4e0572568a85a839dcdc985d8c3 100644 GIT binary patch delta 27 icmdnNyMuSb0%krlT|;99LrW_Y18oCS\n" "Language-Team: LANGUAGE \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" diff --git a/constance/locale/it/LC_MESSAGES/django.mo b/constance/locale/it/LC_MESSAGES/django.mo index c32a4c73736bb94e1d8d515f940d33ba3510f02d..144f32f8f2275d2ca3afce2087eaa714cbceb839 100644 GIT binary patch delta 311 zcmcb}-ojpgPl#nI0}yZlu?!IB05LBR?*U>E_yEN0K>QJiS%CN_5OV|ZKOj~HVlGCA zxE_=?2GXoRaSI^L38d|SG{|fZAiWNVgMk=i9uqSI0~-TFJp&hz0a73cq^*Ip43Gv{ z6al0`2E_ttphAXZAk71$v!HZ2kOrCsR>K6OL3)5fZ~(Fdqz?o@4&eY|kUb18scDI& zIVB7p`MIeKll2*w3!3X1nCTiCD;Qc@nHXprm>N%h&bX7uCowO*G%-EZN+Gjk@_eS~ M$?VKJll_^S01N*j4*&oF delta 367 zcmX}nzfJ-{5XbTRgC3xT*kW>GWf(wEhTUAm>>Su;94ijE^Y rcfahDcU8WObvlaEq#4>@uTkY5-J`qsQ5l_t7lT{F9Qjbz^`HL%BK0sr diff --git a/constance/locale/it/LC_MESSAGES/django.po b/constance/locale/it/LC_MESSAGES/django.po index f92dea6..eb74fcc 100644 --- a/constance/locale/it/LC_MESSAGES/django.po +++ b/constance/locale/it/LC_MESSAGES/django.po @@ -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 \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" diff --git a/constance/locale/pl/LC_MESSAGES/django.po b/constance/locale/pl/LC_MESSAGES/django.po index 0c56643..47348bb 100644 --- a/constance/locale/pl/LC_MESSAGES/django.po +++ b/constance/locale/pl/LC_MESSAGES/django.po @@ -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 \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" diff --git a/constance/locale/ru/LC_MESSAGES/django.mo b/constance/locale/ru/LC_MESSAGES/django.mo index 05fb96f936fd17d97f2b4fd7d93a84345d5b01de..c749d6882912fbb8671876909ecefb5b09e815a1 100644 GIT binary patch delta 330 zcmbQm`HZ9fo)F7a1|Z-DVi_PV0b)TQJ_E!cAi&7Lzz(DZfiw${mITruwQ@jO8AxkE z#r>dkFpy>iibnuxHXt1bq&b0fDv;&^()mF82M|{Qu{Z-mJwq`w0|OsWq8ms{0_j;m z+5|{%0n!3M`X!JS0@A;Lv^XZ^IEgRV#!u9POw(Pz zU%(k$GxyM#8c&g57sKj?|DhMvQ7O*Fzp3=3dOLa))7q%FD`Gu~chfNLblpx8Z|_91 zZaq5frtddf%dWo?cuVu1@5wi7AaCrg+GZF>{V?hVZm%zY>^\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 "Настройки" diff --git a/constance/locale/zh_CN/LC_MESSAGES/django.mo b/constance/locale/zh_CN/LC_MESSAGES/django.mo index d9efd21fc28cefc8f71681f133b1b1c12b742ea3..2f73cb13942a9ecf11014d188e13be78ed931a60 100644 GIT binary patch delta 401 zcmXZXzfZzY5Ww+!w1R>_)Wv~;#L+ZqMf}0QAPXjj1vdv%2|or?2Xrwp3@!|Ajm~U_ znL!6f7dI1QbmIRoF~;w~yX5j|@AaGP1LaD!t$9%7#NEv7f|0Cj-})W#9& z`6I65ldZp7zpz1liVk}GRr>Ix6S#bIpX zDEjE)Ar9g@s`!an{K9F}QorZ3iSxM4c?AdX5;Y+@qDvtM++qfMct?{*luOxkpFkfs z@C4=kKGHzEqP+KkMf^_Ai%gO4r?8GQn8tQ;zK40{i-Wij;tZJ^|AqWB`ozH=LQiVB zpo}4Mgp>{Ca6XNf%He+@7ZJ6V=kHpc-T12v&2D)+O($Gej+L=W$uvs~ONO~zEicZM v&2sRTdI-YwW`51`oVMjOs>Z&%RjUWOx{@=ZqtlnCUUYpQb#KB|wV?a}Ck{Lc diff --git a/constance/locale/zh_CN/LC_MESSAGES/django.po b/constance/locale/zh_CN/LC_MESSAGES/django.po index dbad41c..2fa88bc 100644 --- a/constance/locale/zh_CN/LC_MESSAGES/django.po +++ b/constance/locale/zh_CN/LC_MESSAGES/django.po @@ -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 , 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 \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 配置页面"