Skip to content

Commit 8497182

Browse files
Merge branch 'main' of github.com:flutter-form-builder-ecosystem/form_builder_validators
2 parents 685f821 + d8dad7b commit 8497182

File tree

4 files changed

+187
-1
lines changed

4 files changed

+187
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Validators support default errorText messages in this languages:
7777
- Dutch (nl)
7878
- Farsi/Persian (fa)
7979
- French (fr)
80+
- Greek (el)
8081
- German (de)
8182
- Hungarian (hu)
8283
- Indonesian (id)

lib/l10n/intl_el.arb

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
{
2+
"@@last_modified": "2020-06-19T21:53:39.706877",
3+
"@@locale": "el",
4+
"requiredErrorText": "Το πεδίο δεν μπορεί να είναι κενό.",
5+
"@requiredErrorText": {
6+
"description": "Error Text for required field",
7+
"type": "text",
8+
"placeholders": {}
9+
},
10+
"minErrorText": "Η τιμή πρέπει να είναι μεγαλύτερη ή ίση με {min}.",
11+
"@minErrorText": {
12+
"description": "Error Text for required field",
13+
"type": "text",
14+
"placeholders": {
15+
"min": {}
16+
}
17+
},
18+
"minLengthErrorText": "Η τιμή πρέπει να έχει μήκος μεγαλύτερο ή ίσο με {minLength}.",
19+
"@minLengthErrorText": {
20+
"description": "Error Text for required field",
21+
"type": "text",
22+
"placeholders": {
23+
"minLength": {}
24+
}
25+
},
26+
"maxErrorText": "Η τιμή πρέπει να είναι μικρότερη ή ίση με {max}.",
27+
"@maxErrorText": {
28+
"description": "Error Text for required field",
29+
"type": "text",
30+
"placeholders": {
31+
"max": {}
32+
}
33+
},
34+
"maxLengthErrorText": "Η τιμή πρέπει να έχει μήκος μικρότερο ή ίσο με {maxLength}.",
35+
"@maxLengthErrorText": {
36+
"description": "Error Text for required field",
37+
"type": "text",
38+
"placeholders": {
39+
"maxLength": {}
40+
}
41+
},
42+
"equalLengthErrorText": "Η τιμή πρέπει να έχει μήκος ίσο με {length}.",
43+
"@equalLengthErrorText": {
44+
"description": "Error Text for required field",
45+
"type": "text",
46+
"placeholders": {
47+
"length": {}
48+
}
49+
},
50+
"emailErrorText": "Το πεδίο πρέπει να έχει μία έγκυρη διεύθυνση email.",
51+
"@emailErrorText": {
52+
"description": "Error Text for email field",
53+
"type": "text",
54+
"placeholders": {}
55+
},
56+
"integerErrorText": "Η τιμή πρέπει να είναι ακέραιος αριθμό.",
57+
"@integerErrorText": {
58+
"description": "Error Text for integer validator",
59+
"type": "text",
60+
"placeholders": {}
61+
},
62+
"equalErrorText": "Η τιμή πρέπει να είναι ίση με {value}.",
63+
"@equalErrorText": {
64+
"description": "Error Text for equal validator",
65+
"type": "text",
66+
"placeholders": {
67+
"value": {}
68+
}
69+
},
70+
"notEqualErrorText": "Η τιμή δεν πρέπει να είναι ίση με {value}.",
71+
"@notEqualErrorText": {
72+
"description": "Error Text for not-equal validator",
73+
"type": "text",
74+
"placeholders": {
75+
"value": {}
76+
}
77+
},
78+
"urlErrorText": "Η τιμή πρέπει να είναι έγκυρη διεύθυνση URL.",
79+
"@urlErrorText": {
80+
"description": "Error Text for URL field",
81+
"type": "text",
82+
"placeholders": {}
83+
},
84+
"matchErrorText": "Η τιμή δεν ταιριάζει με το μοτίβο.",
85+
"@matchErrorText": {
86+
"description": "Error Text for pattern field",
87+
"type": "text",
88+
"placeholders": {}
89+
},
90+
"numericErrorText": "Η τιμή πρέπει να είναι αριθμητική.",
91+
"@numericErrorText": {
92+
"description": "Error Text for numeric field",
93+
"type": "text",
94+
"placeholders": {}
95+
},
96+
"creditCardErrorText": "Η τιμή πρέπει να είναι έγκυρη πιστωτική κάρτα.",
97+
"@creditCardErrorText": {
98+
"description": "Error Text for credit card field",
99+
"type": "text",
100+
"placeholders": {}
101+
},
102+
"ipErrorText": "Η τιμή πρέπει να είναι έγκυρη IP διεύθυνση.",
103+
"@ipErrorText": {
104+
"description": "Error Text for IP address field",
105+
"type": "text",
106+
"placeholders": {}
107+
},
108+
"dateStringErrorText": "Η τιμή πρέπει να είναι έγκυρη ημερομηνία.",
109+
"@dateStringErrorText": {
110+
"description": "Error Text for date string field",
111+
"type": "text",
112+
"placeholders": {}
113+
}
114+
}

