Fixed translations of validation messages

This commit is contained in:
M.Ravi 2017-06-15 06:29:31 +05:30
parent fcbeefb1d9
commit a56d08e729
2 changed files with 16 additions and 6 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-14 17:33-0500\n"
"POT-Creation-Date: 2017-06-15 06:09+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,6 +18,14 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: templates/datacenterlight/base.html:86
msgid "Please enter your name"
msgstr "Bitte geben Sie Ihren Namen ein"
#: templates/datacenterlight/base.html:87
msgid "Please enter a valid email address"
msgstr "Bitte geben Sie eine gültige E-Mail-Adresse ein"
#: templates/datacenterlight/beta_access.html:13
msgid "Enter name"
msgstr "Name"
@ -281,6 +289,9 @@ msgstr ""
msgid "as soon as possible!"
msgstr ""
#~ msgid "Buy VM"
#~ msgstr "VM Kaufen"
#~ msgid "Our data center"
#~ msgstr "Unser Datacenter"
@ -296,9 +307,6 @@ msgstr ""
#~ msgid "I want to have it!"
#~ msgstr "Das möchte ich haben!"
#~ msgid "Buy VM"
#~ msgstr "VM Kaufen"
#~ msgid ""
#~ "Reuse existing factory halls intead of building an expensive building."
#~ msgstr ""

View File

@ -69,6 +69,8 @@
ignore: []
});
var name_message = "{% trans 'Please enter your name' %}";
var email_message = "{% trans 'Please enter a valid email address' %}";
$('#order_form').validate({
wrapper: 'div',
errorLabelContainer: "#error_message_box",
@ -83,8 +85,8 @@
}
},
messages: {
name: "Please enter your name",
email: "Please enter a valid email address"
name: name_message,
email: email_message
},
submitHandler: function (form) {
return true;