Unverified Commit ef312048 authored by Bruno Leroux's avatar Bruno Leroux Committed by GitHub

Fix finish translation for tab labels (#130333)

## Description

This PR update the finnish translations for tab label.

## Related Issue

fixes https://github.com/flutter/flutter/issues/110451

## Tests

Adds 2 tests.
parent b8fa9233
......@@ -19,7 +19,7 @@
"copyButtonLabel": "Kopioi",
"pasteButtonLabel": "Liitä",
"selectAllButtonLabel": "Valitse kaikki",
"tabSemanticsLabel": "Välilehti $tabIndex/$tabCount",
"tabSemanticsLabel": "Välilehti $tabIndex kautta $tabCount",
"modalBarrierDismissLabel": "Ohita",
"searchTextFieldPlaceholderLabel": "Hae",
"noSpellCheckReplacementsLabel": "No Replacements Found"
......
......@@ -3983,7 +3983,7 @@ class CupertinoLocalizationFi extends GlobalCupertinoLocalizations {
String get selectAllButtonLabel => 'Valitse kaikki';
@override
String get tabSemanticsLabelRaw => r'Välilehti $tabIndex/$tabCount';
String get tabSemanticsLabelRaw => r'Välilehti $tabIndex kautta $tabCount';
@override
String? get timerPickerHourLabelFew => null;
......
......@@ -14206,7 +14206,7 @@ class MaterialLocalizationFi extends GlobalMaterialLocalizations {
String get signedInLabel => 'Kirjautunut sisään';
@override
String get tabLabelRaw => r'Välilehti $tabIndex/$tabCount';
String get tabLabelRaw => r'Välilehti $tabIndex kautta $tabCount';
@override
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.HH_dot_mm;
......@@ -17,7 +17,7 @@
"pageRowsInfoTitle": "$firstRow–$lastRow/$rowCount",
"pageRowsInfoTitleApproximate": "$firstRow–$lastRow/~$rowCount",
"rowsPerPageTitle": "Riviä/sivu:",
"tabLabel": "Välilehti $tabIndex/$tabCount",
"tabLabel": "Välilehti $tabIndex kautta $tabCount",
"selectedRowCountTitleOne": "1 kohde valittu",
"selectedRowCountTitleOther": "$selectedRowCount kohdetta valittu",
"cancelButtonLabel": "Peru",
......
......@@ -194,4 +194,13 @@ void main() {
expect(file.readAsStringSync(), encodedArbFile);
}
});
// Regression test for https://github.com/flutter/flutter/issues/110451.
testWidgets('Finnish translation for tab label', (WidgetTester tester) async {
const Locale locale = Locale('fi');
expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue);
final CupertinoLocalizations localizations = await GlobalCupertinoLocalizations.delegate.load(locale);
expect(localizations, isA<CupertinoLocalizationFi>());
expect(localizations.tabSemanticsLabel(tabIndex: 1, tabCount: 2), 'Välilehti 1 kautta 2');
});
}
......@@ -528,4 +528,13 @@ void main() {
expect(file.readAsStringSync(), encodedArbFile);
}
});
// Regression test for https://github.com/flutter/flutter/issues/110451.
testWidgets('Finnish translation for tab label', (WidgetTester tester) async {
const Locale locale = Locale('fi');
expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue);
final MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(locale);
expect(localizations, isA<MaterialLocalizationFi>());
expect(localizations.tabLabel(tabIndex: 1, tabCount: 2), 'Välilehti 1 kautta 2');
});
}
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