Skip to content

Commit 700f948

Browse files
committed
Merge branch 'call-me-adas/master'
# Conflicts: # lib/localization/form_builder_localizations.dart
2 parents 5393599 + 9216408 commit 700f948

File tree

5 files changed

+168
-1
lines changed

5 files changed

+168
-1
lines changed

example/lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class MyApp extends StatelessWidget {
3030
Locale('ja', ''),
3131
Locale('pt', ''),
3232
Locale('sk', ''),
33+
Locale('pl', ''),
3334
],
3435
home: HomePage(),
3536
);

lib/l10n/intl_pl.arb

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"@@last_modified": "2021-01-16T01:32:17.166732",
3+
"requiredErrorText": "To pole nie może być puste.",
4+
"@requiredErrorText": {
5+
"description": "Error Text for required validator",
6+
"type": "text",
7+
"placeholders": {}
8+
},
9+
"equalErrorText": "Wartość tego pola musi wynosić {value}.",
10+
"@equalErrorText": {
11+
"description": "Error Text for equal validator",
12+
"type": "text",
13+
"placeholders": {
14+
"value": {}
15+
}
16+
},
17+
"notEqualErrorText": "Wartość tego pola nie może być {value}.",
18+
"@notEqualErrorText": {
19+
"description": "Error Text for not-equal validator",
20+
"type": "text",
21+
"placeholders": {
22+
"value": {}
23+
}
24+
},
25+
"minErrorText": "Wartość musi być większa lub równa {min}.",
26+
"@minErrorText": {
27+
"description": "Error Text for required field",
28+
"type": "text",
29+
"placeholders": {
30+
"min": {}
31+
}
32+
},
33+
"minLengthErrorText": "Wartość musi mieć co najmniej {minLength} znaków.",
34+
"@minLengthErrorText": {
35+
"description": "Error Text for minLength validator",
36+
"type": "text",
37+
"placeholders": {
38+
"minLength": {}
39+
}
40+
},
41+
"maxErrorText": "Wartość musi być mniejsza lub równa {max}.",
42+
"@maxErrorText": {
43+
"description": "Error Text for max validator",
44+
"type": "text",
45+
"placeholders": {
46+
"max": {}
47+
}
48+
},
49+
"maxLengthErrorText": "Wartość nie może mieć więcej niż {maxLength} znaków.",
50+
"@maxLengthErrorText": {
51+
"description": "Error Text for required field",
52+
"type": "text",
53+
"placeholders": {
54+
"maxLength": {}
55+
}
56+
},
57+
"emailErrorText": "To pole wymaga prawidłowego adresu e-mail.",
58+
"@emailErrorText": {
59+
"description": "Error Text for email validator",
60+
"type": "text",
61+
"placeholders": {}
62+
},
63+
"urlErrorText": "To pole wymaga prawidłowego adresu URL.",
64+
"@urlErrorText": {
65+
"description": "Error Text for URL validator",
66+
"type": "text",
67+
"placeholders": {}
68+
},
69+
"matchErrorText": "Wartość nie pasuje do oczekiwanego kształtu.",
70+
"@matchErrorText": {
71+
"description": "Error Text for pattern validator",
72+
"type": "text",
73+
"placeholders": {}
74+
},
75+
"numericErrorText": "Wartość musi być liczbą.",
76+
"@numericErrorText": {
77+
"description": "Error Text for numeric validator",
78+
"type": "text",
79+
"placeholders": {}
80+
},
81+
"integerErrorText": "Wartość musi być liczbą całkowitą.",
82+
"@integerErrorText": {
83+
"description": "Error Text for integer validator",
84+
"type": "text",
85+
"placeholders": {}
86+
},
87+
"creditCardErrorText": "To pole wymaga podania ważnego numeru karty kredytowej.",
88+
"@creditCardErrorText": {
89+
"description": "Error Text for credit card validator",
90+
"type": "text",
91+
"placeholders": {}
92+
},
93+
"ipErrorText": "To pole wymaga prawidłowego adresu IP.",
94+
"@ipErrorText": {
95+
"description": "Error Text for IP address validator",
96+
"type": "text",
97+
"placeholders": {}
98+
},
99+
"dateStringErrorText": "To pole wymaga prawidłowej daty.",
100+
"@dateStringErrorText": {
101+
"description": "Error Text for date string validator",
102+
"type": "text",
103+
"placeholders": {}
104+
}
105+
}

lib/l10n/messages_all.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import 'messages_fr.dart' as messages_fr;
2121
import 'messages_it.dart' as messages_it;
2222
import 'messages_ja.dart' as messages_ja;
2323
import 'messages_messages.dart' as messages_messages;
24+
import 'messages_pl.dart' as messages_pl;
2425
import 'messages_pt.dart' as messages_pt;
2526
import 'messages_sk.dart' as messages_sk;
2627

@@ -34,6 +35,7 @@ Map<String, LibraryLoader> _deferredLibraries = {
3435
'messages': () => new Future.value(null),
3536
'pt': () => new Future.value(null),
3637
'sk': () => new Future.value(null),
38+
'pl': () => new Future.value(null),
3739
};
3840

3941
MessageLookupByLibrary _findExact(String localeName) {
@@ -54,6 +56,8 @@ MessageLookupByLibrary _findExact(String localeName) {
5456
return messages_pt.messages;
5557
case 'sk':
5658
return messages_sk.messages;
59+
case 'pl':
60+
return messages_pl.messages;
5761
default:
5862
return null;
5963
}

lib/l10n/messages_pl.dart

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
2+
// This is a library that provides messages for a sk locale. All the
3+
// messages from the main program should be duplicated here with the same
4+
// function name.
5+
6+
// Ignore issues from commonly used lints in this file.
7+
// ignore_for_file:unnecessary_brace_in_string_interps, unnecessary_new
8+
// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering
9+
// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases
10+
// ignore_for_file:unused_import, file_names
11+
12+
import 'package:intl/intl.dart';
13+
import 'package:intl/message_lookup_by_library.dart';
14+
15+
final messages = new MessageLookup();
16+
17+
typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
18+
19+
class MessageLookup extends MessageLookupByLibrary {
20+
String get localeName => 'pl';
21+
22+
static m0(value) => "Wartość tego pola musi wynosić ${value}.";
23+
24+
static m1(max) => "Wartość musi być mniejsza lub równa ${max}.";
25+
26+
static m2(maxLength) => "Wartość nie może przekraczać ${maxLength} znaków.";
27+
28+
static m3(min) => "Wartość musi być większa lub równa ${min}.";
29+
30+
static m4(minLength) => "Wartość musi wynosić co najmniej ${minLength} znaków.";
31+
32+
static m5(value) => "Wartość tego pola nie może być ${value}.";
33+
34+
final messages = _notInlinedMessages(_notInlinedMessages);
35+
static _notInlinedMessages(_) => <String, Function>{
36+
"creditCardErrorText": MessageLookupByLibrary.simpleMessage(
37+
"To pole wymaga podania ważnego numeru karty kredytowej."),
38+
"DateStringErrorText": MessageLookupByLibrary.simpleMessage(
39+
"To pole wymaga poprawnego ciągu znaków daty."),
40+
"emailErrorText": MessageLookupByLibrary.simpleMessage(
41+
"To pole wymaga podania poprawnego adresu e-mail.")
42+
"ipErrorText": MessageLookupByLibrary.simpleMessage(
43+
"To pole wymaga ważnego IP."),
44+
"matchErrorText": MessageLookupByLibrary.simpleMessage(
45+
"Wartość nie pasuje do wzorca."),
46+
"maxErrorText": m0,
47+
"MaxLengthErrorText": m1,
48+
"minErrorText": m2,
49+
"MinLengthErrorText": m3,
50+
"numericErrorText":
51+
MessageLookupByLibrary.simpleMessage("Wartość musi być numeryczna."),
52+
"requiredErrorText":
53+
MessageLookupByLibrary.simpleMessage("To pole nie może być puste."),
54+
"urlErrorText": MessageLookupByLibrary.simpleMessage(
55+
"To pole wymaga podania poprawnego adresu URL.")
56+
};
57+
}

lib/localization/form_builder_localizations.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class _FormBuilderLocalizationsDelegate
135135

136136
@override
137137
bool isSupported(Locale locale) {
138-
return ['en', 'es', 'fr', 'hu', 'it', 'ja', 'pt', 'sk']
138+
return ['en', 'es', 'fr', 'hu', 'it', 'ja', 'pt', 'sk', 'pl']
139139
.contains(locale.languageCode);
140140
}
141141

0 commit comments

Comments
 (0)