Skip to content

Commit ec554e2

Browse files
committed
General fixes for multi language support
1 parent 0dc6058 commit ec554e2

20 files changed

+270
-264
lines changed

build

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ function buildFile(path, newName) {
5757
}
5858

5959
buildFile(mainScript, mainMinifiedScript);
60-
fs.readdirSync(jsPath).forEach(function(f) {
61-
if(f.substr(-7) == '.dev.js') {
62-
var compressedFileName = jsPath + f.substr(0, f.length - 6) + 'js';
63-
buildFile(jsPath+f, compressedFileName);
60+
[jsPath, jsPath+'lang/'].forEach(function(path) {
61+
fs.readdirSync(path).forEach(function(fileName) {
62+
if(fileName.substr(-7) == '.dev.js') {
63+
var compressedFileName = path + fileName.substr(0, fileName.length - 6) + 'js';
64+
buildFile(path+fileName, compressedFileName);
6465
}
66+
});
6567
});
6668

6769
/*

form-validator/date.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/#location-validators
1212
* @license Dual licensed under the MIT or GPL Version 2 licenses
13-
* @version 2.2.15
13+
* @version 2.2.17
1414
*/
1515
(function($) {
1616

form-validator/file.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/#file-validators
1212
* @license Dual licensed under the MIT or GPL Version 2 licenses
13-
* @version 2.2.15
13+
* @version 2.2.17
1414
*/
1515
(function($, window) {
1616

form-validator/html5.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @website http://formvalidator.net/
1919
* @license Dual licensed under the MIT or GPL Version 2 licenses
20-
* @version 2.2.15
20+
* @version 2.2.17
2121
*/
2222
(function($, window) {
2323

form-validator/jquery.form-validator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* @website http://formvalidator.net/
77
* @license Dual licensed under the MIT or GPL Version 2 licenses
8-
* @version 2.2.15
8+
* @version 2.2.17
99
*/
1010
(function ($) {
1111

@@ -574,7 +574,7 @@
574574

575575
conf = $.extend(defaultConf, conf || {});
576576

577-
if( conf.lang ) {
577+
if( conf.lang && conf.lang != 'en' ) {
578578
var langModule = 'lang/'+conf.lang+'.js';
579579
conf.modules += conf.modules.length ? ','+langModule : langModule;
580580
}

form-validator/jquery.form-validator.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/jsconf.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @website http://formvalidator.net/#location-validators
99
* @license Dual licensed under the MIT or GPL Version 2 licenses
10-
* @version 2.2.15
10+
* @version 2.2.17
1111
*/
1212
(function($) {
1313

form-validator/lang/de.dev.js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/**
2+
* jQuery Form Validator
3+
* ------------------------------------------
4+
*
5+
* German language package
6+
*
7+
* @website http://formvalidator.net/
8+
* @license Dual licensed under the MIT or GPL Version 2 licenses
9+
* @version 2.2.17
10+
*/
11+
(function($, window) {
12+
13+
"use strict";
14+
15+
$(window).bind('validatorsLoaded', function() {
16+
17+
$.formUtils.LANG = {
18+
errorTitle: "Ihre Anfrage konnte nicht gesendet werden!",
19+
requiredFields: "Sie haben nicht alle Fragen beantwortet",
20+
badTime: "Sie haben nicht die korrekte Zeit eingegeben",
21+
badEmail: "Sie haben keine gültige E-Mail-Adresse eingegeben",
22+
badTelephone: "Sie haben nicht die richtige Telefonnummer eingetragen",
23+
badSecurityAnswer: "Sie haben die falsche Antwort auf die Sicherheitsfrage eingegeben",
24+
badDate: "Re-Eingabe ein falsches Datum",
25+
lengthBadStart: "Ihre Antwort muss zwischen schließen",
26+
lengthBadEnd: " Zeichen",
27+
lengthTooLongStart: "Sie haben eine Antwort, die länger als angegeben",
28+
lengthTooShortStart: "Sie haben eine Antwort, die kürzer ist als eingegebene",
29+
notConfirmed: "Die Antworten könnten nicht gegenseitig bestätigen,",
30+
badDomain: "Sie haben die falsche Domäne eingetragen",
31+
badUrl: "Sie haben nicht das richtige URL eingegeben",
32+
badCustomVal: "Re-Eingabe eine falsche Antwort",
33+
andSpaces: " und Räume",
34+
badInt: "Sie haben keine Nummer eingegeben",
35+
badSecurityNumber: "Sie haben eine falsche Sozialversicherungsnummer eingegeben",
36+
badUKVatAnswer: "Sie haben keine UK Umsatzsteuer-Identifikationsnummer eingegeben",
37+
badStrength: "Sie haben ein Kennwort, das nicht sicher genug eingegeben",
38+
badNumberOfSelectedOptionsStart: "Sie müssen mindestens wählen",
39+
badNumberOfSelectedOptionsEnd: " Antwort",
40+
badAlphaNumeric: "Sie können nur mit alfanumersika Zeichen (az und Zahlen) zu reagieren",
41+
badAlphaNumericExtra: " und",
42+
wrongFileSize: "Die Datei, die Sie hochzuladen versuchen, zu groß ist (max% s)",
43+
wrongFileType: "Nur Dateien vom Typ% s ist zulässig",
44+
groupCheckedRangeStart: "Wählen Sie zwischen",
45+
groupCheckedTooFewStart: "Dann müssen Sie zumindest sicher,",
46+
groupCheckedTooManyStart: "Sie können nicht mehr als zu machen",
47+
groupCheckedEnd: " Auswahl",
48+
badCreditCard: "Sie haben eine ungültige Kreditkartennummer eingegeben",
49+
badCVV: "Sie haben eine falsche CVV eingegeben",
50+
wrongFileDim: "Illegal Bildgröße,",
51+
imageTooTall: "Das Bild kann nicht höher als sein",
52+
imageTooWide: "Das Bild kann nicht breiter als sein",
53+
imageTooSmall: "das Bild zu klein ist,",
54+
min: "am wenigsten",
55+
max: "max"
56+
};
57+
58+
});
59+
60+
})(jQuery, window);
61+
62+

form-validator/lang/de.js

Lines changed: 1 addition & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/lang/es.dev.js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/**
2+
* jQuery Form Validator
3+
* ------------------------------------------
4+
*
5+
* Spanish language package
6+
*
7+
* @website http://formvalidator.net/
8+
* @license Dual licensed under the MIT or GPL Version 2 licenses
9+
* @version 2.2.17
10+
*/
11+
(function($, window) {
12+
13+
"use strict";
14+
15+
$(window).bind('validatorsLoaded', function() {
16+
17+
$.formUtils.LANG = {
18+
errorTitle: 'El formulario no se ha podido enviar!',
19+
requiredFields: 'No ha respondido a todas las preguntas',
20+
badTime: 'No ha introducido la hora correcta',
21+
badEmail: 'No ha entrado en una dirección de e-mail válida',
22+
badTelephone: 'Usted no ha entrado en el número de teléfono correcto',
23+
badSecurityAnswer: 'Ha introducido la respuesta incorrecta a la pregunta de seguridad',
24+
badDate: 'Re-escribiendo una fecha incorrecta',
25+
lengthBadStart: 'Su respuesta debe incluir entre',
26+
lengthBadEnd: ' signo',
27+
lengthTooLongStart: 'Ha introducido una respuesta que es más largo que',
28+
lengthTooShortStart: 'Ha introducido una respuesta que es más corta que',
29+
notConfirmed: 'Las respuestas no pudieron confirmar entre sí',
30+
badDomain: 'Ha introducido un dominio incorrecto',
31+
badUrl: 'Usted no ha entrado en el URL correcto',
32+
badCustomVal: 'Re-escribiendo una respuesta incorrecta',
33+
andSpaces: ' y espacios',
34+
badInt: 'No ha introducido un número',
35+
badSecurityNumber: 'Ha introducido un número de seguro social incorrecto',
36+
badUKVatAnswer: 'No ha introducido un número de IVA del Reino Unido',
37+
badStrength: 'Ha introducido una contraseña que no es lo suficientemente seguro',
38+
badNumberOfSelectedOptionsStart: 'Debe seleccionar al menos',
39+
badNumberOfSelectedOptionsEnd: ' respuesta',
40+
badAlphaNumeric: 'Sólo se puede responder con alfanumersika caracteres (az y números)',
41+
badAlphaNumericExtra: ' y',
42+
wrongFileSize: 'El archivo que está tratando de subir es demasiado grande (máx% s)',
43+
wrongFileType: 'Sólo los archivos de tipo% s está permitido',
44+
groupCheckedRangeStart: 'Elegir entre',
45+
groupCheckedTooFewStart: 'Entonces usted debe hacer por lo menos',
46+
groupCheckedTooManyStart: 'Usted no puede hacer más de',
47+
groupCheckedEnd: ' selección',
48+
badCreditCard: 'Ha introducido un número de tarjeta de crédito válida',
49+
badCVV: 'Usted ha introducido una CVV incorrecta',
50+
wrongFileDim: 'Tamaño de la imagen Ilegal,',
51+
imageTooTall: 'el cuadro no puede ser superior a',
52+
imageTooWide: 'el cuadro no puede ser más amplio que',
53+
imageTooSmall: 'la imagen es demasiado pequeña',
54+
min: 'menos',
55+
max: 'max'
56+
};
57+
58+
});
59+
60+
})(jQuery, window);
61+
62+

form-validator/lang/es.js

Lines changed: 1 addition & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/lang/fr.dev.js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/**
2+
* jQuery Form Validator
3+
* ------------------------------------------
4+
*
5+
* French language package
6+
*
7+
* @website http://formvalidator.net/
8+
* @license Dual licensed under the MIT or GPL Version 2 licenses
9+
* @version 2.2.17
10+
*/
11+
(function($, window) {
12+
13+
"use strict";
14+
15+
$(window).bind('validatorsLoaded', function() {
16+
17+
$.formUtils.LANG = {
18+
errorTitle: "Le formulaire n'a pas pu être envoyé!",
19+
requiredFields: "Vous avez pas répondu à toutes les questions",
20+
badTime: "Vous ne l'avez pas saisi l'heure correcte",
21+
badEmail: "Vous ne l'avez pas saisi une adresse e-mail valide",
22+
badTelephone: "Vous avez pas entré le bon numéro de téléphone",
23+
badSecurityAnswer: "Vous avez entré la mauvaise réponse à la question de la sécurité",
24+
badDate: "Re-taper une date incorrecte",
25+
lengthBadStart: "Votre réponse doit comporter entre",
26+
lengthBadEnd: " caractères",
27+
lengthTooLongStart: "Vous avez entré une réponse qui est plus long que",
28+
lengthTooShortStart: "Vous avez entré une réponse qui est plus courte que",
29+
notConfirmed: "Les réponses ne pouvaient pas confirmer l'autre",
30+
badDomain: "Vous avez entré un domaine incorrect",
31+
badUrl: "Vous avez pas entré l'URL correcte",
32+
badCustomVal: "Re-taper une réponse incorrecte",
33+
andSpaces: " et des espaces",
34+
badInt: "Vous ne l'avez pas entré un numéro",
35+
badSecurityNumber: "Vous avez entré un mauvais numéro de sécurité sociale",
36+
badUKVatAnswer: "Vous avez pas entré un numéro de TVA au Royaume-Uni",
37+
badStrength: "Vous avez entré un mot de passe qui ne soit pas suffisamment en sécurité",
38+
badNumberOfSelectedOptionsStart: "Vous devez sélectionner au moins",
39+
badNumberOfSelectedOptionsEnd: " réponse",
40+
badAlphaNumeric: "Vous ne pouvez répondre avec alfanumersika caractères (az) et des chiffres",
41+
badAlphaNumericExtra: " et",
42+
wrongFileSize: "Le fichier que vous essayez de télécharger est trop grand (max% s)",
43+
wrongFileType: "Seuls les fichiers de type% s est autorisée",
44+
groupCheckedRangeStart: "Choisissez entre",
45+
groupCheckedTooFewStart: "Ensuite, vous devez faire au moins",
46+
groupCheckedTooManyStart: "Vous ne pouvez pas faire plus de",
47+
groupCheckedEnd: " sélection",
48+
badCreditCard: "Vous avez entré un numéro de carte de crédit valide",
49+
badCVV: "Vous avez saisi un CVV incorrecte",
50+
wrongFileDim: "Illégal taille de l'image,",
51+
imageTooTall: "l'image ne peut pas être plus élevé que",
52+
imageTooWide: "l'image ne peut pas être plus large que",
53+
imageTooSmall: "l'image est trop petite",
54+
min: "moins",
55+
max: "max"
56+
};
57+
58+
});
59+
60+
})(jQuery, window);
61+
62+

0 commit comments

Comments
 (0)