lib/localization/intl/messages.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import 'messages_bs.dart';
1111
import 'messages_ca.dart';
1212
import 'messages_cs.dart';
1313
import 'messages_de.dart';
14+
import 'messages_el.dart';
1415
import 'messages_en.dart';
1516
import 'messages_es.dart';
1617
import 'messages_et.dart';
@@ -125,6 +126,7 @@ abstract class FormBuilderLocalizationsImpl {
125126
Locale('ca'),
126127
Locale('cs'),
127128
Locale('de'),
129+
Locale('el'),
128130
Locale('en'),
129131
Locale('es'),
130132
Locale('et'),
@@ -260,7 +262,7 @@ class _FormBuilderLocalizationsImplDelegate extends LocalizationsDelegate<FormBu
260262
}
261263

262264
@override
263-
bool isSupported(Locale locale) => <String>['ar', 'bn', 'bs', 'ca', 'cs', 'de', 'en', 'es', 'et', 'fa', 'fr', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'lo', 'ms', 'nl', 'pl', 'pt', 'ro', 'ru', 'sk', 'sl', 'sw', 'ta', 'th', 'tr', 'uk', 'zh'].contains(locale.languageCode);
265+
bool isSupported(Locale locale) => <String>['ar', 'bn', 'bs', 'ca', 'cs', 'de', 'el', 'en', 'es', 'et', 'fa', 'fr', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'lo', 'ms', 'nl', 'pl', 'pt', 'ro', 'ru', 'sk', 'sl', 'sw', 'ta', 'th', 'tr', 'uk', 'zh'].contains(locale.languageCode);
264266

265267
@override
266268
bool shouldReload(_FormBuilderLocalizationsImplDelegate old) => false;
@@ -286,6 +288,7 @@ FormBuilderLocalizationsImpl lookupFormBuilderLocalizationsImpl(Locale locale) {
286288
case 'ca': return FormBuilderLocalizationsImplCa();
287289
case 'cs': return FormBuilderLocalizationsImplCs();
288290
case 'de': return FormBuilderLocalizationsImplDe();
291+
case 'el': return FormBuilderLocalizationsImplEl();
289292
case 'en': return FormBuilderLocalizationsImplEn();
290293
case 'es': return FormBuilderLocalizationsImplEs();
291294
case 'et': return FormBuilderLocalizationsImplEt();
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import 'messages.dart';
2+
3+
/// The translations for Modern Greek (`el`).
4+
class FormBuilderLocalizationsImplEl extends FormBuilderLocalizationsImpl {
5+
FormBuilderLocalizationsImplEl([String locale = 'el']) : super(locale);
6+
7+
@override
8+
String get requiredErrorText => 'Το πεδίο δεν μπορεί να είναι κενό.';
9+
10+
@override
11+
String minErrorText(Object min) {
12+
return 'Η τιμή πρέπει να είναι μεγαλύτερη ή ίση με $min.';
13+
}
14+
15+
@override
16+
String minLengthErrorText(Object minLength) {
17+
return 'Η τιμή πρέπει να έχει μήκος μεγαλύτερο ή ίσο με $minLength.';
18+
}
19+
20+
@override
21+
String maxErrorText(Object max) {
22+
return 'Η τιμή πρέπει να είναι μικρότερη ή ίση με $max.';
23+
}
24+
25+
@override
26+
String maxLengthErrorText(Object maxLength) {
27+
return 'Η τιμή πρέπει να έχει μήκος μικρότερο ή ίσο με $maxLength.';
28+
}
29+
30+
@override
31+
String equalLengthErrorText(Object length) {
32+
return 'Η τιμή πρέπει να έχει μήκος ίσο με $length.';
33+
}
34+
35+
@override
36+
String get emailErrorText => 'Το πεδίο πρέπει να έχει μία έγκυρη διεύθυνση email.';
37+
38+
@override
39+
String get integerErrorText => 'Η τιμή πρέπει να είναι ακέραιος αριθμό.';
40+
41+
@override
42+
String equalErrorText(Object value) {
43+
return 'Η τιμή πρέπει να είναι ίση με $value.';
44+
}
45+
46+
@override
47+
String notEqualErrorText(Object value) {
48+
return 'Η τιμή δεν πρέπει να είναι ίση με $value.';
49+
}
50+
51+
@override
52+
String get urlErrorText => 'Η τιμή πρέπει να είναι έγκυρη διεύθυνση URL.';
53+
54+
@override
55+
String get matchErrorText => 'Η τιμή δεν ταιριάζει με το μοτίβο.';
56+
57+
@override
58+
String get numericErrorText => 'Η τιμή πρέπει να είναι αριθμητική.';
59+
60+
@override
61+
String get creditCardErrorText => 'Η τιμή πρέπει να είναι έγκυρη πιστωτική κάρτα.';
62+
63+
@override
64+
String get ipErrorText => 'Η τιμή πρέπει να είναι έγκυρη IP διεύθυνση.';
65+
66+
@override
67+
String get dateStringErrorText => 'Η τιμή πρέπει να είναι έγκυρη ημερομηνία.';
68+
}

0 commit comments

Comments
 (0)