Skip to content

Commit d11feb3

Browse files
committed
typo
1 parent 642eee5 commit d11feb3

File tree

3 files changed

+46
-48
lines changed

3 files changed

+46
-48
lines changed

locales/validation/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"INVALID_NUMERIC_SIGNED": "Must be a positive or negative number. ",
2727
"INVALID_PATTERN": "Must be following this format: :param. ",
2828
"INVALID_REQUIRED": "Field is required. ",
29-
"INVALID_TYPE_NUMBER": "Field type only accept numeric values. ",
3029
"INVALID_URL": "Must be a valid URL. ",
3130

3231

locales/validation/fr.json

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,47 @@
11
{
2-
"INVALID_ALPHA": "Ne doit contenir que des lettres. ",
3-
"INVALID_ALPHA_SPACE": "Ne doit contenir que des lettres et espaces. ",
4-
"INVALID_ALPHA_NUM": "Ne doit contenir que des lettres et nombres. ",
5-
"INVALID_ALPHA_NUM_SPACE": "Ne doit contenir que des lettres, nombres et espaces. ",
6-
"INVALID_ALPHA_DASH": "Ne doit contenir que des lettres, nombres et des tirets. ",
7-
"INVALID_ALPHA_DASH_SPACE": "Ne doit contenir que des lettres, nombres, tirets et espaces. ",
8-
"INVALID_BETWEEN": "Le texte doit être entre :param et :param caractères de longueur. ",
9-
"INVALID_BOOLEAN": "Doit contenir qu'une valeur vraie ou fausse. ",
10-
"INVALID_CREDIT_CARD": "Doit être un numéro de carte de crédit valide. ",
11-
"INVALID_DATE_EURO_LONG": "Doit être une date validate ayant le format: dd-mm-yyyy OR dd/mm/yyyy. ",
12-
"INVALID_DATE_EURO_SHORT": "Doit être une date validate ayant le format: dd-mm-yy OR dd/mm/yy. ",
13-
"INVALID_DATE_ISO": "Doit être une date validate ayant le format: yyyy-mm-dd. ",
14-
"INVALID_DATE_US_LONG": "Doit être une date validate ayant le format: mm/dd/yyyy OR mm-dd-yyyy. ",
15-
"INVALID_DATE_US_SHORT": "Doit être une date validate ayant le format: mm/dd/yy OR mm-dd-yy. ",
16-
"INVALID_EMAIL": "Doit être une adresse courriel valide. ",
17-
"INVALID_EXACT_LEN": "Doit être d'une longueur fixe de :param caractères. ",
18-
"INVALID_FLOAT": "Doit être obligatoirement un nombre flottant (nombre entier exclu). ",
19-
"INVALID_FLOAT_SIGNED": "Doit être obligatoirement un nombre flottant positif ou négatif (nombre entier exclu). ",
20-
"INVALID_IBAN": "Doit être un IBAN valide. ",
21-
"INVALID_INTEGER": "Doit être un nombre entier positif. ",
22-
"INVALID_INTEGER_SIGNED": "Doit être un nombre entier positif ou négatif. ",
23-
"INVALID_MAX_CHAR": "Doit être plus petit que :param caractères. ",
24-
"INVALID_MIN_CHAR": "Doit avoir au moins :param caractères. ",
25-
"INVALID_NUMERIC": "Doit être un nombre positif. ",
26-
"INVALID_NUMERIC_SIGNED": "Doit être un nombre positif ou négatif. ",
27-
"INVALID_PATTERN": "Doit suivre le format: :param. ",
28-
"INVALID_REQUIRED": "Le champ est requis. ",
29-
"INVALID_TYPE_NUMBER": "Ce type de champ n'accepte que des valeurs numériques. ",
30-
"INVALID_URL": "Doit être un URL valide. ",
2+
"INVALID_ALPHA": "Ne doit contenir que des lettres. ",
3+
"INVALID_ALPHA_SPACE": "Ne doit contenir que des lettres et espaces. ",
4+
"INVALID_ALPHA_NUM": "Ne doit contenir que des lettres et nombres. ",
5+
"INVALID_ALPHA_NUM_SPACE": "Ne doit contenir que des lettres, nombres et espaces. ",
6+
"INVALID_ALPHA_DASH": "Ne doit contenir que des lettres, nombres et des tirets. ",
7+
"INVALID_ALPHA_DASH_SPACE": "Ne doit contenir que des lettres, nombres, tirets et espaces. ",
8+
"INVALID_BETWEEN": "Le texte doit être entre :param et :param caractères de longueur. ",
9+
"INVALID_BOOLEAN": "Doit contenir qu'une valeur vraie ou fausse. ",
10+
"INVALID_CREDIT_CARD": "Doit être un numéro de carte de crédit valide. ",
11+
"INVALID_DATE_EURO_LONG": "Doit être une date validate ayant le format: dd-mm-yyyy OR dd/mm/yyyy. ",
12+
"INVALID_DATE_EURO_SHORT": "Doit être une date validate ayant le format: dd-mm-yy OR dd/mm/yy. ",
13+
"INVALID_DATE_ISO": "Doit être une date validate ayant le format: yyyy-mm-dd. ",
14+
"INVALID_DATE_US_LONG": "Doit être une date validate ayant le format: mm/dd/yyyy OR mm-dd-yyyy. ",
15+
"INVALID_DATE_US_SHORT": "Doit être une date validate ayant le format: mm/dd/yy OR mm-dd-yy. ",
16+
"INVALID_EMAIL": "Doit être une adresse courriel valide. ",
17+
"INVALID_EXACT_LEN": "Doit être d'une longueur fixe de :param caractères. ",
18+
"INVALID_FLOAT": "Doit être obligatoirement un nombre flottant (nombre entier exclu). ",
19+
"INVALID_FLOAT_SIGNED": "Doit être obligatoirement un nombre flottant positif ou négatif (nombre entier exclu). ",
20+
"INVALID_IBAN": "Doit être un IBAN valide. ",
21+
"INVALID_INTEGER": "Doit être un nombre entier positif. ",
22+
"INVALID_INTEGER_SIGNED": "Doit être un nombre entier positif ou négatif. ",
23+
"INVALID_MAX_CHAR": "Doit être plus petit que :param caractères. ",
24+
"INVALID_MIN_CHAR": "Doit avoir au moins :param caractères. ",
25+
"INVALID_NUMERIC": "Doit être un nombre positif. ",
26+
"INVALID_NUMERIC_SIGNED": "Doit être un nombre positif ou négatif. ",
27+
"INVALID_PATTERN": "Doit suivre le format: :param. ",
28+
"INVALID_REQUIRED": "Le champ est requis. ",
29+
"INVALID_URL": "Doit être un URL valide. ",
3130

3231

33-
"INPUT1": "Alphanumérique + Exactement(3) + Requis -- EVENT (onblur)",
34-
"INPUT2": "Nombre Flottant (entier exclu) -- input type=\"number\" -- BLOQUER caractères non-numerique",
35-
"INPUT3": "Multiple Validations + Regex Personnalisé d'un Code Date (AASS)",
36-
"INPUT4": "Courriel",
37-
"INPUT5": "URL",
38-
"INPUT6": "Carte de Crédit",
39-
"INPUT7": "Entre(2,6) Caractères",
40-
"INPUT8": "Date ISO (yyyy-mm-dd)",
41-
"INPUT9": "Date US (long)",
42-
"INPUT10": "AlphaNum + Requis + Minimum(2) | Maximum(10) caractères",
43-
"INPUT11": "AlphaDashSpaces + Requis + Minimum(5) Caractères -- DOIT UTILISER: validation-error-to=\" \"",
44-
"CHANGE_LANGUAGE": "Changer de langue.",
45-
"SAVE": "Sauvegarder",
46-
"SELECT1": "Requis (select) -- Aucun EVENT défaut(keyup) -- Directive va valider avec EVENT (blur)",
32+
"INPUT1": "Alphanumérique + Exactement(3) + Requis -- EVENT (onblur)",
33+
"INPUT2": "Nombre Flottant (entier exclu) -- input type=\"number\" -- BLOQUER caractères non-numerique",
34+
"INPUT3": "Multiple Validations + Regex Personnalisé d'un Code Date (AASS)",
35+
"INPUT4": "Courriel",
36+
"INPUT5": "URL",
37+
"INPUT6": "Carte de Crédit",
38+
"INPUT7": "Entre(2,6) Caractères",
39+
"INPUT8": "Date ISO (yyyy-mm-dd)",
40+
"INPUT9": "Date US (long)",
41+
"INPUT10": "AlphaNum + Requis + Minimum(2) | Maximum(10) caractères",
42+
"INPUT11": "AlphaDashSpaces + Requis + Minimum(5) Caractères -- DOIT UTILISER: validation-error-to=\" \"",
43+
"CHANGE_LANGUAGE": "Changer de langue.",
44+
"SAVE": "Sauvegarder",
45+
"SELECT1": "Requis (select) -- Aucun EVENT défaut(keyup) -- Directive va valider avec EVENT (blur)",
4746
"SELECT2": "Requis (select) -- EVENT (blur)"
4847
}

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The concept is not new, it comes from the easy form input validation approach of
99

