Unverified Commit 365528aa authored by Shi-Hao Hong's avatar Shi-Hao Hong Committed by GitHub

Use `no` locale as synonym for `nb` (#53880)

parent e0127526
......@@ -172,6 +172,14 @@ Set<String> _supportedLocales() {
if (FileSystemEntity.isFileSync(filePath) && filenameRE.hasMatch(filePath))
supportedLocales.add(filenameRE.firstMatch(filePath)[1]);
}
// See https://github.com/flutter/flutter/issues/53036 for context on why
// 'no' is being used as a synonym for 'nb'. It only uses this synonym
// if 'nb' is not detected as a valid arb file.
if (supportedLocales.contains('no') && !supportedLocales.contains('nb')) {
supportedLocales.add('nb');
}
return supportedLocales;
}
......
......@@ -76,6 +76,11 @@ String generateArbBasedLocalizationSubclasses({
assert(supportedLanguagesConstant.isNotEmpty);
assert(supportedLanguagesDocMacro.isNotEmpty);
// See https://github.com/flutter/flutter/issues/53036 for context on why
// 'no' is being used as a synonym for 'nb'. It only uses this synonym
// if 'nb' is not detected as a valid arb file.
bool isNbSynonymOfNo = false;
final StringBuffer output = StringBuffer();
output.writeln(generateHeader('dart dev/tools/localization/bin/gen_localizations.dart --overwrite'));
......@@ -101,6 +106,12 @@ String generateArbBasedLocalizationSubclasses({
allResourceIdentifiers.addAll(localeToResources[locale].keys.toList()..sort());
}
if (languageToLocales['no'] != null && languageToLocales['nb'] == null) {
languageToLocales['nb'] ??= <LocaleInfo>[];
languageToLocales['nb'].add(LocaleInfo.fromString('nb'));
isNbSynonymOfNo = true;
}
// We generate one class per supported language (e.g.
// `MaterialLocalizationEn`). These implement everything that is needed by the
// superclass (e.g. GlobalMaterialLocalizations).
......@@ -117,7 +128,7 @@ String generateArbBasedLocalizationSubclasses({
// If scriptCodes for a language are defined, we expect a scriptCode to be
// defined for locales that contain a countryCode. The superclass becomes
// the script sublcass (e.g. `MaterialLocalizationZhHant`) and the generated
// the script subclass (e.g. `MaterialLocalizationZhHant`) and the generated
// subclass will also contain the script code (e.g. `MaterialLocalizationZhHantTW`).
// When scriptCodes are not defined for languages that use scriptCodes to distinguish
......@@ -130,6 +141,22 @@ String generateArbBasedLocalizationSubclasses({
final LocaleInfo canonicalLocale = LocaleInfo.fromString('en');
for (final String languageName in languageCodes) {
final LocaleInfo languageLocale = LocaleInfo.fromString(languageName);
// See https://github.com/flutter/flutter/issues/53036 for context on why
// 'no' is being used as a synonym for 'nb'. It only uses this synonym
// if 'nb' is not detected as a valid arb file.
if (languageName == 'nb' && isNbSynonymOfNo) {
output.writeln(generateClassDeclaration(
languageLocale,
generatedClassPrefix,
'${generatedClassPrefix}No'),
);
output.writeln(generateConstructor(languageLocale));
output.writeln('}');
supportedLocales.writeln('/// * `$languageName` - ${describeLocale(languageName)}, which, in this library, is a synonym of `no`');
continue;
}
output.writeln(generateClassDeclaration(languageLocale, generatedClassPrefix, baseClass));
output.writeln(generateConstructor(languageLocale));
......@@ -212,6 +239,7 @@ String generateArbBasedLocalizationSubclasses({
output.writeln('}');
}
}
final String scriptCodeMessage = scriptCodeCount == 0 ? '' : ' and $scriptCodeCount script' + (scriptCodeCount == 1 ? '' : 's');
if (countryCodeCount == 0) {
if (scriptCodeCount == 0)
......
......@@ -8398,7 +8398,7 @@ class CupertinoLocalizationMy extends GlobalCupertinoLocalizations {
}
/// The translations for Norwegian Bokmål (`nb`).
class CupertinoLocalizationNb extends GlobalCupertinoLocalizations {
class CupertinoLocalizationNb extends CupertinoLocalizationNo {
/// Create an instance of the translation bundle for Norwegian Bokmål.
///
/// For details on the meaning of the arguments, see [GlobalCupertinoLocalizations].
......@@ -8423,21 +8423,49 @@ class CupertinoLocalizationNb extends GlobalCupertinoLocalizations {
singleDigitSecondFormat: singleDigitSecondFormat,
decimalFormat: decimalFormat,
);
}
/// The translations for Nepali (`ne`).
class CupertinoLocalizationNe extends GlobalCupertinoLocalizations {
/// Create an instance of the translation bundle for Nepali.
///
/// For details on the meaning of the arguments, see [GlobalCupertinoLocalizations].
const CupertinoLocalizationNe({
String localeName = 'ne',
@required intl.DateFormat fullYearFormat,
@required intl.DateFormat dayFormat,
@required intl.DateFormat mediumDateFormat,
@required intl.DateFormat singleDigitHourFormat,
@required intl.DateFormat singleDigitMinuteFormat,
@required intl.DateFormat doubleDigitMinuteFormat,
@required intl.DateFormat singleDigitSecondFormat,
@required intl.NumberFormat decimalFormat,
}) : super(
localeName: localeName,
fullYearFormat: fullYearFormat,
dayFormat: dayFormat,
mediumDateFormat: mediumDateFormat,
singleDigitHourFormat: singleDigitHourFormat,
singleDigitMinuteFormat: singleDigitMinuteFormat,
doubleDigitMinuteFormat: doubleDigitMinuteFormat,
singleDigitSecondFormat: singleDigitSecondFormat,
decimalFormat: decimalFormat,
);
@override
String get alertDialogLabel => 'Varsel';
String get alertDialogLabel => 'अलर्ट';
@override
String get anteMeridiemAbbreviation => 'AM';
String get anteMeridiemAbbreviation => 'पूर्वाह्न';
@override
String get copyButtonLabel => 'Kopiér';
String get copyButtonLabel => 'प्रतिलिपि गर्नुहोस्';
@override
String get cutButtonLabel => 'Klipp ut';
String get cutButtonLabel => 'काट्नुहोस्';
@override
String get datePickerDateOrderString => 'dmy';
String get datePickerDateOrderString => 'mdy';
@override
String get datePickerDateTimeOrderString => 'date_time_dayPeriod';
......@@ -8449,10 +8477,10 @@ class CupertinoLocalizationNb extends GlobalCupertinoLocalizations {
String get datePickerHourSemanticsLabelMany => null;
@override
String get datePickerHourSemanticsLabelOne => '\$hour null-null';
String get datePickerHourSemanticsLabelOne => '\$hour बजे';
@override
String get datePickerHourSemanticsLabelOther => '\$hour null-null';
String get datePickerHourSemanticsLabelOther => '\$hour बजे';
@override
String get datePickerHourSemanticsLabelTwo => null;
......@@ -8467,10 +8495,10 @@ class CupertinoLocalizationNb extends GlobalCupertinoLocalizations {
String get datePickerMinuteSemanticsLabelMany => null;
@override
String get datePickerMinuteSemanticsLabelOne => '1 minutt';
String get datePickerMinuteSemanticsLabelOne => '१ मिनेट';
@override
String get datePickerMinuteSemanticsLabelOther => '\$minute minutter';
String get datePickerMinuteSemanticsLabelOther => '\$minute मिनेट';
@override
String get datePickerMinuteSemanticsLabelTwo => null;
......@@ -8479,13 +8507,13 @@ class CupertinoLocalizationNb extends GlobalCupertinoLocalizations {
String get datePickerMinuteSemanticsLabelZero => null;
@override
String get pasteButtonLabel => 'Lim inn';
String get pasteButtonLabel => 'टाँस्नुहोस्';
@override
String get postMeridiemAbbreviation => 'PM';
String get postMeridiemAbbreviation => 'अपराह्न';
@override
String get selectAllButtonLabel => 'Velg alle';
String get selectAllButtonLabel => 'सबै चयन गर्नुहोस्';
@override
String get timerPickerHourLabelFew => null;
......@@ -8494,10 +8522,10 @@ class CupertinoLocalizationNb extends GlobalCupertinoLocalizations {
String get timerPickerHourLabelMany => null;
@override
String get timerPickerHourLabelOne => 'time';
String get timerPickerHourLabelOne => 'घन्टा';
@override
String get timerPickerHourLabelOther => 'timer';
String get timerPickerHourLabelOther => 'घन्टा';
@override
String get timerPickerHourLabelTwo => null;
......@@ -8512,10 +8540,10 @@ class CupertinoLocalizationNb extends GlobalCupertinoLocalizations {
String get timerPickerMinuteLabelMany => null;
@override
String get timerPickerMinuteLabelOne => 'min.';
String get timerPickerMinuteLabelOne => 'मिनेट';
@override
String get timerPickerMinuteLabelOther => 'min.';
String get timerPickerMinuteLabelOther => 'मिनेट';
@override
String get timerPickerMinuteLabelTwo => null;
......@@ -8530,10 +8558,10 @@ class CupertinoLocalizationNb extends GlobalCupertinoLocalizations {
String get timerPickerSecondLabelMany => null;
@override
String get timerPickerSecondLabelOne => 'sek.';
String get timerPickerSecondLabelOne => 'सेकेन्ड';
@override
String get timerPickerSecondLabelOther => 'sek.';
String get timerPickerSecondLabelOther => 'सेकेन्ड';
@override
String get timerPickerSecondLabelTwo => null;
......@@ -8542,16 +8570,16 @@ class CupertinoLocalizationNb extends GlobalCupertinoLocalizations {
String get timerPickerSecondLabelZero => null;
@override
String get todayLabel => 'I dag';
String get todayLabel => 'आज';
}
/// The translations for Nepali (`ne`).
class CupertinoLocalizationNe extends GlobalCupertinoLocalizations {
/// Create an instance of the translation bundle for Nepali.
/// The translations for Dutch Flemish (`nl`).
class CupertinoLocalizationNl extends GlobalCupertinoLocalizations {
/// Create an instance of the translation bundle for Dutch Flemish.
///
/// For details on the meaning of the arguments, see [GlobalCupertinoLocalizations].
const CupertinoLocalizationNe({
String localeName = 'ne',
const CupertinoLocalizationNl({
String localeName = 'nl',
@required intl.DateFormat fullYearFormat,
@required intl.DateFormat dayFormat,
@required intl.DateFormat mediumDateFormat,
......@@ -8573,19 +8601,19 @@ class CupertinoLocalizationNe extends GlobalCupertinoLocalizations {
);
@override
String get alertDialogLabel => 'अलर्ट';
String get alertDialogLabel => 'Melding';
@override
String get anteMeridiemAbbreviation => 'पूर्वाह्न';
String get anteMeridiemAbbreviation => 'am';
@override
String get copyButtonLabel => 'प्रतिलिपि गर्नुहोस्';
String get copyButtonLabel => 'Kopiëren';
@override
String get cutButtonLabel => 'काट्नुहोस्';
String get cutButtonLabel => 'Knippen';
@override
String get datePickerDateOrderString => 'mdy';
String get datePickerDateOrderString => 'dmy';
@override
String get datePickerDateTimeOrderString => 'date_time_dayPeriod';
......@@ -8597,10 +8625,10 @@ class CupertinoLocalizationNe extends GlobalCupertinoLocalizations {
String get datePickerHourSemanticsLabelMany => null;
@override
String get datePickerHourSemanticsLabelOne => '\$hour बजे';
String get datePickerHourSemanticsLabelOne => '\$hour uur';
@override
String get datePickerHourSemanticsLabelOther => '\$hour बजे';
String get datePickerHourSemanticsLabelOther => '\$hour uur';
@override
String get datePickerHourSemanticsLabelTwo => null;
......@@ -8615,10 +8643,10 @@ class CupertinoLocalizationNe extends GlobalCupertinoLocalizations {
String get datePickerMinuteSemanticsLabelMany => null;
@override
String get datePickerMinuteSemanticsLabelOne => '१ मिनेट';
String get datePickerMinuteSemanticsLabelOne => '1 minuut';
@override
String get datePickerMinuteSemanticsLabelOther => '\$minute मिनेट';
String get datePickerMinuteSemanticsLabelOther => '\$minute minuten';
@override
String get datePickerMinuteSemanticsLabelTwo => null;
......@@ -8627,13 +8655,13 @@ class CupertinoLocalizationNe extends GlobalCupertinoLocalizations {
String get datePickerMinuteSemanticsLabelZero => null;
@override
String get pasteButtonLabel => 'टाँस्नुहोस्';
String get pasteButtonLabel => 'Plakken';
@override
String get postMeridiemAbbreviation => 'अपराह्न';
String get postMeridiemAbbreviation => 'pm';
@override
String get selectAllButtonLabel => 'सबै चयन गर्नुहोस्';
String get selectAllButtonLabel => 'Alles selecteren';
@override
String get timerPickerHourLabelFew => null;
......@@ -8642,10 +8670,10 @@ class CupertinoLocalizationNe extends GlobalCupertinoLocalizations {
String get timerPickerHourLabelMany => null;
@override
String get timerPickerHourLabelOne => 'घन्टा';
String get timerPickerHourLabelOne => 'uur';
@override
String get timerPickerHourLabelOther => 'घन्टा';
String get timerPickerHourLabelOther => 'uur';
@override
String get timerPickerHourLabelTwo => null;
......@@ -8660,10 +8688,10 @@ class CupertinoLocalizationNe extends GlobalCupertinoLocalizations {
String get timerPickerMinuteLabelMany => null;
@override
String get timerPickerMinuteLabelOne => 'मिनेट';
String get timerPickerMinuteLabelOne => 'min.';
@override
String get timerPickerMinuteLabelOther => 'मिनेट';
String get timerPickerMinuteLabelOther => 'min.';
@override
String get timerPickerMinuteLabelTwo => null;
......@@ -8678,10 +8706,10 @@ class CupertinoLocalizationNe extends GlobalCupertinoLocalizations {
String get timerPickerSecondLabelMany => null;
@override
String get timerPickerSecondLabelOne => 'सेकेन्ड';
String get timerPickerSecondLabelOne => 'sec.';
@override
String get timerPickerSecondLabelOther => 'सेकेन्ड';
String get timerPickerSecondLabelOther => 'sec.';
@override
String get timerPickerSecondLabelTwo => null;
......@@ -8690,16 +8718,16 @@ class CupertinoLocalizationNe extends GlobalCupertinoLocalizations {
String get timerPickerSecondLabelZero => null;
@override
String get todayLabel => 'आज';
String get todayLabel => 'Vandaag';
}
/// The translations for Dutch Flemish (`nl`).
class CupertinoLocalizationNl extends GlobalCupertinoLocalizations {
/// Create an instance of the translation bundle for Dutch Flemish.
/// The translations for Norwegian (`no`).
class CupertinoLocalizationNo extends GlobalCupertinoLocalizations {
/// Create an instance of the translation bundle for Norwegian.
///
/// For details on the meaning of the arguments, see [GlobalCupertinoLocalizations].
const CupertinoLocalizationNl({
String localeName = 'nl',
const CupertinoLocalizationNo({
String localeName = 'no',
@required intl.DateFormat fullYearFormat,
@required intl.DateFormat dayFormat,
@required intl.DateFormat mediumDateFormat,
......@@ -8721,16 +8749,16 @@ class CupertinoLocalizationNl extends GlobalCupertinoLocalizations {
);
@override
String get alertDialogLabel => 'Melding';
String get alertDialogLabel => 'Varsel';
@override
String get anteMeridiemAbbreviation => 'am';
String get anteMeridiemAbbreviation => 'AM';
@override
String get copyButtonLabel => 'Kopiëren';
String get copyButtonLabel => 'Kopiér';
@override
String get cutButtonLabel => 'Knippen';
String get cutButtonLabel => 'Klipp ut';
@override
String get datePickerDateOrderString => 'dmy';
......@@ -8745,10 +8773,10 @@ class CupertinoLocalizationNl extends GlobalCupertinoLocalizations {
String get datePickerHourSemanticsLabelMany => null;
@override
String get datePickerHourSemanticsLabelOne => '\$hour uur';
String get datePickerHourSemanticsLabelOne => '\$hour null-null';
@override
String get datePickerHourSemanticsLabelOther => '\$hour uur';
String get datePickerHourSemanticsLabelOther => '\$hour null-null';
@override
String get datePickerHourSemanticsLabelTwo => null;
......@@ -8763,10 +8791,10 @@ class CupertinoLocalizationNl extends GlobalCupertinoLocalizations {
String get datePickerMinuteSemanticsLabelMany => null;
@override
String get datePickerMinuteSemanticsLabelOne => '1 minuut';
String get datePickerMinuteSemanticsLabelOne => '1 minutt';
@override
String get datePickerMinuteSemanticsLabelOther => '\$minute minuten';
String get datePickerMinuteSemanticsLabelOther => '\$minute minutter';
@override
String get datePickerMinuteSemanticsLabelTwo => null;
......@@ -8775,13 +8803,13 @@ class CupertinoLocalizationNl extends GlobalCupertinoLocalizations {
String get datePickerMinuteSemanticsLabelZero => null;
@override
String get pasteButtonLabel => 'Plakken';
String get pasteButtonLabel => 'Lim inn';
@override
String get postMeridiemAbbreviation => 'pm';
String get postMeridiemAbbreviation => 'PM';
@override
String get selectAllButtonLabel => 'Alles selecteren';
String get selectAllButtonLabel => 'Velg alle';
@override
String get timerPickerHourLabelFew => null;
......@@ -8790,10 +8818,10 @@ class CupertinoLocalizationNl extends GlobalCupertinoLocalizations {
String get timerPickerHourLabelMany => null;
@override
String get timerPickerHourLabelOne => 'uur';
String get timerPickerHourLabelOne => 'time';
@override
String get timerPickerHourLabelOther => 'uur';
String get timerPickerHourLabelOther => 'timer';
@override
String get timerPickerHourLabelTwo => null;
......@@ -8826,10 +8854,10 @@ class CupertinoLocalizationNl extends GlobalCupertinoLocalizations {
String get timerPickerSecondLabelMany => null;
@override
String get timerPickerSecondLabelOne => 'sec.';
String get timerPickerSecondLabelOne => 'sek.';
@override
String get timerPickerSecondLabelOther => 'sec.';
String get timerPickerSecondLabelOther => 'sek.';
@override
String get timerPickerSecondLabelTwo => null;
......@@ -8838,7 +8866,7 @@ class CupertinoLocalizationNl extends GlobalCupertinoLocalizations {
String get timerPickerSecondLabelZero => null;
@override
String get todayLabel => 'Vandaag';
String get todayLabel => 'I dag';
}
/// The translations for Oriya (`or`).
......@@ -12794,6 +12822,7 @@ final Set<String> kCupertinoSupportedLanguages = HashSet<String>.from(const <Str
'nb', // Norwegian Bokmål
'ne', // Nepali
'nl', // Dutch Flemish
'no', // Norwegian
'or', // Oriya
'pa', // Panjabi Punjabi
'pl', // Polish
......@@ -12879,9 +12908,10 @@ final Set<String> kCupertinoSupportedLanguages = HashSet<String>.from(const <Str
/// * `mr` - Marathi
/// * `ms` - Malay
/// * `my` - Burmese
/// * `nb` - Norwegian Bokmål
/// * `nb` - Norwegian Bokmål, which, in this library, is a synonym of `no`
/// * `ne` - Nepali
/// * `nl` - Dutch Flemish
/// * `no` - Norwegian
/// * `or` - Oriya
/// * `pa` - Panjabi Punjabi
/// * `pl` - Polish
......@@ -13087,12 +13117,12 @@ GlobalCupertinoLocalizations getCupertinoTranslation(
return CupertinoLocalizationMs(fullYearFormat: fullYearFormat, dayFormat: dayFormat, mediumDateFormat: mediumDateFormat, singleDigitHourFormat: singleDigitHourFormat, singleDigitMinuteFormat: singleDigitMinuteFormat, doubleDigitMinuteFormat: doubleDigitMinuteFormat, singleDigitSecondFormat: singleDigitSecondFormat, decimalFormat: decimalFormat);
case 'my':
return CupertinoLocalizationMy(fullYearFormat: fullYearFormat, dayFormat: dayFormat, mediumDateFormat: mediumDateFormat, singleDigitHourFormat: singleDigitHourFormat, singleDigitMinuteFormat: singleDigitMinuteFormat, doubleDigitMinuteFormat: doubleDigitMinuteFormat, singleDigitSecondFormat: singleDigitSecondFormat, decimalFormat: decimalFormat);
case 'nb':
return CupertinoLocalizationNb(fullYearFormat: fullYearFormat, dayFormat: dayFormat, mediumDateFormat: mediumDateFormat, singleDigitHourFormat: singleDigitHourFormat, singleDigitMinuteFormat: singleDigitMinuteFormat, doubleDigitMinuteFormat: doubleDigitMinuteFormat, singleDigitSecondFormat: singleDigitSecondFormat, decimalFormat: decimalFormat);
case 'ne':
return CupertinoLocalizationNe(fullYearFormat: fullYearFormat, dayFormat: dayFormat, mediumDateFormat: mediumDateFormat, singleDigitHourFormat: singleDigitHourFormat, singleDigitMinuteFormat: singleDigitMinuteFormat, doubleDigitMinuteFormat: doubleDigitMinuteFormat, singleDigitSecondFormat: singleDigitSecondFormat, decimalFormat: decimalFormat);
case 'nl':
return CupertinoLocalizationNl(fullYearFormat: fullYearFormat, dayFormat: dayFormat, mediumDateFormat: mediumDateFormat, singleDigitHourFormat: singleDigitHourFormat, singleDigitMinuteFormat: singleDigitMinuteFormat, doubleDigitMinuteFormat: doubleDigitMinuteFormat, singleDigitSecondFormat: singleDigitSecondFormat, decimalFormat: decimalFormat);
case 'no':
return CupertinoLocalizationNo(fullYearFormat: fullYearFormat, dayFormat: dayFormat, mediumDateFormat: mediumDateFormat, singleDigitHourFormat: singleDigitHourFormat, singleDigitMinuteFormat: singleDigitMinuteFormat, doubleDigitMinuteFormat: doubleDigitMinuteFormat, singleDigitSecondFormat: singleDigitSecondFormat, decimalFormat: decimalFormat);
case 'or':
return CupertinoLocalizationOr(fullYearFormat: fullYearFormat, dayFormat: dayFormat, mediumDateFormat: mediumDateFormat, singleDigitHourFormat: singleDigitHourFormat, singleDigitMinuteFormat: singleDigitMinuteFormat, doubleDigitMinuteFormat: doubleDigitMinuteFormat, singleDigitSecondFormat: singleDigitSecondFormat, decimalFormat: decimalFormat);
case 'pa':
......@@ -13176,6 +13206,8 @@ GlobalCupertinoLocalizations getCupertinoTranslation(
}
case 'zu':
return CupertinoLocalizationZu(fullYearFormat: fullYearFormat, dayFormat: dayFormat, mediumDateFormat: mediumDateFormat, singleDigitHourFormat: singleDigitHourFormat, singleDigitMinuteFormat: singleDigitMinuteFormat, doubleDigitMinuteFormat: doubleDigitMinuteFormat, singleDigitSecondFormat: singleDigitSecondFormat, decimalFormat: decimalFormat);
case 'nb':
return CupertinoLocalizationNb(fullYearFormat: fullYearFormat, dayFormat: dayFormat, mediumDateFormat: mediumDateFormat, singleDigitHourFormat: singleDigitHourFormat, singleDigitMinuteFormat: singleDigitMinuteFormat, doubleDigitMinuteFormat: doubleDigitMinuteFormat, singleDigitSecondFormat: singleDigitSecondFormat, decimalFormat: decimalFormat);
}
assert(false, 'getCupertinoTranslation() called for unsupported locale "$locale"');
return null;
......
......@@ -11985,6 +11985,196 @@ const Map<String, dynamic> dateSymbols = <String, dynamic>{
'{1} {0}',
],
},
'no': <String, dynamic>{
'NAME': 'no',
'ERAS': <dynamic>[
'f.Kr.',
'e.Kr.',
],
'ERANAMES': <dynamic>[
'før Kristus',
'etter Kristus',
],
'NARROWMONTHS': <dynamic>[
'J',
'F',
'M',
'A',
'M',
'J',
'J',
'A',
'S',
'O',
'N',
'D',
],
'STANDALONENARROWMONTHS': <dynamic>[
'J',
'F',
'M',
'A',
'M',
'J',
'J',
'A',
'S',
'O',
'N',
'D',
],
'MONTHS': <dynamic>[
'januar',
'februar',
'mars',
'april',
'mai',
'juni',
'juli',
'august',
'september',
'oktober',
'november',
'desember',
],
'STANDALONEMONTHS': <dynamic>[
'januar',
'februar',
'mars',
'april',
'mai',
'juni',
'juli',
'august',
'september',
'oktober',
'november',
'desember',
],
'SHORTMONTHS': <dynamic>[
'jan.',
'feb.',
'mar.',
'apr.',
'mai',
'jun.',
'jul.',
'aug.',
'sep.',
'okt.',
'nov.',
'des.',
],
'STANDALONESHORTMONTHS': <dynamic>[
'jan',
'feb',
'mar',
'apr',
'mai',
'jun',
'jul',
'aug',
'sep',
'okt',
'nov',
'des',
],
'WEEKDAYS': <dynamic>[
'søndag',
'mandag',
'tirsdag',
'onsdag',
'torsdag',
'fredag',
'lørdag',
],
'STANDALONEWEEKDAYS': <dynamic>[
'søndag',
'mandag',
'tirsdag',
'onsdag',
'torsdag',
'fredag',
'lørdag',
],
'SHORTWEEKDAYS': <dynamic>[
'søn.',
'man.',
'tir.',
'ons.',
'tor.',
'fre.',
'lør.',
],
'STANDALONESHORTWEEKDAYS': <dynamic>[
'søn.',
'man.',
'tir.',
'ons.',
'tor.',
'fre.',
'lør.',
],
'NARROWWEEKDAYS': <dynamic>[
'S',
'M',
'T',
'O',
'T',
'F',
'L',
],
'STANDALONENARROWWEEKDAYS': <dynamic>[
'S',
'M',
'T',
'O',
'T',
'F',
'L',
],
'SHORTQUARTERS': <dynamic>[
'K1',
'K2',
'K3',
'K4',
],
'QUARTERS': <dynamic>[
'1. kvartal',
'2. kvartal',
'3. kvartal',
'4. kvartal',
],
'AMPMS': <dynamic>[
'a.m.',
'p.m.',
],
'DATEFORMATS': <dynamic>[
'EEEE d. MMMM y',
'd. MMMM y',
'd. MMM y',
'dd.MM.y',
],
'TIMEFORMATS': <dynamic>[
'HH:mm:ss zzzz',
'HH:mm:ss z',
'HH:mm:ss',
'HH:mm',
],
'AVAILABLEFORMATS': null,
'FIRSTDAYOFWEEK': 0,
'WEEKENDRANGE': <dynamic>[
5,
6,
],
'FIRSTWEEKCUTOFFDAY': 3,
'DATETIMEFORMATS': <dynamic>[
'{1} {0}',
'{1} \'kl\'. {0}',
'{1}, {0}',
'{1}, {0}',
],
},
'or': <String, dynamic>{
'NAME': 'or',
'ERAS': <dynamic>[
......@@ -20400,6 +20590,52 @@ const Map<String, Map<String, String>> datePatterns =
'zzzz': 'zzzz',
'ZZZZ': 'ZZZZ',
},
'no': <String, String>{
'd': 'd.',
'E': 'ccc',
'EEEE': 'cccc',
'LLL': 'LLL',
'LLLL': 'LLLL',
'M': 'L.',
'Md': 'd.M.',
'MEd': 'EEE d.M.',
'MMM': 'LLL',
'MMMd': 'd. MMM',
'MMMEd': 'EEE d. MMM',
'MMMM': 'LLLL',
'MMMMd': 'd. MMMM',
'MMMMEEEEd': 'EEEE d. MMMM',
'QQQ': 'QQQ',
'QQQQ': 'QQQQ',
'y': 'y',
'yM': 'M.y',
'yMd': 'd.M.y',
'yMEd': 'EEE d.MM.y',
'yMMM': 'MMM y',
'yMMMd': 'd. MMM y',
'yMMMEd': 'EEE d. MMM y',
'yMMMM': 'MMMM y',
'yMMMMd': 'd. MMMM y',
'yMMMMEEEEd': 'EEEE d. MMMM y',
'yQQQ': 'QQQ y',
'yQQQQ': 'QQQQ y',
'H': 'HH',
'Hm': 'HH:mm',
'Hms': 'HH:mm:ss',
'j': 'HH',
'jm': 'HH:mm',
'jms': 'HH:mm:ss',
'jmv': 'HH:mm v',
'jmz': 'HH:mm z',
'jz': 'HH z',
'm': 'm',
'ms': 'mm:ss',
's': 's',
'v': 'v',
'z': 'z',
'zzzz': 'zzzz',
'ZZZZ': 'ZZZZ',
},
'or': <String, String>{
'd': 'd',
'E': 'ccc',
......
......@@ -12631,7 +12631,7 @@ class MaterialLocalizationMy extends GlobalMaterialLocalizations {
}
/// The translations for Norwegian Bokmål (`nb`).
class MaterialLocalizationNb extends GlobalMaterialLocalizations {
class MaterialLocalizationNb extends MaterialLocalizationNo {
/// Create an instance of the translation bundle for Norwegian Bokmål.
///
/// For details on the meaning of the arguments, see [GlobalMaterialLocalizations].
......@@ -12658,99 +12658,129 @@ class MaterialLocalizationNb extends GlobalMaterialLocalizations {
decimalFormat: decimalFormat,
twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat,
);
}
/// The translations for Nepali (`ne`).
class MaterialLocalizationNe extends GlobalMaterialLocalizations {
/// Create an instance of the translation bundle for Nepali.
///
/// For details on the meaning of the arguments, see [GlobalMaterialLocalizations].
const MaterialLocalizationNe({
String localeName = 'ne',
@required intl.DateFormat fullYearFormat,
@required intl.DateFormat compactDateFormat,
@required intl.DateFormat shortDateFormat,
@required intl.DateFormat mediumDateFormat,
@required intl.DateFormat longDateFormat,
@required intl.DateFormat yearMonthFormat,
@required intl.DateFormat shortMonthDayFormat,
@required intl.NumberFormat decimalFormat,
@required intl.NumberFormat twoDigitZeroPaddedFormat,
}) : super(
localeName: localeName,
fullYearFormat: fullYearFormat,
compactDateFormat: compactDateFormat,
shortDateFormat: shortDateFormat,
mediumDateFormat: mediumDateFormat,
longDateFormat: longDateFormat,
yearMonthFormat: yearMonthFormat,
shortMonthDayFormat: shortMonthDayFormat,
decimalFormat: decimalFormat,
twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat,
);
@override
String get aboutListTileTitleRaw => 'Om \$applicationName';
String get aboutListTileTitleRaw => '\$applicationName बारे';
@override
String get alertDialogLabel => 'Varsel';
String get alertDialogLabel => 'अलर्ट';
@override
String get anteMeridiemAbbreviation => 'AM';
String get anteMeridiemAbbreviation => 'पूर्वाह्न';
@override
String get backButtonTooltip => 'Tilbake';
String get backButtonTooltip => 'पछाडि जानुहोस्';
@override
String get cancelButtonLabel => 'AVBRYT';
String get cancelButtonLabel => 'रद्द गर्नुहोस्';
@override
String get closeButtonLabel => 'LUKK';
String get closeButtonLabel => 'बन्द गर्नुहोस्';
@override
String get closeButtonTooltip => 'Lukk';
String get closeButtonTooltip => 'बन्द गर्नुहोस्';
@override
String get collapsedIconTapHint => 'Vis';
String get collapsedIconTapHint => 'विस्तार गर्नुहोस्';
@override
String get continueButtonLabel => 'FORTSETT';
String get continueButtonLabel => 'जारी राख्नुहोस्';
@override
String get copyButtonLabel => 'KOPIÉR';
String get copyButtonLabel => 'प्रतिलिपि गर्नुहोस्';
@override
String get cutButtonLabel => 'KLIPP UT';
String get cutButtonLabel => 'काट्नुहोस्';
@override
String get deleteButtonTooltip => 'Slett';
String get deleteButtonTooltip => 'मेट्नुहोस्';
@override
String get dialogLabel => 'Dialogboks';
String get dialogLabel => 'संवाद';
@override
String get drawerLabel => 'Navigasjonsmeny';
String get drawerLabel => 'नेभिगेसन मेनु';
@override
String get expandedIconTapHint => 'Skjul';
String get expandedIconTapHint => 'संक्षिप्त गर्नुहोस्';
@override
String get hideAccountsLabel => 'Skjul kontoer';
String get hideAccountsLabel => 'खाताहरू लुकाउनुहोस्';
@override
String get licensesPageTitle => 'Lisenser';
String get licensesPageTitle => 'इजाजतपत्रहरू';
@override
String get modalBarrierDismissLabel => 'Avvis';
String get modalBarrierDismissLabel => 'खारेज गर्नुहोस्';
@override
String get moreButtonTooltip => 'Mer';
String get moreButtonTooltip => 'थप';
@override
String get nextMonthTooltip => 'Neste måned';
String get nextMonthTooltip => 'अर्को महिना';
@override
String get nextPageTooltip => 'Neste side';
String get nextPageTooltip => 'अर्को पृष्ठ';
@override
String get okButtonLabel => 'OK';
String get okButtonLabel => 'ठिक छ';
@override
String get openAppDrawerTooltip => 'Åpne navigasjonsmenyen';
String get openAppDrawerTooltip => 'नेभिगेसन मेनु खोल्नुहोस्';
@override
String get pageRowsInfoTitleRaw => '\$firstRow\$lastRow av \$rowCount';
String get pageRowsInfoTitleRaw => '\$rowCount मध्ये \$firstRow\$lastRow';
@override
String get pageRowsInfoTitleApproximateRaw => '\$firstRow\$lastRow av omtrent \$rowCount';
String get pageRowsInfoTitleApproximateRaw => 'लगभग \$rowCount को \$firstRow\$lastRow';
@override
String get pasteButtonLabel => 'LIM INN';
String get pasteButtonLabel => 'टाँस्नुहोस्';
@override
String get popupMenuLabel => 'Forgrunnsmeny';
String get popupMenuLabel => 'पपअप मेनु';
@override
String get postMeridiemAbbreviation => 'PM';
String get postMeridiemAbbreviation => 'अपराह्न';
@override
String get previousMonthTooltip => 'Forrige måned';
String get previousMonthTooltip => 'अघिल्लो महिना';
@override
String get previousPageTooltip => 'Forrige side';
String get previousPageTooltip => 'अघिल्लो पृष्ठ';
@override
String get refreshIndicatorSemanticLabel => 'Laster inn på nytt';
String get refreshIndicatorSemanticLabel => 'पुनः ताजा गर्नुहोस्';
@override
String get remainingTextFieldCharacterCountFew => null;
......@@ -12759,46 +12789,46 @@ class MaterialLocalizationNb extends GlobalMaterialLocalizations {
String get remainingTextFieldCharacterCountMany => null;
@override
String get remainingTextFieldCharacterCountOne => '1 tegn gjenstår';
String get remainingTextFieldCharacterCountOne => '१ वर्ण बाँकी';
@override
String get remainingTextFieldCharacterCountOther => '\$remainingCount tegn gjenstår';
String get remainingTextFieldCharacterCountOther => '\$remainingCount वर्णहरू बाँकी';
@override
String get remainingTextFieldCharacterCountTwo => null;
@override
String get remainingTextFieldCharacterCountZero => 'TBD';
String get remainingTextFieldCharacterCountZero => null;
@override
String get reorderItemDown => 'Flytt ned';
String get reorderItemDown => 'तल सार्नुहोस्';
@override
String get reorderItemLeft => 'Flytt til venstre';
String get reorderItemLeft => 'बायाँ सार्नुहोस्';
@override
String get reorderItemRight => 'Flytt til høyre';
String get reorderItemRight => 'दायाँ सार्नुहोस्';
@override
String get reorderItemToEnd => 'Flytt til slutten';
String get reorderItemToEnd => 'अन्त्यमा जानुहोस्';
@override
String get reorderItemToStart => 'Flytt til starten';
String get reorderItemToStart => 'सुरुमा सार्नुहोस्';
@override
String get reorderItemUp => 'Flytt opp';
String get reorderItemUp => 'माथि सार्नुहोस्';
@override
String get rowsPerPageTitle => 'Rader per side:';
String get rowsPerPageTitle => 'प्रत्येक पृष्ठमा रहेका पङ्क्तिहरूको सङ्ख्या:';
@override
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
ScriptCategory get scriptCategory => ScriptCategory.tall;
@override
String get searchFieldLabel => 'Søk';
String get searchFieldLabel => 'खोज्नुहोस्';
@override
String get selectAllButtonLabel => 'VELG ALLE';
String get selectAllButtonLabel => 'सबै चयन गर्नुहोस्';
@override
String get selectedRowCountTitleFew => null;
......@@ -12807,10 +12837,10 @@ class MaterialLocalizationNb extends GlobalMaterialLocalizations {
String get selectedRowCountTitleMany => null;
@override
String get selectedRowCountTitleOne => '1 element er valgt';
String get selectedRowCountTitleOne => '१ वस्तु चयन गरियो';
@override
String get selectedRowCountTitleOther => '\$selectedRowCount elementer er valgt';
String get selectedRowCountTitleOther => '\$selectedRowCount वस्तुहरू चयन गरिए';
@override
String get selectedRowCountTitleTwo => null;
......@@ -12819,37 +12849,37 @@ class MaterialLocalizationNb extends GlobalMaterialLocalizations {
String get selectedRowCountTitleZero => null;
@override
String get showAccountsLabel => 'Vis kontoer';
String get showAccountsLabel => 'खाताहरू देखाउनुहोस्';
@override
String get showMenuTooltip => 'Vis meny';
String get showMenuTooltip => 'मेनु देखाउनुहोस्';
@override
String get signedInLabel => 'Pålogget';
String get signedInLabel => 'साइन इन गरियो';
@override
String get tabLabelRaw => 'Fane \$tabIndex av \$tabCount';
String get tabLabelRaw => '\$tabCount मध्ये \$tabIndex ट्याब';
@override
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.HH_colon_mm;
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.H_colon_mm;
@override
String get timePickerHourModeAnnouncement => 'Angi timer';
String get timePickerHourModeAnnouncement => 'घन्टा चयन गर्नुहोस्';
@override
String get timePickerMinuteModeAnnouncement => 'Angi minutter';
String get timePickerMinuteModeAnnouncement => 'मिनेट चयन गर्नुहोस्';
@override
String get viewLicensesButtonLabel => 'SE LISENSER';
String get viewLicensesButtonLabel => 'इजाजतपत्रहरू हेर्नुहोस्';
}
/// The translations for Nepali (`ne`).
class MaterialLocalizationNe extends GlobalMaterialLocalizations {
/// Create an instance of the translation bundle for Nepali.
/// The translations for Dutch Flemish (`nl`).
class MaterialLocalizationNl extends GlobalMaterialLocalizations {
/// Create an instance of the translation bundle for Dutch Flemish.
///
/// For details on the meaning of the arguments, see [GlobalMaterialLocalizations].
const MaterialLocalizationNe({
String localeName = 'ne',
const MaterialLocalizationNl({
String localeName = 'nl',
@required intl.DateFormat fullYearFormat,
@required intl.DateFormat compactDateFormat,
@required intl.DateFormat shortDateFormat,
......@@ -12873,97 +12903,97 @@ class MaterialLocalizationNe extends GlobalMaterialLocalizations {
);
@override
String get aboutListTileTitleRaw => '\$applicationName बारे';
String get aboutListTileTitleRaw => 'Over \$applicationName';
@override
String get alertDialogLabel => 'अलर्ट';
String get alertDialogLabel => 'Melding';
@override
String get anteMeridiemAbbreviation => 'पूर्वाह्न';
String get anteMeridiemAbbreviation => 'am';
@override
String get backButtonTooltip => 'पछाडि जानुहोस्';
String get backButtonTooltip => 'Terug';
@override
String get cancelButtonLabel => 'रद्द गर्नुहोस्';
String get cancelButtonLabel => 'ANNULEREN';
@override
String get closeButtonLabel => 'बन्द गर्नुहोस्';
String get closeButtonLabel => 'SLUITEN';
@override
String get closeButtonTooltip => 'बन्द गर्नुहोस्';
String get closeButtonTooltip => 'Sluiten';
@override
String get collapsedIconTapHint => 'विस्तार गर्नुहोस्';
String get collapsedIconTapHint => 'Uitvouwen';
@override
String get continueButtonLabel => 'जारी राख्नुहोस्';
String get continueButtonLabel => 'DOORGAAN';
@override
String get copyButtonLabel => 'प्रतिलिपि गर्नुहोस्';
String get copyButtonLabel => 'KOPIËREN';
@override
String get cutButtonLabel => 'काट्नुहोस्';
String get cutButtonLabel => 'KNIPPEN';
@override
String get deleteButtonTooltip => 'मेट्नुहोस्';
String get deleteButtonTooltip => 'Verwijderen';
@override
String get dialogLabel => 'संवाद';
String get dialogLabel => 'Dialoogvenster';
@override
String get drawerLabel => 'नेभिगेसन मेनु';
String get drawerLabel => 'Navigatiemenu';
@override
String get expandedIconTapHint => 'संक्षिप्त गर्नुहोस्';
String get expandedIconTapHint => 'Samenvouwen';
@override
String get hideAccountsLabel => 'खाताहरू लुकाउनुहोस्';
String get hideAccountsLabel => 'Accounts verbergen';
@override
String get licensesPageTitle => 'इजाजतपत्रहरू';
String get licensesPageTitle => 'Licenties';
@override
String get modalBarrierDismissLabel => 'खारेज गर्नुहोस्';
String get modalBarrierDismissLabel => 'Sluiten';
@override
String get moreButtonTooltip => 'थप';
String get moreButtonTooltip => 'Meer';
@override
String get nextMonthTooltip => 'अर्को महिना';
String get nextMonthTooltip => 'Volgende maand';
@override
String get nextPageTooltip => 'अर्को पृष्ठ';
String get nextPageTooltip => 'Volgende pagina';
@override
String get okButtonLabel => 'ठिक छ';
String get okButtonLabel => 'OK';
@override
String get openAppDrawerTooltip => 'नेभिगेसन मेनु खोल्नुहोस्';
String get openAppDrawerTooltip => 'Navigatiemenu openen';
@override
String get pageRowsInfoTitleRaw => '\$rowCount मध्ये \$firstRow\$lastRow';
String get pageRowsInfoTitleRaw => '\$firstRow-\$lastRow van \$rowCount';
@override
String get pageRowsInfoTitleApproximateRaw => 'लगभग \$rowCount को \$firstRow\$lastRow';
String get pageRowsInfoTitleApproximateRaw => '\$firstRow-\$lastRow van ongeveer \$rowCount';
@override
String get pasteButtonLabel => 'टाँस्नुहोस्';
String get pasteButtonLabel => 'PLAKKEN';
@override
String get popupMenuLabel => 'पपअप मेनु';
String get popupMenuLabel => 'Pop-upmenu';
@override
String get postMeridiemAbbreviation => 'अपराह्न';
String get postMeridiemAbbreviation => 'pm';
@override
String get previousMonthTooltip => 'अघिल्लो महिना';
String get previousMonthTooltip => 'Vorige maand';
@override
String get previousPageTooltip => 'अघिल्लो पृष्ठ';
String get previousPageTooltip => 'Vorige pagina';
@override
String get refreshIndicatorSemanticLabel => 'पुनः ताजा गर्नुहोस्';
String get refreshIndicatorSemanticLabel => 'Vernieuwen';
@override
String get remainingTextFieldCharacterCountFew => null;
......@@ -12972,46 +13002,46 @@ class MaterialLocalizationNe extends GlobalMaterialLocalizations {
String get remainingTextFieldCharacterCountMany => null;
@override
String get remainingTextFieldCharacterCountOne => '१ वर्ण बाँकी';
String get remainingTextFieldCharacterCountOne => '1 teken resterend';
@override
String get remainingTextFieldCharacterCountOther => '\$remainingCount वर्णहरू बाँकी';
String get remainingTextFieldCharacterCountOther => '\$remainingCount tekens resterend';
@override
String get remainingTextFieldCharacterCountTwo => null;
@override
String get remainingTextFieldCharacterCountZero => null;
String get remainingTextFieldCharacterCountZero => 'TBD';
@override
String get reorderItemDown => 'तल सार्नुहोस्';
String get reorderItemDown => 'Omlaag verplaatsen';
@override
String get reorderItemLeft => 'बायाँ सार्नुहोस्';
String get reorderItemLeft => 'Naar links verplaatsen';
@override
String get reorderItemRight => 'दायाँ सार्नुहोस्';
String get reorderItemRight => 'Naar rechts verplaatsen';
@override
String get reorderItemToEnd => 'अन्त्यमा जानुहोस्';
String get reorderItemToEnd => 'Naar het einde verplaatsen';
@override
String get reorderItemToStart => 'सुरुमा सार्नुहोस्';
String get reorderItemToStart => 'Naar het begin verplaatsen';
@override
String get reorderItemUp => 'माथि सार्नुहोस्';
String get reorderItemUp => 'Omhoog verplaatsen';
@override
String get rowsPerPageTitle => 'प्रत्येक पृष्ठमा रहेका पङ्क्तिहरूको सङ्ख्या:';
String get rowsPerPageTitle => 'Rijen per pagina:';
@override
ScriptCategory get scriptCategory => ScriptCategory.tall;
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
@override
String get searchFieldLabel => 'खोज्नुहोस्';
String get searchFieldLabel => 'Zoeken';
@override
String get selectAllButtonLabel => 'सबै चयन गर्नुहोस्';
String get selectAllButtonLabel => 'ALLES SELECTEREN';
@override
String get selectedRowCountTitleFew => null;
......@@ -13020,10 +13050,10 @@ class MaterialLocalizationNe extends GlobalMaterialLocalizations {
String get selectedRowCountTitleMany => null;
@override
String get selectedRowCountTitleOne => '१ वस्तु चयन गरियो';
String get selectedRowCountTitleOne => '1 item geselecteerd';
@override
String get selectedRowCountTitleOther => '\$selectedRowCount वस्तुहरू चयन गरिए';
String get selectedRowCountTitleOther => '\$selectedRowCount items geselecteerd';
@override
String get selectedRowCountTitleTwo => null;
......@@ -13032,37 +13062,37 @@ class MaterialLocalizationNe extends GlobalMaterialLocalizations {
String get selectedRowCountTitleZero => null;
@override
String get showAccountsLabel => 'खाताहरू देखाउनुहोस्';
String get showAccountsLabel => 'Accounts weergeven';
@override
String get showMenuTooltip => 'मेनु देखाउनुहोस्';
String get showMenuTooltip => 'Menu weergeven';
@override
String get signedInLabel => 'साइन इन गरियो';
String get signedInLabel => 'Ingelogd';
@override
String get tabLabelRaw => '\$tabCount मध्ये \$tabIndex ट्याब';
String get tabLabelRaw => 'Tabblad \$tabIndex van \$tabCount';
@override
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.H_colon_mm;
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.HH_colon_mm;
@override
String get timePickerHourModeAnnouncement => 'घन्टा चयन गर्नुहोस्';
String get timePickerHourModeAnnouncement => 'Uren selecteren';
@override
String get timePickerMinuteModeAnnouncement => 'मिनेट चयन गर्नुहोस्';
String get timePickerMinuteModeAnnouncement => 'Minuten selecteren';
@override
String get viewLicensesButtonLabel => 'इजाजतपत्रहरू हेर्नुहोस्';
String get viewLicensesButtonLabel => 'LICENTIES BEKIJKEN';
}
/// The translations for Dutch Flemish (`nl`).
class MaterialLocalizationNl extends GlobalMaterialLocalizations {
/// Create an instance of the translation bundle for Dutch Flemish.
/// The translations for Norwegian (`no`).
class MaterialLocalizationNo extends GlobalMaterialLocalizations {
/// Create an instance of the translation bundle for Norwegian.
///
/// For details on the meaning of the arguments, see [GlobalMaterialLocalizations].
const MaterialLocalizationNl({
String localeName = 'nl',
const MaterialLocalizationNo({
String localeName = 'no',
@required intl.DateFormat fullYearFormat,
@required intl.DateFormat compactDateFormat,
@required intl.DateFormat shortDateFormat,
......@@ -13086,97 +13116,97 @@ class MaterialLocalizationNl extends GlobalMaterialLocalizations {
);
@override
String get aboutListTileTitleRaw => 'Over \$applicationName';
String get aboutListTileTitleRaw => 'Om \$applicationName';
@override
String get alertDialogLabel => 'Melding';
String get alertDialogLabel => 'Varsel';
@override
String get anteMeridiemAbbreviation => 'am';
String get anteMeridiemAbbreviation => 'AM';
@override
String get backButtonTooltip => 'Terug';
String get backButtonTooltip => 'Tilbake';
@override
String get cancelButtonLabel => 'ANNULEREN';
String get cancelButtonLabel => 'AVBRYT';
@override
String get closeButtonLabel => 'SLUITEN';
String get closeButtonLabel => 'LUKK';
@override
String get closeButtonTooltip => 'Sluiten';
String get closeButtonTooltip => 'Lukk';
@override
String get collapsedIconTapHint => 'Uitvouwen';
String get collapsedIconTapHint => 'Vis';
@override
String get continueButtonLabel => 'DOORGAAN';
String get continueButtonLabel => 'FORTSETT';
@override
String get copyButtonLabel => 'KOPIËREN';
String get copyButtonLabel => 'KOPIÉR';
@override
String get cutButtonLabel => 'KNIPPEN';
String get cutButtonLabel => 'KLIPP UT';
@override
String get deleteButtonTooltip => 'Verwijderen';
String get deleteButtonTooltip => 'Slett';
@override
String get dialogLabel => 'Dialoogvenster';
String get dialogLabel => 'Dialogboks';
@override
String get drawerLabel => 'Navigatiemenu';
String get drawerLabel => 'Navigasjonsmeny';
@override
String get expandedIconTapHint => 'Samenvouwen';
String get expandedIconTapHint => 'Skjul';
@override
String get hideAccountsLabel => 'Accounts verbergen';
String get hideAccountsLabel => 'Skjul kontoer';
@override
String get licensesPageTitle => 'Licenties';
String get licensesPageTitle => 'Lisenser';
@override
String get modalBarrierDismissLabel => 'Sluiten';
String get modalBarrierDismissLabel => 'Avvis';
@override
String get moreButtonTooltip => 'Meer';
String get moreButtonTooltip => 'Mer';
@override
String get nextMonthTooltip => 'Volgende maand';
String get nextMonthTooltip => 'Neste måned';
@override
String get nextPageTooltip => 'Volgende pagina';
String get nextPageTooltip => 'Neste side';
@override
String get okButtonLabel => 'OK';
@override
String get openAppDrawerTooltip => 'Navigatiemenu openen';
String get openAppDrawerTooltip => 'Åpne navigasjonsmenyen';
@override
String get pageRowsInfoTitleRaw => '\$firstRow-\$lastRow van \$rowCount';
String get pageRowsInfoTitleRaw => '\$firstRow\$lastRow av \$rowCount';
@override
String get pageRowsInfoTitleApproximateRaw => '\$firstRow-\$lastRow van ongeveer \$rowCount';
String get pageRowsInfoTitleApproximateRaw => '\$firstRow\$lastRow av omtrent \$rowCount';
@override
String get pasteButtonLabel => 'PLAKKEN';
String get pasteButtonLabel => 'LIM INN';
@override
String get popupMenuLabel => 'Pop-upmenu';
String get popupMenuLabel => 'Forgrunnsmeny';
@override
String get postMeridiemAbbreviation => 'pm';
String get postMeridiemAbbreviation => 'PM';
@override
String get previousMonthTooltip => 'Vorige maand';
String get previousMonthTooltip => 'Forrige måned';
@override
String get previousPageTooltip => 'Vorige pagina';
String get previousPageTooltip => 'Forrige side';
@override
String get refreshIndicatorSemanticLabel => 'Vernieuwen';
String get refreshIndicatorSemanticLabel => 'Laster inn på nytt';
@override
String get remainingTextFieldCharacterCountFew => null;
......@@ -13185,10 +13215,10 @@ class MaterialLocalizationNl extends GlobalMaterialLocalizations {
String get remainingTextFieldCharacterCountMany => null;
@override
String get remainingTextFieldCharacterCountOne => '1 teken resterend';
String get remainingTextFieldCharacterCountOne => '1 tegn gjenstår';
@override
String get remainingTextFieldCharacterCountOther => '\$remainingCount tekens resterend';
String get remainingTextFieldCharacterCountOther => '\$remainingCount tegn gjenstår';
@override
String get remainingTextFieldCharacterCountTwo => null;
......@@ -13197,34 +13227,34 @@ class MaterialLocalizationNl extends GlobalMaterialLocalizations {
String get remainingTextFieldCharacterCountZero => 'TBD';
@override
String get reorderItemDown => 'Omlaag verplaatsen';
String get reorderItemDown => 'Flytt ned';
@override
String get reorderItemLeft => 'Naar links verplaatsen';
String get reorderItemLeft => 'Flytt til venstre';
@override
String get reorderItemRight => 'Naar rechts verplaatsen';
String get reorderItemRight => 'Flytt til høyre';
@override
String get reorderItemToEnd => 'Naar het einde verplaatsen';
String get reorderItemToEnd => 'Flytt til slutten';
@override
String get reorderItemToStart => 'Naar het begin verplaatsen';
String get reorderItemToStart => 'Flytt til starten';
@override
String get reorderItemUp => 'Omhoog verplaatsen';
String get reorderItemUp => 'Flytt opp';
@override
String get rowsPerPageTitle => 'Rijen per pagina:';
String get rowsPerPageTitle => 'Rader per side:';
@override
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
@override
String get searchFieldLabel => 'Zoeken';
String get searchFieldLabel => 'Søk';
@override
String get selectAllButtonLabel => 'ALLES SELECTEREN';
String get selectAllButtonLabel => 'VELG ALLE';
@override
String get selectedRowCountTitleFew => null;
......@@ -13233,10 +13263,10 @@ class MaterialLocalizationNl extends GlobalMaterialLocalizations {
String get selectedRowCountTitleMany => null;
@override
String get selectedRowCountTitleOne => '1 item geselecteerd';
String get selectedRowCountTitleOne => '1 element er valgt';
@override
String get selectedRowCountTitleOther => '\$selectedRowCount items geselecteerd';
String get selectedRowCountTitleOther => '\$selectedRowCount elementer er valgt';
@override
String get selectedRowCountTitleTwo => null;
......@@ -13245,28 +13275,28 @@ class MaterialLocalizationNl extends GlobalMaterialLocalizations {
String get selectedRowCountTitleZero => null;
@override
String get showAccountsLabel => 'Accounts weergeven';
String get showAccountsLabel => 'Vis kontoer';
@override
String get showMenuTooltip => 'Menu weergeven';
String get showMenuTooltip => 'Vis meny';
@override
String get signedInLabel => 'Ingelogd';
String get signedInLabel => 'Pålogget';
@override
String get tabLabelRaw => 'Tabblad \$tabIndex van \$tabCount';
String get tabLabelRaw => 'Fane \$tabIndex av \$tabCount';
@override
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.HH_colon_mm;
@override
String get timePickerHourModeAnnouncement => 'Uren selecteren';
String get timePickerHourModeAnnouncement => 'Angi timer';
@override
String get timePickerMinuteModeAnnouncement => 'Minuten selecteren';
String get timePickerMinuteModeAnnouncement => 'Angi minutter';
@override
String get viewLicensesButtonLabel => 'LICENTIES BEKIJKEN';
String get viewLicensesButtonLabel => 'SE LISENSER';
}
/// The translations for Oriya (`or`).
......@@ -19258,6 +19288,7 @@ final Set<String> kMaterialSupportedLanguages = HashSet<String>.from(const <Stri
'nb', // Norwegian Bokmål
'ne', // Nepali
'nl', // Dutch Flemish
'no', // Norwegian
'or', // Oriya
'pa', // Panjabi Punjabi
'pl', // Polish
......@@ -19344,9 +19375,10 @@ final Set<String> kMaterialSupportedLanguages = HashSet<String>.from(const <Stri
/// * `mr` - Marathi
/// * `ms` - Malay
/// * `my` - Burmese
/// * `nb` - Norwegian Bokmål
/// * `nb` - Norwegian Bokmål, which, in this library, is a synonym of `no`
/// * `ne` - Nepali
/// * `nl` - Dutch Flemish
/// * `no` - Norwegian
/// * `or` - Oriya
/// * `pa` - Panjabi Punjabi
/// * `pl` - Polish
......@@ -19559,12 +19591,12 @@ GlobalMaterialLocalizations getMaterialTranslation(
return MaterialLocalizationMs(fullYearFormat: fullYearFormat, compactDateFormat: compactDateFormat, shortDateFormat: shortDateFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, shortMonthDayFormat: shortMonthDayFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat);
case 'my':
return MaterialLocalizationMy(fullYearFormat: fullYearFormat, compactDateFormat: compactDateFormat, shortDateFormat: shortDateFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, shortMonthDayFormat: shortMonthDayFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat);
case 'nb':
return MaterialLocalizationNb(fullYearFormat: fullYearFormat, compactDateFormat: compactDateFormat, shortDateFormat: shortDateFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, shortMonthDayFormat: shortMonthDayFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat);
case 'ne':
return MaterialLocalizationNe(fullYearFormat: fullYearFormat, compactDateFormat: compactDateFormat, shortDateFormat: shortDateFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, shortMonthDayFormat: shortMonthDayFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat);
case 'nl':
return MaterialLocalizationNl(fullYearFormat: fullYearFormat, compactDateFormat: compactDateFormat, shortDateFormat: shortDateFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, shortMonthDayFormat: shortMonthDayFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat);
case 'no':
return MaterialLocalizationNo(fullYearFormat: fullYearFormat, compactDateFormat: compactDateFormat, shortDateFormat: shortDateFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, shortMonthDayFormat: shortMonthDayFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat);
case 'or':
return MaterialLocalizationOr(fullYearFormat: fullYearFormat, compactDateFormat: compactDateFormat, shortDateFormat: shortDateFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, shortMonthDayFormat: shortMonthDayFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat);
case 'pa':
......@@ -19650,6 +19682,8 @@ GlobalMaterialLocalizations getMaterialTranslation(
}
case 'zu':
return MaterialLocalizationZu(fullYearFormat: fullYearFormat, compactDateFormat: compactDateFormat, shortDateFormat: shortDateFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, shortMonthDayFormat: shortMonthDayFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat);
case 'nb':
return MaterialLocalizationNb(fullYearFormat: fullYearFormat, compactDateFormat: compactDateFormat, shortDateFormat: shortDateFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, shortMonthDayFormat: shortMonthDayFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat);
}
assert(false, 'getMaterialTranslation() called for unsupported locale "$locale"');
return null;
......
......@@ -5,6 +5,7 @@
"backButtonTooltip": "Tilbake",
"closeButtonTooltip": "Lukk",
"deleteButtonTooltip": "Slett",
"moreButtonTooltip": "Mer",
"nextMonthTooltip": "Neste måned",
"previousMonthTooltip": "Forrige måned",
"nextPageTooltip": "Neste side",
......@@ -51,6 +52,5 @@
"remainingTextFieldCharacterCountZero": "TBD",
"remainingTextFieldCharacterCountOne": "1 tegn gjenstår",
"remainingTextFieldCharacterCountOther": "$remainingCount tegn gjenstår",
"refreshIndicatorSemanticLabel": "Laster inn på nytt",
"moreButtonTooltip": "Mer"
"refreshIndicatorSemanticLabel": "Laster inn på nytt"
}
......@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flutter_test/flutter_test.dart';
......@@ -118,4 +120,29 @@ void main() {
expect(localizations.selectAllButtonLabel, '全选');
expect(localizations.timerPickerMinute(10), '10');
});
// Regression test for https://github.com/flutter/flutter/issues/53036.
testWidgets('`nb` uses `no` as its synonym when `nb` arb file is not present', (WidgetTester tester) async {
final File nbCupertinoArbFile = File('lib/src/l10n/cupertino_nb.arb');
final File noCupertinoArbFile = File('lib/src/l10n/cupertino_no.arb');
if (noCupertinoArbFile.existsSync() && !nbCupertinoArbFile.existsSync()) {
Locale locale = const Locale.fromSubtags(languageCode: 'no', scriptCode: null, countryCode: null);
expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue);
CupertinoLocalizations localizations = await GlobalCupertinoLocalizations.delegate.load(locale);
expect(localizations, isA<CupertinoLocalizationNo>());
final String pasteButtonLabelNo = localizations.pasteButtonLabel;
final String copyButtonLabelNo = localizations.copyButtonLabel;
final String cutButtonLabelNo = localizations.cutButtonLabel;
locale = const Locale.fromSubtags(languageCode: 'nb', scriptCode: null, countryCode: null);
expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue);
localizations = await GlobalCupertinoLocalizations.delegate.load(locale);
expect(localizations, isA<CupertinoLocalizationNb>());
expect(localizations.pasteButtonLabel, pasteButtonLabelNo);
expect(localizations.copyButtonLabel, copyButtonLabelNo);
expect(localizations.cutButtonLabel, cutButtonLabelNo);
}
});
}
......@@ -3,6 +3,7 @@
// found in the LICENSE file.
import 'dart:async';
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
......@@ -28,6 +29,19 @@ void main() {
}, throwsAssertionError);
});
// Regression test for https://github.com/flutter/flutter/issues/53036.
test('`nb` uses `no` as a synonym when `nb` arb file is not present', () async {
final File nbMaterialArbFile = File('lib/src/l10n/material_nb.arb');
final File noMaterialArbFile = File('lib/src/l10n/material_no.arb');
// No need to run test if `nb` arb file exists or if `no` arb file does not exist.
if (noMaterialArbFile.existsSync() && !nbMaterialArbFile.existsSync()) {
final GlobalMaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate
.load(const Locale('nb')) as GlobalMaterialLocalizations;
expect(localizations.formatMediumDate(DateTime(2020, 4, 3)), 'fre. 3. apr.');
}
});
group('formatHour', () {
Future<String> formatHour(WidgetTester tester, Locale locale, TimeOfDay timeOfDay) async {
final Completer<String> completer = Completer<String>();
......
......@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flutter_test/flutter_test.dart';
......@@ -462,4 +464,32 @@ void main() {
expect(localizations.closeButtonLabel, '關閉');
expect(localizations.okButtonLabel, '確定');
});
// Regression test for https://github.com/flutter/flutter/issues/53036.
testWidgets('`nb` uses `no` as its synonym when `nb` arb file is not present', (WidgetTester tester) async {
final File nbMaterialArbFile = File('lib/src/l10n/material_nb.arb');
final File noMaterialArbFile = File('lib/src/l10n/material_no.arb');
// No need to run test if `nb` arb file exists or if `no` arb file does not exist.
if (noMaterialArbFile.existsSync() && !nbMaterialArbFile.existsSync()) {
Locale locale = const Locale.fromSubtags(languageCode: 'no', scriptCode: null, countryCode: null);
expect(GlobalMaterialLocalizations.delegate.isSupported(locale), isTrue);
MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(locale);
expect(localizations, isA<MaterialLocalizationNo>());
final String alertDialogLabelNo = localizations.alertDialogLabel;
final String anteMeridiemAbbreviationNo = localizations.anteMeridiemAbbreviation;
final String closeButtonLabelNo = localizations.closeButtonLabel;
final String okButtonLabelNo = localizations.okButtonLabel;
locale = const Locale.fromSubtags(languageCode: 'nb', scriptCode: null, countryCode: null);
expect(GlobalMaterialLocalizations.delegate.isSupported(locale), isTrue);
localizations = await GlobalMaterialLocalizations.delegate.load(locale);
expect(localizations, isA<MaterialLocalizationNb>());
expect(localizations.alertDialogLabel, alertDialogLabelNo);
expect(localizations.anteMeridiemAbbreviation, anteMeridiemAbbreviationNo);
expect(localizations.closeButtonLabel, closeButtonLabelNo);
expect(localizations.okButtonLabel, okButtonLabelNo);
}
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment