Skip to content

Commit 68373e0

Browse files
author
Cédric Chevillard
authored
French translation (#573)
* Push translation * all translation génération
1 parent 9396221 commit 68373e0

File tree

6 files changed

+187
-85
lines changed

6 files changed

+187
-85
lines changed

lib/l10n/intl_fr.arb

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"@@last_modified": "2020-11-17T09:00:39.706877",
3+
"requiredErrorText": "Ce champ ne peut pas être vide.",
4+
"@requiredErrorText": {
5+
"description": "Error Text for required field",
6+
"type": "text",
7+
"placeholders": {}
8+
},
9+
"minErrorText": "La valeur doit être supérieure ou égale à {min}.",
10+
"@minErrorText": {
11+
"description": "Error Text for required field",
12+
"type": "text",
13+
"placeholders": {
14+
"min": {}
15+
}
16+
},
17+
"minLengthErrorText": "La valeur doit avoir une longueur supérieure ou égale à {minLength}",
18+
"@minLengthErrorText": {
19+
"description": "Error Text for required field",
20+
"type": "text",
21+
"placeholders": {
22+
"minLength": {}
23+
}
24+
},
25+
"maxErrorText": "La valeur doit être inférieure ou égale à {max}",
26+
"@maxErrorText": {
27+
"description": "Error Text for required field",
28+
"type": "text",
29+
"placeholders": {
30+
"max": {}
31+
}
32+
},
33+
"maxLengthErrorText": "La valeur doit avoir une longueur inférieure ou égale à {maxLength}",
34+
"@maxLengthErrorText": {
35+
"description": "Error Text for required field",
36+
"type": "text",
37+
"placeholders": {
38+
"maxLength": {}
39+
}
40+
},
41+
"emailErrorText": "Ce champ nécessite une adresse e-mail valide.",
42+
"@emailErrorText": {
43+
"description": "Error Text for email field",
44+
"type": "text",
45+
"placeholders": {}
46+
},
47+
"urlErrorText": "Ce champ nécessite une adresse URL valide.",
48+
"@urlErrorText": {
49+
"description": "Error Text for URL field",
50+
"type": "text",
51+
"placeholders": {}
52+
},
53+
"matchErrorText": "La valeur ne correspond pas au modèle.",
54+
"@matchErrorText": {
55+
"description": "Error Text for pattern field",
56+
"type": "text",
57+
"placeholders": {}
58+
},
59+
"numericErrorText": "La valeur doit être numérique.",
60+
"@numericErrorText": {
61+
"description": "Error Text for numeric field",
62+
"type": "text",
63+
"placeholders": {}
64+
},
65+
"creditCardErrorText": "Ce champ nécessite un numéro de carte de crédit valide.",
66+
"@creditCardErrorText": {
67+
"description": "Error Text for credit card field",
68+
"type": "text",
69+
"placeholders": {}
70+
},
71+
"ipErrorText": "Ce champ nécessite une adresse IP valide.",
72+
"@ipErrorText": {
73+
"description": "Error Text for IP address field",
74+
"type": "text",
75+
"placeholders": {}
76+
},
77+
"dateStringErrorText": "Ce champ nécessite une chaîne de date valide.",
78+
"@dateStringErrorText": {
79+
"description": "Error Text for date string field",
80+
"type": "text",
81+
"placeholders": {}
82+
}
83+
}

lib/l10n/messages_all.dart

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ import 'package:intl/src/intl_helpers.dart';
1717

1818
import 'messages_en.dart' as messages_en;
1919
import 'messages_es.dart' as messages_es;
20+
import 'messages_fr.dart' as messages_fr;
2021
import 'messages_messages.dart' as messages_messages;
2122

2223
typedef Future<dynamic> LibraryLoader();
2324
Map<String, LibraryLoader> _deferredLibraries = {
2425
'en': () => new Future.value(null),
2526
'es': () => new Future.value(null),
27+
'fr': () => new Future.value(null),
2628
'messages': () => new Future.value(null),
2729
};
2830

@@ -32,6 +34,8 @@ MessageLookupByLibrary _findExact(String localeName) {
3234
return messages_en.messages;
3335
case 'es':
3436
return messages_es.messages;
37+
case 'fr':
38+
return messages_fr.messages;
3539
case 'messages':
3640
return messages_messages.messages;
3741
default:
@@ -42,8 +46,9 @@ MessageLookupByLibrary _findExact(String localeName) {
4246
/// User programs should call this before using [localeName] for messages.
4347
Future<bool> initializeMessages(String localeName) async {
4448
var availableLocale = Intl.verifiedLocale(
45-
localeName, (locale) => _deferredLibraries[locale] != null,
46-
onFailure: (_) => null);
49+
localeName,
50+
(locale) => _deferredLibraries[locale] != null,
51+
onFailure: (_) => null);
4752
if (availableLocale == null) {
4853
return new Future.value(false);
4954
}
@@ -63,8 +68,8 @@ bool _messagesExistFor(String locale) {
6368
}
6469

6570
MessageLookupByLibrary _findGeneratedMessagesFor(String locale) {
66-
var actualLocale =
67-
Intl.verifiedLocale(locale, _messagesExistFor, onFailure: (_) => null);
71+
var actualLocale = Intl.verifiedLocale(locale, _messagesExistFor,
72+
onFailure: (_) => null);
6873
if (actualLocale == null) return null;
6974
return _findExact(actualLocale);
7075
}

lib/l10n/messages_en.dart

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,25 @@ class MessageLookup extends MessageLookupByLibrary {
2121

2222
static m0(max) => "Value must be less than or equal to ${max}";
2323

24-
static m1(maxLength) =>
25-
"Value must have a length less than or equal to ${maxLength}";
24+
static m1(maxLength) => "Value must have a length less than or equal to ${maxLength}";
2625

2726
static m2(min) => "Value must be greater than or equal to ${min}.";
2827

29-
static m3(minLength) =>
30-
"Value must have a length greater than or equal to ${minLength}";
28+
static m3(minLength) => "Value must have a length greater than or equal to ${minLength}";
3129

3230
final messages = _notInlinedMessages(_notInlinedMessages);
33-
static _notInlinedMessages(_) => <String, Function>{
34-
"creditCardErrorText": MessageLookupByLibrary.simpleMessage(
35-
"This field requires a valid credit card number."),
36-
"dateStringErrorText": MessageLookupByLibrary.simpleMessage(
37-
"This field requires a valid date string."),
38-
"emailErrorText": MessageLookupByLibrary.simpleMessage(
39-
"This field requires a valid email address."),
40-
"ipErrorText": MessageLookupByLibrary.simpleMessage(
41-
"This field requires a valid IP."),
42-
"matchErrorText": MessageLookupByLibrary.simpleMessage(
43-
"Value does not match pattern."),
44-
"maxErrorText": m0,
45-
"maxLengthErrorText": m1,
46-
"minErrorText": m2,
47-
"minLengthErrorText": m3,
48-
"numericErrorText":
49-
MessageLookupByLibrary.simpleMessage("Value must be numeric."),
50-
"requiredErrorText":
51-
MessageLookupByLibrary.simpleMessage("This field cannot be empty."),
52-
"urlErrorText": MessageLookupByLibrary.simpleMessage(
53-
"This field requires a valid URL address.")
54-
};
31+
static _notInlinedMessages(_) => <String, Function> {
32+
"creditCardErrorText" : MessageLookupByLibrary.simpleMessage("This field requires a valid credit card number."),
33+
"dateStringErrorText" : MessageLookupByLibrary.simpleMessage("This field requires a valid date string."),
34+
"emailErrorText" : MessageLookupByLibrary.simpleMessage("This field requires a valid email address."),
35+
"ipErrorText" : MessageLookupByLibrary.simpleMessage("This field requires a valid IP."),
36+
"matchErrorText" : MessageLookupByLibrary.simpleMessage("Value does not match pattern."),
37+
"maxErrorText" : m0,
38+
"maxLengthErrorText" : m1,
39+
"minErrorText" : m2,
40+
"minLengthErrorText" : m3,
41+
"numericErrorText" : MessageLookupByLibrary.simpleMessage("Value must be numeric."),
42+
"requiredErrorText" : MessageLookupByLibrary.simpleMessage("This field cannot be empty."),
43+
"urlErrorText" : MessageLookupByLibrary.simpleMessage("This field requires a valid URL address.")
44+
};
5545
}

lib/l10n/messages_es.dart

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,25 @@ class MessageLookup extends MessageLookupByLibrary {
2121

2222
static m0(max) => "El valor debe ser menor o igual que ${max}.";
2323

24-
static m1(maxLength) =>
25-
"El valor debe tener una longitud menor o igual a ${maxLength}";
24+
static m1(maxLength) => "El valor debe tener una longitud menor o igual a ${maxLength}";
2625

2726
static m2(min) => "El valor debe ser mayor o igual que ${min}.";
2827

29-
static m3(minLength) =>
30-
"El valor debe tener una longitud mayor o igual a ${minLength}";
28+
static m3(minLength) => "El valor debe tener una longitud mayor o igual a ${minLength}";
3129

3230
final messages = _notInlinedMessages(_notInlinedMessages);
33-
static _notInlinedMessages(_) => <String, Function>{
34-
"creditCardErrorText": MessageLookupByLibrary.simpleMessage(
35-
"Este campo requiere un número de tarjeta de crédito válido."),
36-
"dateStringErrorText": MessageLookupByLibrary.simpleMessage(
37-
"Este campo requiere una cadena de fecha válida."),
38-
"emailErrorText": MessageLookupByLibrary.simpleMessage(
39-
"Este campo requiere una dirección de correo electrónico válida."),
40-
"ipErrorText": MessageLookupByLibrary.simpleMessage(
41-
"Este campo requiere una IP válida."),
42-
"matchErrorText": MessageLookupByLibrary.simpleMessage(
43-
"El valor no coincide con el patrón requerido."),
44-
"maxErrorText": m0,
45-
"maxLengthErrorText": m1,
46-
"minErrorText": m2,
47-
"minLengthErrorText": m3,
48-
"numericErrorText":
49-
MessageLookupByLibrary.simpleMessage("El valor debe ser numérico."),
50-
"requiredErrorText": MessageLookupByLibrary.simpleMessage(
51-
"Este campo no puede estar vacío."),
52-
"urlErrorText": MessageLookupByLibrary.simpleMessage(
53-
"Este campo requiere una dirección URL válida.")
54-
};
31+
static _notInlinedMessages(_) => <String, Function> {
32+
"creditCardErrorText" : MessageLookupByLibrary.simpleMessage("Este campo requiere un número de tarjeta de crédito válido."),
33+
"dateStringErrorText" : MessageLookupByLibrary.simpleMessage("Este campo requiere una cadena de fecha válida."),
34+
"emailErrorText" : MessageLookupByLibrary.simpleMessage("Este campo requiere una dirección de correo electrónico válida."),
35+
"ipErrorText" : MessageLookupByLibrary.simpleMessage("Este campo requiere una IP válida."),
36+
"matchErrorText" : MessageLookupByLibrary.simpleMessage("El valor no coincide con el patrón requerido."),
37+
"maxErrorText" : m0,
38+
"maxLengthErrorText" : m1,
39+
"minErrorText" : m2,
40+
"minLengthErrorText" : m3,
41+
"numericErrorText" : MessageLookupByLibrary.simpleMessage("El valor debe ser numérico."),
42+
"requiredErrorText" : MessageLookupByLibrary.simpleMessage("Este campo no puede estar vacío."),
43+
"urlErrorText" : MessageLookupByLibrary.simpleMessage("Este campo requiere una dirección URL válida.")
44+
};
5545
}

lib/l10n/messages_fr.dart

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
2+
// This is a library that provides messages for a fr 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 => 'fr';
21+
22+
static m0(max) => "La valeur doit être inférieure ou égale à ${max}";
23+
24+
static m1(maxLength) => "La valeur doit avoir une longueur inférieure ou égale à ${maxLength}";
25+
26+
static m2(min) => "La valeur doit être supérieure ou égale à ${min}.";
27+
28+
static m3(minLength) => "La valeur doit avoir une longueur supérieure ou égale à ${minLength}";
29+
30+
final messages = _notInlinedMessages(_notInlinedMessages);
31+
static _notInlinedMessages(_) => <String, Function> {
32+
"creditCardErrorText" : MessageLookupByLibrary.simpleMessage("Ce champ nécessite un numéro de carte de crédit valide."),
33+
"dateStringErrorText" : MessageLookupByLibrary.simpleMessage("Ce champ nécessite une chaîne de date valide."),
34+
"emailErrorText" : MessageLookupByLibrary.simpleMessage("Ce champ nécessite une adresse e-mail valide."),
35+
"ipErrorText" : MessageLookupByLibrary.simpleMessage("Ce champ nécessite une adresse IP valide."),
36+
"matchErrorText" : MessageLookupByLibrary.simpleMessage("La valeur ne correspond pas au modèle."),
37+
"maxErrorText" : m0,
38+
"maxLengthErrorText" : m1,
39+
"minErrorText" : m2,
40+
"minLengthErrorText" : m3,
41+
"numericErrorText" : MessageLookupByLibrary.simpleMessage("La valeur doit être numérique."),
42+
"requiredErrorText" : MessageLookupByLibrary.simpleMessage("Ce champ ne peut pas être vide."),
43+
"urlErrorText" : MessageLookupByLibrary.simpleMessage("Ce champ nécessite une adresse URL valide.")
44+
};
45+
}

lib/l10n/messages_messages.dart

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,38 +23,27 @@ class MessageLookup extends MessageLookupByLibrary {
2323

2424
static m0(max) => "Value must be less than or equal to ${max}";
2525

26-
static m1(maxLength) =>
27-
"Value must have a length less than or equal to ${maxLength}";
26+
static m1(maxLength) => "Value must have a length less than or equal to ${maxLength}";
2827

2928
static m2(min) => "Value must be greater than or equal to ${min}.";
3029

31-
static m3(minLength) =>
32-
"Value must have a length greater than or equal to ${minLength}";
30+
static m3(minLength) => "Value must have a length greater than or equal to ${minLength}";
3331

3432
final messages = _notInlinedMessages(_notInlinedMessages);
35-
static _notInlinedMessages(_) => <String, Function>{
36-
"creditCardErrorText": MessageLookupByLibrary.simpleMessage(
37-
"This field requires a valid credit card number."),
38-
"dateStringErrorText": MessageLookupByLibrary.simpleMessage(
39-
"This field requires a valid date string."),
40-
"emailErrorText": MessageLookupByLibrary.simpleMessage(
41-
"This field requires a valid email address."),
42-
"equalErrorText": m4,
43-
"integerErrorText":
44-
MessageLookupByLibrary.simpleMessage("Value must be an integer."),
45-
"ipErrorText": MessageLookupByLibrary.simpleMessage(
46-
"This field requires a valid IP."),
47-
"matchErrorText": MessageLookupByLibrary.simpleMessage(
48-
"Value does not match pattern."),
49-
"maxErrorText": m0,
50-
"maxLengthErrorText": m1,
51-
"minErrorText": m2,
52-
"minLengthErrorText": m3,
53-
"numericErrorText":
54-
MessageLookupByLibrary.simpleMessage("Value must be numeric."),
55-
"requiredErrorText":
56-
MessageLookupByLibrary.simpleMessage("This field cannot be empty."),
57-
"urlErrorText": MessageLookupByLibrary.simpleMessage(
58-
"This field requires a valid URL address.")
59-
};
33+
static _notInlinedMessages(_) => <String, Function> {
34+
"creditCardErrorText" : MessageLookupByLibrary.simpleMessage("This field requires a valid credit card number."),
35+
"dateStringErrorText" : MessageLookupByLibrary.simpleMessage("This field requires a valid date string."),
36+
"emailErrorText" : MessageLookupByLibrary.simpleMessage("This field requires a valid email address."),
37+
"equalErrorText" : m4,
38+
"integerErrorText" : MessageLookupByLibrary.simpleMessage("Value must be an integer."),
39+
"ipErrorText" : MessageLookupByLibrary.simpleMessage("This field requires a valid IP."),
40+
"matchErrorText" : MessageLookupByLibrary.simpleMessage("Value does not match pattern."),
41+
"maxErrorText" : m0,
42+
"maxLengthErrorText" : m1,
43+
"minErrorText" : m2,
44+
"minLengthErrorText" : m3,
45+
"numericErrorText" : MessageLookupByLibrary.simpleMessage("Value must be numeric."),
46+
"requiredErrorText" : MessageLookupByLibrary.simpleMessage("This field cannot be empty."),
47+
"urlErrorText" : MessageLookupByLibrary.simpleMessage("This field requires a valid URL address.")
48+
};
6049
}

0 commit comments

Comments
 (0)