1010
Let's start with a simple example and then let's get down to real business.
1111

12-
P.S. For real live example, please download the Github project and run the `index.html` (no server needer) while the actual form with validation is inside `templates/testingForm.html` for a better separation.
12+
P.S. For real live example, please download the Github project and run the `index.html` (no server required, except Chrome which doesn't want to run http outside of webserver) while the actual form with validation is inside `templates/testingForm.html` for a better separation.
1313
<a name="examples"></a>
1414
```html
1515
<!-- example 1 -->
@@ -37,7 +37,7 @@ P.S. For real live example, please download the Github project and run the `inde
3737
validation="exact_len:4|regex:YYWW:=^(0[9]|1[0-9]|2[0-9]|3[0-9])(5[0-2]|[0-4][0-9])$:regex|required|integer" />
3838
<span class="validation text-danger"></span>
3939

40-
<!-- example 4 - required select option (dropdown) -->
40+
<!-- example 5 - required select option (dropdown) -->
4141
<!-- Select Option if required, it has to be validated as an onBlur event -->
4242
<!-- even if event is "keyup", the directive will use onBlur anyway for validation -->
4343
<div class="form-group">
@@ -57,12 +57,12 @@ P.S. For real live example, please download the Github project and run the `inde
5757
<!-- Then we need a <span> or <div> to display the error which you can apply styling -->
5858
<!-- VERY IMPORTANT: The Error HAS to be the following element after the input -->
5959
<span class="myStyleCSS"></span>
60-
<!-- but in some cases we cannot, then see Example Exceptions -->
60+
<!-- but in some cases we cannot, then see below Example Exceptions -->
6161

6262
```
6363
Example Exceptions
6464
--------------------
65-
Well let's face it, having the <span> for error display right after the <input> is not always ideal and I encounter the problem myself when I use Bootstrap on inputs with `input-group`, it had so much wrapping around the input that the next available element might not be the one we want. In these special occasion, we'll do something that is a little less "Angular way", we will add an `id` to our error element and then reference it inside our input. You could actually move the error element anywhere you want with this method, just don't forget to name it with an `id` and call the `validation-error-to` attribute.
65+
Well let's face it, having the `<span>` for error display right after the element to be validated is not always ideal and I encounter the problem myself when using Bootstrap on inputs with `input-group`, it had so much wrapping around the input that the next available element might not be the one we want. In these special occasion, we'll do something that is a little less "Angular way", we will add an `id` to our error display element and then reference it inside our input. We could actually move the error element anywhere we want with this method, just don't forget to name it with an `id` and call the `validation-error-to` attribute. We could even do validation summary with this...just saying hehe.
6666
```html
6767
<div class="form-group" ng-hide="trsn.isDividend">
6868
<label for="input1">Search Input with BS input-groups</label>

0 commit comments

Comments
 (0)