Unverified Commit 291602db authored by Yegor's avatar Yegor Committed by GitHub

localize a11y tab labels in the TabBar (#13714)

* localize a11y tab labels in the TabBar

* break import cycle

* test boilerplate

* fix German translation

* more test boilerplate fixes
parent 68736081
...@@ -85,6 +85,14 @@ abstract class MaterialLocalizations { ...@@ -85,6 +85,14 @@ abstract class MaterialLocalizations {
/// Title for the [PaginatedDataTable]'s "rows per page" footer. /// Title for the [PaginatedDataTable]'s "rows per page" footer.
String get rowsPerPageTitle; String get rowsPerPageTitle;
/// The accessibility label used on a tab in a [TabBar].
///
/// This message describes the index of the selected tab and how many tabs
/// there are, e.g. 'Tab 1 of 2' in United States English.
///
/// `tabIndex` and `tabCount` must be greater than or equal to one.
String tabLabel({int tabIndex, int tabCount});
/// Title for the [PaginatedDataTable]'s selected row count header. /// Title for the [PaginatedDataTable]'s selected row count header.
String selectedRowCountTitle(int selectedRowCount); String selectedRowCountTitle(int selectedRowCount);
...@@ -517,6 +525,13 @@ class DefaultMaterialLocalizations implements MaterialLocalizations { ...@@ -517,6 +525,13 @@ class DefaultMaterialLocalizations implements MaterialLocalizations {
@override @override
String get rowsPerPageTitle => 'Rows per page:'; String get rowsPerPageTitle => 'Rows per page:';
@override
String tabLabel({int tabIndex, int tabCount}) {
assert(tabIndex >= 1);
assert(tabCount >= 1);
return 'Tab $tabIndex of $tabCount';
}
@override @override
String selectedRowCountTitle(int selectedRowCount) { String selectedRowCountTitle(int selectedRowCount) {
switch (selectedRowCount) { switch (selectedRowCount) {
......
...@@ -16,6 +16,7 @@ import 'constants.dart'; ...@@ -16,6 +16,7 @@ import 'constants.dart';
import 'debug.dart'; import 'debug.dart';
import 'ink_well.dart'; import 'ink_well.dart';
import 'material.dart'; import 'material.dart';
import 'material_localizations.dart';
import 'tab_controller.dart'; import 'tab_controller.dart';
import 'theme.dart'; import 'theme.dart';
...@@ -747,6 +748,7 @@ class _TabBarState extends State<TabBar> { ...@@ -747,6 +748,7 @@ class _TabBarState extends State<TabBar> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final MaterialLocalizations localizations = MaterialLocalizations.of(context);
if (_controller.length == 0) { if (_controller.length == 0) {
return new Container( return new Container(
height: _kTabHeight + widget.indicatorWeight, height: _kTabHeight + widget.indicatorWeight,
...@@ -811,8 +813,7 @@ class _TabBarState extends State<TabBar> { ...@@ -811,8 +813,7 @@ class _TabBarState extends State<TabBar> {
wrappedTabs[index], wrappedTabs[index],
new Semantics( new Semantics(
selected: index == _currentIndex, selected: index == _currentIndex,
// TODO(goderbauer): I10N-ify label: localizations.tabLabel(tabIndex: index + 1, tabCount: tabCount),
label: 'Tab ${index + 1} of $tabCount',
), ),
] ]
), ),
......
...@@ -8,7 +8,13 @@ import 'package:flutter/rendering.dart'; ...@@ -8,7 +8,13 @@ import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
Widget buildSliverAppBarApp({ bool floating, bool pinned, double expandedHeight, bool snap: false }) { Widget buildSliverAppBarApp({ bool floating, bool pinned, double expandedHeight, bool snap: false }) {
return new Directionality( return new Localizations(
locale: const Locale('en', 'US'),
delegates: <LocalizationsDelegate<dynamic>>[
DefaultMaterialLocalizations.delegate,
DefaultWidgetsLocalizations.delegate,
],
child: new Directionality(
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
child: new MediaQuery( child: new MediaQuery(
data: const MediaQueryData(), data: const MediaQueryData(),
...@@ -39,6 +45,7 @@ Widget buildSliverAppBarApp({ bool floating, bool pinned, double expandedHeight, ...@@ -39,6 +45,7 @@ Widget buildSliverAppBarApp({ bool floating, bool pinned, double expandedHeight,
), ),
), ),
), ),
),
); );
} }
......
...@@ -15,11 +15,18 @@ import '../rendering/recording_canvas.dart'; ...@@ -15,11 +15,18 @@ import '../rendering/recording_canvas.dart';
import '../widgets/semantics_tester.dart'; import '../widgets/semantics_tester.dart';
Widget boilerplate({ Widget child, TextDirection textDirection: TextDirection.ltr }) { Widget boilerplate({ Widget child, TextDirection textDirection: TextDirection.ltr }) {
return new Directionality( return new Localizations(
locale: const Locale('en', 'US'),
delegates: <LocalizationsDelegate<dynamic>>[
DefaultMaterialLocalizations.delegate,
DefaultWidgetsLocalizations.delegate,
],
child: new Directionality(
textDirection: textDirection, textDirection: textDirection,
child: new Material( child: new Material(
child: child, child: child,
), ),
),
); );
} }
......
...@@ -21,7 +21,13 @@ class _CustomPhysics extends ClampingScrollPhysics { ...@@ -21,7 +21,13 @@ class _CustomPhysics extends ClampingScrollPhysics {
} }
Widget buildTest({ ScrollController controller, String title:'TTTTTTTT' }) { Widget buildTest({ ScrollController controller, String title:'TTTTTTTT' }) {
return new Directionality( return new Localizations(
locale: const Locale('en', 'US'),
delegates: <LocalizationsDelegate<dynamic>>[
DefaultMaterialLocalizations.delegate,
DefaultWidgetsLocalizations.delegate,
],
child: new Directionality(
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
child: new MediaQuery( child: new MediaQuery(
data: const MediaQueryData(), data: const MediaQueryData(),
...@@ -95,6 +101,7 @@ Widget buildTest({ ScrollController controller, String title:'TTTTTTTT' }) { ...@@ -95,6 +101,7 @@ Widget buildTest({ ScrollController controller, String title:'TTTTTTTT' }) {
), ),
), ),
), ),
),
); );
} }
......
...@@ -39,6 +39,7 @@ class TranslationBundle { ...@@ -39,6 +39,7 @@ class TranslationBundle {
String get pageRowsInfoTitle => parent?.pageRowsInfoTitle; String get pageRowsInfoTitle => parent?.pageRowsInfoTitle;
String get pageRowsInfoTitleApproximate => parent?.pageRowsInfoTitleApproximate; String get pageRowsInfoTitleApproximate => parent?.pageRowsInfoTitleApproximate;
String get rowsPerPageTitle => parent?.rowsPerPageTitle; String get rowsPerPageTitle => parent?.rowsPerPageTitle;
String get tabLabel => parent?.tabLabel;
String get selectedRowCountTitleOther => parent?.selectedRowCountTitleOther; String get selectedRowCountTitleOther => parent?.selectedRowCountTitleOther;
String get cancelButtonLabel => parent?.cancelButtonLabel; String get cancelButtonLabel => parent?.cancelButtonLabel;
String get closeButtonLabel => parent?.closeButtonLabel; String get closeButtonLabel => parent?.closeButtonLabel;
...@@ -83,6 +84,7 @@ class _Bundle_ar extends TranslationBundle { ...@@ -83,6 +84,7 @@ class _Bundle_ar extends TranslationBundle {
@override String get pageRowsInfoTitle => r'من $firstRow إلى $lastRow من إجمالي $rowCount'; @override String get pageRowsInfoTitle => r'من $firstRow إلى $lastRow من إجمالي $rowCount';
@override String get pageRowsInfoTitleApproximate => r'من $firstRow إلى $lastRow من إجمالي $rowCount تقريبًا'; @override String get pageRowsInfoTitleApproximate => r'من $firstRow إلى $lastRow من إجمالي $rowCount تقريبًا';
@override String get rowsPerPageTitle => r'عدد الصفوف في الصفحة:'; @override String get rowsPerPageTitle => r'عدد الصفوف في الصفحة:';
@override String get tabLabel => r'من $tabIndex من إجمالي $tabCount';
@override String get selectedRowCountTitleOther => r'تم اختيار $selectedRowCount عنصر'; @override String get selectedRowCountTitleOther => r'تم اختيار $selectedRowCount عنصر';
@override String get cancelButtonLabel => r'إلغاء'; @override String get cancelButtonLabel => r'إلغاء';
@override String get closeButtonLabel => r'إغلاق'; @override String get closeButtonLabel => r'إغلاق';
...@@ -122,6 +124,7 @@ class _Bundle_de extends TranslationBundle { ...@@ -122,6 +124,7 @@ class _Bundle_de extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow–$lastRow von $rowCount'; @override String get pageRowsInfoTitle => r'$firstRow–$lastRow von $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow von etwa $rowCount'; @override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow von etwa $rowCount';
@override String get rowsPerPageTitle => r'Zeilen pro Seite:'; @override String get rowsPerPageTitle => r'Zeilen pro Seite:';
@override String get tabLabel => r'Tabulator $tabIndex von $tabCount';
@override String get selectedRowCountTitleZero => r'Keine Objekte ausgewählt'; @override String get selectedRowCountTitleZero => r'Keine Objekte ausgewählt';
@override String get selectedRowCountTitleOne => r'1 Element ausgewählt'; @override String get selectedRowCountTitleOne => r'1 Element ausgewählt';
@override String get selectedRowCountTitleOther => r'$selectedRowCount Elemente ausgewählt'; @override String get selectedRowCountTitleOther => r'$selectedRowCount Elemente ausgewählt';
...@@ -163,6 +166,7 @@ class _Bundle_en extends TranslationBundle { ...@@ -163,6 +166,7 @@ class _Bundle_en extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow–$lastRow of $rowCount'; @override String get pageRowsInfoTitle => r'$firstRow–$lastRow of $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow of about $rowCount'; @override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow of about $rowCount';
@override String get rowsPerPageTitle => r'Rows per page:'; @override String get rowsPerPageTitle => r'Rows per page:';
@override String get tabLabel => r'Tab $tabIndex of $tabCount';
@override String get selectedRowCountTitleZero => r'No items selected'; @override String get selectedRowCountTitleZero => r'No items selected';
@override String get selectedRowCountTitleOne => r'1 item selected'; @override String get selectedRowCountTitleOne => r'1 item selected';
@override String get selectedRowCountTitleOther => r'$selectedRowCount items selected'; @override String get selectedRowCountTitleOther => r'$selectedRowCount items selected';
...@@ -204,6 +208,7 @@ class _Bundle_es extends TranslationBundle { ...@@ -204,6 +208,7 @@ class _Bundle_es extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow‑$lastRow de $rowCount'; @override String get pageRowsInfoTitle => r'$firstRow‑$lastRow de $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$firstRow‑$lastRow de aproximadamente $rowCount'; @override String get pageRowsInfoTitleApproximate => r'$firstRow‑$lastRow de aproximadamente $rowCount';
@override String get rowsPerPageTitle => r'Filas por página:'; @override String get rowsPerPageTitle => r'Filas por página:';
@override String get tabLabel => r'$tabIndex de $tabCount';
@override String get selectedRowCountTitleZero => r'No se han seleccionado elementos'; @override String get selectedRowCountTitleZero => r'No se han seleccionado elementos';
@override String get selectedRowCountTitleOne => r'1 elemento seleccionado'; @override String get selectedRowCountTitleOne => r'1 elemento seleccionado';
@override String get selectedRowCountTitleOther => r'$selectedRowCount elementos seleccionados'; @override String get selectedRowCountTitleOther => r'$selectedRowCount elementos seleccionados';
...@@ -246,6 +251,7 @@ class _Bundle_fa extends TranslationBundle { ...@@ -246,6 +251,7 @@ class _Bundle_fa extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow–$lastRow از $rowCount'; @override String get pageRowsInfoTitle => r'$firstRow–$lastRow از $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow از حدود $rowCount'; @override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow از حدود $rowCount';
@override String get rowsPerPageTitle => r'ردیف در هر صفحه:'; @override String get rowsPerPageTitle => r'ردیف در هر صفحه:';
@override String get tabLabel => r'$tabIndex از $tabCount';
@override String get selectedRowCountTitleOther => r'$selectedRowCount مورد انتخاب شدند'; @override String get selectedRowCountTitleOther => r'$selectedRowCount مورد انتخاب شدند';
@override String get cancelButtonLabel => r'لغو'; @override String get cancelButtonLabel => r'لغو';
@override String get closeButtonLabel => r'بستن'; @override String get closeButtonLabel => r'بستن';
...@@ -285,6 +291,7 @@ class _Bundle_fr extends TranslationBundle { ...@@ -285,6 +291,7 @@ class _Bundle_fr extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow – $lastRow sur $rowCount'; @override String get pageRowsInfoTitle => r'$firstRow – $lastRow sur $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$firstRow – $lastRow sur environ $rowCount'; @override String get pageRowsInfoTitleApproximate => r'$firstRow – $lastRow sur environ $rowCount';
@override String get rowsPerPageTitle => r'Lignes par page :'; @override String get rowsPerPageTitle => r'Lignes par page :';
@override String get tabLabel => r'$tabIndex sur $tabCount';
@override String get selectedRowCountTitleZero => r'Aucun élément sélectionné'; @override String get selectedRowCountTitleZero => r'Aucun élément sélectionné';
@override String get selectedRowCountTitleOne => r'1 élément sélectionné'; @override String get selectedRowCountTitleOne => r'1 élément sélectionné';
@override String get selectedRowCountTitleOther => r'$selectedRowCount éléments sélectionnés'; @override String get selectedRowCountTitleOther => r'$selectedRowCount éléments sélectionnés';
...@@ -366,6 +373,7 @@ class _Bundle_he extends TranslationBundle { ...@@ -366,6 +373,7 @@ class _Bundle_he extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$lastRow–$firstRow מתוך $rowCount'; @override String get pageRowsInfoTitle => r'$lastRow–$firstRow מתוך $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$lastRow–$firstRow מתוך כ-$rowCount'; @override String get pageRowsInfoTitleApproximate => r'$lastRow–$firstRow מתוך כ-$rowCount';
@override String get rowsPerPageTitle => r'שורות בכל דף:'; @override String get rowsPerPageTitle => r'שורות בכל דף:';
@override String get tabLabel => r'$tabIndex מתוך $tabCount';
@override String get selectedRowCountTitleOther => r'$selectedRowCount פריטים נבחרו'; @override String get selectedRowCountTitleOther => r'$selectedRowCount פריטים נבחרו';
@override String get cancelButtonLabel => r'ביטול'; @override String get cancelButtonLabel => r'ביטול';
@override String get closeButtonLabel => r'סגירה'; @override String get closeButtonLabel => r'סגירה';
...@@ -406,6 +414,7 @@ class _Bundle_it extends TranslationBundle { ...@@ -406,6 +414,7 @@ class _Bundle_it extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow-$lastRow di $rowCount'; @override String get pageRowsInfoTitle => r'$firstRow-$lastRow di $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$firstRow-$lastRow di circa $rowCount'; @override String get pageRowsInfoTitleApproximate => r'$firstRow-$lastRow di circa $rowCount';
@override String get rowsPerPageTitle => r'Righe per pagina:'; @override String get rowsPerPageTitle => r'Righe per pagina:';
@override String get tabLabel => r'$tabIndex di $tabCount';
@override String get selectedRowCountTitleOther => r'$selectedRowCount elementi selezionati'; @override String get selectedRowCountTitleOther => r'$selectedRowCount elementi selezionati';
@override String get cancelButtonLabel => r'ANNULLA'; @override String get cancelButtonLabel => r'ANNULLA';
@override String get closeButtonLabel => r'CHIUDI'; @override String get closeButtonLabel => r'CHIUDI';
...@@ -446,6 +455,7 @@ class _Bundle_ja extends TranslationBundle { ...@@ -446,6 +455,7 @@ class _Bundle_ja extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow - $lastRow 行(合計 $rowCount 行)'; @override String get pageRowsInfoTitle => r'$firstRow - $lastRow 行(合計 $rowCount 行)';
@override String get pageRowsInfoTitleApproximate => r'$firstRow – $lastRow 行(合計約 $rowCount 行)'; @override String get pageRowsInfoTitleApproximate => r'$firstRow – $lastRow 行(合計約 $rowCount 行)';
@override String get rowsPerPageTitle => r'ページあたりの行数:'; @override String get rowsPerPageTitle => r'ページあたりの行数:';
@override String get tabLabel => r'$tabIndex 行(合計 $tabCount 行)';
@override String get selectedRowCountTitleOther => r'$selectedRowCount 件のアイテムを選択中'; @override String get selectedRowCountTitleOther => r'$selectedRowCount 件のアイテムを選択中';
@override String get cancelButtonLabel => r'キャンセル'; @override String get cancelButtonLabel => r'キャンセル';
@override String get closeButtonLabel => r'閉じる'; @override String get closeButtonLabel => r'閉じる';
...@@ -485,6 +495,7 @@ class _Bundle_ko extends TranslationBundle { ...@@ -485,6 +495,7 @@ class _Bundle_ko extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$rowCount행 중 $firstRow~$lastRow행'; @override String get pageRowsInfoTitle => r'$rowCount행 중 $firstRow~$lastRow행';
@override String get pageRowsInfoTitleApproximate => r'약 $rowCount행 중 $firstRow~$lastRow행'; @override String get pageRowsInfoTitleApproximate => r'약 $rowCount행 중 $firstRow~$lastRow행';
@override String get rowsPerPageTitle => r'페이지당 행 수:'; @override String get rowsPerPageTitle => r'페이지당 행 수:';
@override String get tabLabel => r'$tabCount행 중 $tabIndex행';
@override String get selectedRowCountTitleOne => r'항목 1개 선택됨'; @override String get selectedRowCountTitleOne => r'항목 1개 선택됨';
@override String get selectedRowCountTitleOther => r'항목 $selectedRowCount개 선택됨'; @override String get selectedRowCountTitleOther => r'항목 $selectedRowCount개 선택됨';
@override String get cancelButtonLabel => r'취소'; @override String get cancelButtonLabel => r'취소';
...@@ -525,6 +536,7 @@ class _Bundle_nl extends TranslationBundle { ...@@ -525,6 +536,7 @@ class _Bundle_nl extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow-$lastRow van $rowCount'; @override String get pageRowsInfoTitle => r'$firstRow-$lastRow van $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$firstRow-$lastRow van ongeveer $rowCount'; @override String get pageRowsInfoTitleApproximate => r'$firstRow-$lastRow van ongeveer $rowCount';
@override String get rowsPerPageTitle => r'Rijen per pagina:'; @override String get rowsPerPageTitle => r'Rijen per pagina:';
@override String get tabLabel => r'$tabIndex van $tabCount';
@override String get selectedRowCountTitleOne => r'1 item geselecteerd'; @override String get selectedRowCountTitleOne => r'1 item geselecteerd';
@override String get selectedRowCountTitleOther => r'$selectedRowCount items geselecteerd'; @override String get selectedRowCountTitleOther => r'$selectedRowCount items geselecteerd';
@override String get cancelButtonLabel => r'ANNULEREN'; @override String get cancelButtonLabel => r'ANNULEREN';
...@@ -567,6 +579,7 @@ class _Bundle_pl extends TranslationBundle { ...@@ -567,6 +579,7 @@ class _Bundle_pl extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow–$lastRow z $rowCount'; @override String get pageRowsInfoTitle => r'$firstRow–$lastRow z $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow z około $rowCount'; @override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow z około $rowCount';
@override String get rowsPerPageTitle => r'Wiersze na stronie:'; @override String get rowsPerPageTitle => r'Wiersze na stronie:';
@override String get tabLabel => r'$tabIndex z $tabCount';
@override String get selectedRowCountTitleOne => r'1 wybrany element'; @override String get selectedRowCountTitleOne => r'1 wybrany element';
@override String get selectedRowCountTitleOther => r'$selectedRowCount wybranego elementu'; @override String get selectedRowCountTitleOther => r'$selectedRowCount wybranego elementu';
@override String get cancelButtonLabel => r'ANULUJ'; @override String get cancelButtonLabel => r'ANULUJ';
...@@ -607,6 +620,7 @@ class _Bundle_ps extends TranslationBundle { ...@@ -607,6 +620,7 @@ class _Bundle_ps extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow–$lastRow د $rowCount'; @override String get pageRowsInfoTitle => r'$firstRow–$lastRow د $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow څخه $rowCount د'; @override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow څخه $rowCount د';
@override String get rowsPerPageTitle => r'د هرې پاڼې پاڼې:'; @override String get rowsPerPageTitle => r'د هرې پاڼې پاڼې:';
@override String get tabLabel => r'$tabIndex د $tabCount';
@override String get selectedRowCountTitleOther => r'$selectedRowCount توکي غوره شوي'; @override String get selectedRowCountTitleOther => r'$selectedRowCount توکي غوره شوي';
@override String get cancelButtonLabel => r'لغوه کول'; @override String get cancelButtonLabel => r'لغوه کول';
@override String get closeButtonLabel => r'تړل'; @override String get closeButtonLabel => r'تړل';
...@@ -647,6 +661,7 @@ class _Bundle_pt extends TranslationBundle { ...@@ -647,6 +661,7 @@ class _Bundle_pt extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow – $lastRow de $rowCount'; @override String get pageRowsInfoTitle => r'$firstRow – $lastRow de $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$firstRow – $lastRow de aproximadamente $rowCount'; @override String get pageRowsInfoTitleApproximate => r'$firstRow – $lastRow de aproximadamente $rowCount';
@override String get rowsPerPageTitle => r'Linhas por página:'; @override String get rowsPerPageTitle => r'Linhas por página:';
@override String get tabLabel => r'$tabIndex de $tabCount';
@override String get selectedRowCountTitleOther => r'$selectedRowCount itens selecionados'; @override String get selectedRowCountTitleOther => r'$selectedRowCount itens selecionados';
@override String get cancelButtonLabel => r'CANCELAR'; @override String get cancelButtonLabel => r'CANCELAR';
@override String get closeButtonLabel => r'FECHAR'; @override String get closeButtonLabel => r'FECHAR';
...@@ -684,6 +699,7 @@ class _Bundle_ru extends TranslationBundle { ...@@ -684,6 +699,7 @@ class _Bundle_ru extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow–$lastRow из $rowCount'; @override String get pageRowsInfoTitle => r'$firstRow–$lastRow из $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow из примерно $rowCount'; @override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow из примерно $rowCount';
@override String get rowsPerPageTitle => r'Строк на странице:'; @override String get rowsPerPageTitle => r'Строк на странице:';
@override String get tabLabel => r'Закладка $tabIndex из $tabCount';
@override String get aboutListTileTitle => r'$applicationName: сведения'; @override String get aboutListTileTitle => r'$applicationName: сведения';
@override String get licensesPageTitle => r'Лицензии'; @override String get licensesPageTitle => r'Лицензии';
@override String get selectedRowCountTitleZero => r'Строки не выбраны'; @override String get selectedRowCountTitleZero => r'Строки не выбраны';
...@@ -727,6 +743,7 @@ class _Bundle_th extends TranslationBundle { ...@@ -727,6 +743,7 @@ class _Bundle_th extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow-$lastRow จาก $rowCount'; @override String get pageRowsInfoTitle => r'$firstRow-$lastRow จาก $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow จากประมาณ $rowCount'; @override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow จากประมาณ $rowCount';
@override String get rowsPerPageTitle => r'แถวต่อหน้า:'; @override String get rowsPerPageTitle => r'แถวต่อหน้า:';
@override String get tabLabel => r'$tabIndex จาก $tabCount';
@override String get selectedRowCountTitleOne => r'เลือกแล้ว 1 รายการ'; @override String get selectedRowCountTitleOne => r'เลือกแล้ว 1 รายการ';
@override String get selectedRowCountTitleOther => r'เลือกแล้ว $selectedRowCount รายการ'; @override String get selectedRowCountTitleOther => r'เลือกแล้ว $selectedRowCount รายการ';
@override String get cancelButtonLabel => r'ยกเลิก'; @override String get cancelButtonLabel => r'ยกเลิก';
...@@ -767,6 +784,7 @@ class _Bundle_tr extends TranslationBundle { ...@@ -767,6 +784,7 @@ class _Bundle_tr extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow-$lastRow / $rowCount'; @override String get pageRowsInfoTitle => r'$firstRow-$lastRow / $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$firstRow-$lastRow / $rowCount'; @override String get pageRowsInfoTitleApproximate => r'$firstRow-$lastRow / $rowCount';
@override String get rowsPerPageTitle => r'Sayfa başına satır sayısı:'; @override String get rowsPerPageTitle => r'Sayfa başına satır sayısı:';
@override String get tabLabel => r'$tabIndex, $tabCount içinde';
@override String get selectedRowCountTitleOne => r'1 öğe seçildi'; @override String get selectedRowCountTitleOne => r'1 öğe seçildi';
@override String get selectedRowCountTitleOther => r'$selectedRowCount öğe seçildi'; @override String get selectedRowCountTitleOther => r'$selectedRowCount öğe seçildi';
@override String get cancelButtonLabel => r'İPTAL'; @override String get cancelButtonLabel => r'İPTAL';
...@@ -808,6 +826,7 @@ class _Bundle_ur extends TranslationBundle { ...@@ -808,6 +826,7 @@ class _Bundle_ur extends TranslationBundle {
@override String get pageRowsInfoTitle => r'$firstRow–$lastRow از $rowCount'; @override String get pageRowsInfoTitle => r'$firstRow–$lastRow از $rowCount';
@override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow $rowCount میں سے تقریباً'; @override String get pageRowsInfoTitleApproximate => r'$firstRow–$lastRow $rowCount میں سے تقریباً';
@override String get rowsPerPageTitle => r'قطاریں فی صفحہ:'; @override String get rowsPerPageTitle => r'قطاریں فی صفحہ:';
@override String get tabLabel => r'$tabIndex از $tabCount';
@override String get selectedRowCountTitleOther => r'$selectedRowCount آئٹمز منتخب کیے گئے'; @override String get selectedRowCountTitleOther => r'$selectedRowCount آئٹمز منتخب کیے گئے';
@override String get cancelButtonLabel => r'منسوخ کریں'; @override String get cancelButtonLabel => r'منسوخ کریں';
@override String get closeButtonLabel => r'بند کریں'; @override String get closeButtonLabel => r'بند کریں';
...@@ -844,6 +863,7 @@ class _Bundle_zh extends TranslationBundle { ...@@ -844,6 +863,7 @@ class _Bundle_zh extends TranslationBundle {
@override String get pageRowsInfoTitle => r'第 $firstRow-$lastRow 行(共 $rowCount 行)'; @override String get pageRowsInfoTitle => r'第 $firstRow-$lastRow 行(共 $rowCount 行)';
@override String get pageRowsInfoTitleApproximate => r'第 $firstRow-$lastRow 行(共约 $rowCount 行)'; @override String get pageRowsInfoTitleApproximate => r'第 $firstRow-$lastRow 行(共约 $rowCount 行)';
@override String get rowsPerPageTitle => r'每页行数:'; @override String get rowsPerPageTitle => r'每页行数:';
@override String get tabLabel => r'第 $tabIndex 行(共 $tabCount 行)';
@override String get selectedRowCountTitleOther => r'已选择 $selectedRowCount 项内容'; @override String get selectedRowCountTitleOther => r'已选择 $selectedRowCount 项内容';
@override String get cancelButtonLabel => r'取消'; @override String get cancelButtonLabel => r'取消';
@override String get continueButtonLabel => r'继续'; @override String get continueButtonLabel => r'继续';
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
"pageRowsInfoTitle": "من $firstRow إلى $lastRow من إجمالي $rowCount", "pageRowsInfoTitle": "من $firstRow إلى $lastRow من إجمالي $rowCount",
"pageRowsInfoTitleApproximate": "من $firstRow إلى $lastRow من إجمالي $rowCount تقريبًا", "pageRowsInfoTitleApproximate": "من $firstRow إلى $lastRow من إجمالي $rowCount تقريبًا",
"rowsPerPageTitle": "عدد الصفوف في الصفحة:", "rowsPerPageTitle": "عدد الصفوف في الصفحة:",
"tabLabel": "من $tabIndex من إجمالي $tabCount",
"selectedRowCountTitleOther": "تم اختيار $selectedRowCount عنصر", "selectedRowCountTitleOther": "تم اختيار $selectedRowCount عنصر",
"cancelButtonLabel": "إلغاء", "cancelButtonLabel": "إلغاء",
"closeButtonLabel": "إغلاق", "closeButtonLabel": "إغلاق",
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"pageRowsInfoTitle": "$firstRow–$lastRow von $rowCount", "pageRowsInfoTitle": "$firstRow–$lastRow von $rowCount",
"pageRowsInfoTitleApproximate": "$firstRow–$lastRow von etwa $rowCount", "pageRowsInfoTitleApproximate": "$firstRow–$lastRow von etwa $rowCount",
"rowsPerPageTitle": "Zeilen pro Seite:", "rowsPerPageTitle": "Zeilen pro Seite:",
"tabLabel": "Tabulator $tabIndex von $tabCount",
"selectedRowCountTitleZero": "Keine Objekte ausgewählt", "selectedRowCountTitleZero": "Keine Objekte ausgewählt",
"selectedRowCountTitleOne": "1 Element ausgewählt", "selectedRowCountTitleOne": "1 Element ausgewählt",
"selectedRowCountTitleOther": "$selectedRowCount Elemente ausgewählt", "selectedRowCountTitleOther": "$selectedRowCount Elemente ausgewählt",
......
...@@ -82,6 +82,12 @@ ...@@ -82,6 +82,12 @@
"description": "The caption for the drop-down button on a paginated data table's footer that allows the user to control the number of rows of data per page of the table." "description": "The caption for the drop-down button on a paginated data table's footer that allows the user to control the number of rows of data per page of the table."
}, },
"tabLabel": "Tab $tabIndex of $tabCount",
"@tabLabel": {
"description": "The accessibility label used on a tab. This message describes the index of the selected tab and how many tabs there are, e.g. 'Tab 1 of 2'. All values are greater than or equal to one.",
"parameters": "tabIndex, tabCount"
},
"selectedRowCountTitleZero": "No items selected", "selectedRowCountTitleZero": "No items selected",
"selectedRowCountTitleOne": "1 item selected", "selectedRowCountTitleOne": "1 item selected",
"selectedRowCountTitleOther": "$selectedRowCount items selected", "selectedRowCountTitleOther": "$selectedRowCount items selected",
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"pageRowsInfoTitle": "$firstRow‑$lastRow de $rowCount", "pageRowsInfoTitle": "$firstRow‑$lastRow de $rowCount",
"pageRowsInfoTitleApproximate": "$firstRow‑$lastRow de aproximadamente $rowCount", "pageRowsInfoTitleApproximate": "$firstRow‑$lastRow de aproximadamente $rowCount",
"rowsPerPageTitle": "Filas por página:", "rowsPerPageTitle": "Filas por página:",
"tabLabel": "$tabIndex de $tabCount",
"selectedRowCountTitleZero": "No se han seleccionado elementos", "selectedRowCountTitleZero": "No se han seleccionado elementos",
"selectedRowCountTitleOne": "1 elemento seleccionado", "selectedRowCountTitleOne": "1 elemento seleccionado",
"selectedRowCountTitleOther": "$selectedRowCount elementos seleccionados", "selectedRowCountTitleOther": "$selectedRowCount elementos seleccionados",
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
"pageRowsInfoTitle": "$firstRow–$lastRow از $rowCount", "pageRowsInfoTitle": "$firstRow–$lastRow از $rowCount",
"pageRowsInfoTitleApproximate": "$firstRow–$lastRow از حدود $rowCount", "pageRowsInfoTitleApproximate": "$firstRow–$lastRow از حدود $rowCount",
"rowsPerPageTitle": "ردیف در هر صفحه:", "rowsPerPageTitle": "ردیف در هر صفحه:",
"tabLabel": "$tabIndex از $tabCount",
"selectedRowCountTitleOther": "$selectedRowCount مورد انتخاب شدند", "selectedRowCountTitleOther": "$selectedRowCount مورد انتخاب شدند",
"cancelButtonLabel": "لغو", "cancelButtonLabel": "لغو",
"closeButtonLabel": "بستن", "closeButtonLabel": "بستن",
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"pageRowsInfoTitle": "$firstRow – $lastRow sur $rowCount", "pageRowsInfoTitle": "$firstRow – $lastRow sur $rowCount",
"pageRowsInfoTitleApproximate": "$firstRow – $lastRow sur environ $rowCount", "pageRowsInfoTitleApproximate": "$firstRow – $lastRow sur environ $rowCount",
"rowsPerPageTitle": "Lignes par page :", "rowsPerPageTitle": "Lignes par page :",
"tabLabel": "$tabIndex sur $tabCount",
"selectedRowCountTitleZero": "Aucun élément sélectionné", "selectedRowCountTitleZero": "Aucun élément sélectionné",
"selectedRowCountTitleOne": "1 élément sélectionné", "selectedRowCountTitleOne": "1 élément sélectionné",
"selectedRowCountTitleOther": "$selectedRowCount éléments sélectionnés", "selectedRowCountTitleOther": "$selectedRowCount éléments sélectionnés",
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"pageRowsInfoTitle": "$lastRow–$firstRow מתוך $rowCount", "pageRowsInfoTitle": "$lastRow–$firstRow מתוך $rowCount",
"pageRowsInfoTitleApproximate": "$lastRow–$firstRow מתוך כ-$rowCount", "pageRowsInfoTitleApproximate": "$lastRow–$firstRow מתוך כ-$rowCount",
"rowsPerPageTitle": "שורות בכל דף:", "rowsPerPageTitle": "שורות בכל דף:",
"tabLabel": "$tabIndex מתוך $tabCount",
"selectedRowCountTitleOther": "$selectedRowCount פריטים נבחרו", "selectedRowCountTitleOther": "$selectedRowCount פריטים נבחרו",
"cancelButtonLabel": "ביטול", "cancelButtonLabel": "ביטול",
"closeButtonLabel": "סגירה", "closeButtonLabel": "סגירה",
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
"pageRowsInfoTitle": "$firstRow-$lastRow di $rowCount", "pageRowsInfoTitle": "$firstRow-$lastRow di $rowCount",
"pageRowsInfoTitleApproximate": "$firstRow-$lastRow di circa $rowCount", "pageRowsInfoTitleApproximate": "$firstRow-$lastRow di circa $rowCount",
"rowsPerPageTitle": "Righe per pagina:", "rowsPerPageTitle": "Righe per pagina:",
"tabLabel": "$tabIndex di $tabCount",
"selectedRowCountTitleOther": "$selectedRowCount elementi selezionati", "selectedRowCountTitleOther": "$selectedRowCount elementi selezionati",
"cancelButtonLabel": "ANNULLA", "cancelButtonLabel": "ANNULLA",
"closeButtonLabel": "CHIUDI", "closeButtonLabel": "CHIUDI",
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
"pageRowsInfoTitle": "$firstRow - $lastRow 行(合計 $rowCount 行)", "pageRowsInfoTitle": "$firstRow - $lastRow 行(合計 $rowCount 行)",
"pageRowsInfoTitleApproximate": "$firstRow – $lastRow 行(合計約 $rowCount 行)", "pageRowsInfoTitleApproximate": "$firstRow – $lastRow 行(合計約 $rowCount 行)",
"rowsPerPageTitle": "ページあたりの行数:", "rowsPerPageTitle": "ページあたりの行数:",
"tabLabel": "$tabIndex 行(合計 $tabCount 行)",
"selectedRowCountTitleOther": "$selectedRowCount 件のアイテムを選択中", "selectedRowCountTitleOther": "$selectedRowCount 件のアイテムを選択中",
"cancelButtonLabel": "キャンセル", "cancelButtonLabel": "キャンセル",
"closeButtonLabel": "閉じる", "closeButtonLabel": "閉じる",
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"pageRowsInfoTitle": "$rowCount행 중 $firstRow~$lastRow행", "pageRowsInfoTitle": "$rowCount행 중 $firstRow~$lastRow행",
"pageRowsInfoTitleApproximate": "약 $rowCount행 중 $firstRow~$lastRow행", "pageRowsInfoTitleApproximate": "약 $rowCount행 중 $firstRow~$lastRow행",
"rowsPerPageTitle": "페이지당 행 수:", "rowsPerPageTitle": "페이지당 행 수:",
"tabLabel": "$tabCount행 중 $tabIndex행",
"selectedRowCountTitleOne": "항목 1개 선택됨", "selectedRowCountTitleOne": "항목 1개 선택됨",
"selectedRowCountTitleOther": "항목 $selectedRowCount개 선택됨", "selectedRowCountTitleOther": "항목 $selectedRowCount개 선택됨",
"cancelButtonLabel": "취소", "cancelButtonLabel": "취소",
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"pageRowsInfoTitle": "$firstRow-$lastRow van $rowCount", "pageRowsInfoTitle": "$firstRow-$lastRow van $rowCount",
"pageRowsInfoTitleApproximate": "$firstRow-$lastRow van ongeveer $rowCount", "pageRowsInfoTitleApproximate": "$firstRow-$lastRow van ongeveer $rowCount",
"rowsPerPageTitle": "Rijen per pagina:", "rowsPerPageTitle": "Rijen per pagina:",
"tabLabel": "$tabIndex van $tabCount",
"selectedRowCountTitleOne": "1 item geselecteerd", "selectedRowCountTitleOne": "1 item geselecteerd",
"selectedRowCountTitleOther": "$selectedRowCount items geselecteerd", "selectedRowCountTitleOther": "$selectedRowCount items geselecteerd",
"cancelButtonLabel": "ANNULEREN", "cancelButtonLabel": "ANNULEREN",
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"pageRowsInfoTitle": "$firstRow–$lastRow z $rowCount", "pageRowsInfoTitle": "$firstRow–$lastRow z $rowCount",
"pageRowsInfoTitleApproximate": "$firstRow–$lastRow z około $rowCount", "pageRowsInfoTitleApproximate": "$firstRow–$lastRow z około $rowCount",
"rowsPerPageTitle": "Wiersze na stronie:", "rowsPerPageTitle": "Wiersze na stronie:",
"tabLabel": "$tabIndex z $tabCount",
"selectedRowCountTitleOne": "1 wybrany element", "selectedRowCountTitleOne": "1 wybrany element",
"selectedRowCountTitleOther": "$selectedRowCount wybranego elementu", "selectedRowCountTitleOther": "$selectedRowCount wybranego elementu",
"cancelButtonLabel": "ANULUJ", "cancelButtonLabel": "ANULUJ",
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"pageRowsInfoTitle": "$firstRow–$lastRow د $rowCount", "pageRowsInfoTitle": "$firstRow–$lastRow د $rowCount",
"pageRowsInfoTitleApproximate": "$firstRow–$lastRow څخه $rowCount د", "pageRowsInfoTitleApproximate": "$firstRow–$lastRow څخه $rowCount د",
"rowsPerPageTitle": "د هرې پاڼې پاڼې:", "rowsPerPageTitle": "د هرې پاڼې پاڼې:",
"tabLabel": "$tabIndex د $tabCount",
"selectedRowCountTitleOther": "$selectedRowCount توکي غوره شوي", "selectedRowCountTitleOther": "$selectedRowCount توکي غوره شوي",
"cancelButtonLabel": "لغوه کول", "cancelButtonLabel": "لغوه کول",
"closeButtonLabel": "تړل", "closeButtonLabel": "تړل",
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
"pageRowsInfoTitle": "$firstRow – $lastRow de $rowCount", "pageRowsInfoTitle": "$firstRow – $lastRow de $rowCount",
"pageRowsInfoTitleApproximate": "$firstRow – $lastRow de aproximadamente $rowCount", "pageRowsInfoTitleApproximate": "$firstRow – $lastRow de aproximadamente $rowCount",
"rowsPerPageTitle": "Linhas por página:", "rowsPerPageTitle": "Linhas por página:",
"tabLabel": "$tabIndex de $tabCount",
"selectedRowCountTitleOther": "$selectedRowCount itens selecionados", "selectedRowCountTitleOther": "$selectedRowCount itens selecionados",
"cancelButtonLabel": "CANCELAR", "cancelButtonLabel": "CANCELAR",
"closeButtonLabel": "FECHAR", "closeButtonLabel": "FECHAR",
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"pageRowsInfoTitle": "$firstRow–$lastRow из $rowCount", "pageRowsInfoTitle": "$firstRow–$lastRow из $rowCount",
"pageRowsInfoTitleApproximate": "$firstRow–$lastRow из примерно $rowCount", "pageRowsInfoTitleApproximate": "$firstRow–$lastRow из примерно $rowCount",
"rowsPerPageTitle": "Строк на странице:", "rowsPerPageTitle": "Строк на странице:",
"tabLabel": "Закладка $tabIndex из $tabCount",
"aboutListTileTitle": "$applicationName: сведения", "aboutListTileTitle": "$applicationName: сведения",
"licensesPageTitle": "Лицензии", "licensesPageTitle": "Лицензии",
"selectedRowCountTitleZero": "Строки не выбраны", "selectedRowCountTitleZero": "Строки не выбраны",
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"pageRowsInfoTitle": "$firstRow-$lastRow จาก $rowCount", "pageRowsInfoTitle": "$firstRow-$lastRow จาก $rowCount",
"pageRowsInfoTitleApproximate": "$firstRow–$lastRow จากประมาณ $rowCount", "pageRowsInfoTitleApproximate": "$firstRow–$lastRow จากประมาณ $rowCount",
"rowsPerPageTitle": "แถวต่อหน้า:", "rowsPerPageTitle": "แถวต่อหน้า:",
"tabLabel": "$tabIndex จาก $tabCount",
"selectedRowCountTitleOne": "เลือกแล้ว 1 รายการ", "selectedRowCountTitleOne": "เลือกแล้ว 1 รายการ",
"selectedRowCountTitleOther": "เลือกแล้ว $selectedRowCount รายการ", "selectedRowCountTitleOther": "เลือกแล้ว $selectedRowCount รายการ",
"cancelButtonLabel": "ยกเลิก", "cancelButtonLabel": "ยกเลิก",
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"pageRowsInfoTitle": "$firstRow-$lastRow / $rowCount", "pageRowsInfoTitle": "$firstRow-$lastRow / $rowCount",
"pageRowsInfoTitleApproximate": "$firstRow-$lastRow / $rowCount", "pageRowsInfoTitleApproximate": "$firstRow-$lastRow / $rowCount",
"rowsPerPageTitle": "Sayfa başına satır sayısı:", "rowsPerPageTitle": "Sayfa başına satır sayısı:",
"tabLabel": "$tabIndex, $tabCount içinde",
"selectedRowCountTitleOne": "1 öğe seçildi", "selectedRowCountTitleOne": "1 öğe seçildi",
"selectedRowCountTitleOther": "$selectedRowCount öğe seçildi", "selectedRowCountTitleOther": "$selectedRowCount öğe seçildi",
"cancelButtonLabel": "İPTAL", "cancelButtonLabel": "İPTAL",
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
"pageRowsInfoTitle": "$firstRow–$lastRow از $rowCount", "pageRowsInfoTitle": "$firstRow–$lastRow از $rowCount",
"pageRowsInfoTitleApproximate": "$firstRow–$lastRow $rowCount میں سے تقریباً", "pageRowsInfoTitleApproximate": "$firstRow–$lastRow $rowCount میں سے تقریباً",
"rowsPerPageTitle": "قطاریں فی صفحہ:", "rowsPerPageTitle": "قطاریں فی صفحہ:",
"tabLabel": "$tabIndex از $tabCount",
"selectedRowCountTitleOther": "$selectedRowCount آئٹمز منتخب کیے گئے", "selectedRowCountTitleOther": "$selectedRowCount آئٹمز منتخب کیے گئے",
"cancelButtonLabel": "منسوخ کریں", "cancelButtonLabel": "منسوخ کریں",
"closeButtonLabel": "بند کریں", "closeButtonLabel": "بند کریں",
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
"pageRowsInfoTitle": "第 $firstRow-$lastRow 行(共 $rowCount 行)", "pageRowsInfoTitle": "第 $firstRow-$lastRow 行(共 $rowCount 行)",
"pageRowsInfoTitleApproximate": "第 $firstRow-$lastRow 行(共约 $rowCount 行)", "pageRowsInfoTitleApproximate": "第 $firstRow-$lastRow 行(共约 $rowCount 行)",
"rowsPerPageTitle": "每页行数:", "rowsPerPageTitle": "每页行数:",
"tabLabel": "第 $tabIndex 行(共 $tabCount 行)",
"selectedRowCountTitleOther": "已选择 $selectedRowCount 项内容", "selectedRowCountTitleOther": "已选择 $selectedRowCount 项内容",
"cancelButtonLabel": "取消", "cancelButtonLabel": "取消",
"continueButtonLabel": "继续", "continueButtonLabel": "继续",
......
...@@ -272,6 +272,16 @@ class GlobalMaterialLocalizations implements MaterialLocalizations { ...@@ -272,6 +272,16 @@ class GlobalMaterialLocalizations implements MaterialLocalizations {
@override @override
String get rowsPerPageTitle => _translationBundle.rowsPerPageTitle; String get rowsPerPageTitle => _translationBundle.rowsPerPageTitle;
@override
String tabLabel({int tabIndex, int tabCount}) {
assert(tabIndex >= 1);
assert(tabCount >= 1);
final String template = _translationBundle.tabLabel;
return template
.replaceFirst(r'$tabIndex', formatDecimal(tabIndex))
.replaceFirst(r'tabCount', formatDecimal(tabCount));
}
@override @override
String selectedRowCountTitle(int selectedRowCount) { String selectedRowCountTitle(int selectedRowCount) {
// TODO(hmuller): the rules for mapping from an integer value to // TODO(hmuller): the rules for mapping from an integer value to
......
...@@ -61,19 +61,25 @@ void main() { ...@@ -61,19 +61,25 @@ void main() {
expect(localizations.selectedRowCountTitle(1), isNotNull); expect(localizations.selectedRowCountTitle(1), isNotNull);
expect(localizations.selectedRowCountTitle(2), isNotNull); expect(localizations.selectedRowCountTitle(2), isNotNull);
expect(localizations.selectedRowCountTitle(100), isNotNull); expect(localizations.selectedRowCountTitle(100), isNotNull);
expect(localizations.selectedRowCountTitle(0).contains(r'$selectedRowCount'), isFalse); expect(localizations.selectedRowCountTitle(0), isNot(contains(r'$selectedRowCount')));
expect(localizations.selectedRowCountTitle(1).contains(r'$selectedRowCount'), isFalse); expect(localizations.selectedRowCountTitle(1), isNot(contains(r'$selectedRowCount')));
expect(localizations.selectedRowCountTitle(2).contains(r'$selectedRowCount'), isFalse); expect(localizations.selectedRowCountTitle(2), isNot(contains(r'$selectedRowCount')));
expect(localizations.selectedRowCountTitle(100).contains(r'$selectedRowCount'), isFalse); expect(localizations.selectedRowCountTitle(100), isNot(contains(r'$selectedRowCount')));
expect(localizations.pageRowsInfoTitle(1, 10, 100, true), isNotNull); expect(localizations.pageRowsInfoTitle(1, 10, 100, true), isNotNull);
expect(localizations.pageRowsInfoTitle(1, 10, 100, false), isNotNull); expect(localizations.pageRowsInfoTitle(1, 10, 100, false), isNotNull);
expect(localizations.pageRowsInfoTitle(1, 10, 100, true).contains(r'$firstRow'), isFalse); expect(localizations.pageRowsInfoTitle(1, 10, 100, true), isNot(contains(r'$firstRow')));
expect(localizations.pageRowsInfoTitle(1, 10, 100, true).contains(r'$lastRow'), isFalse); expect(localizations.pageRowsInfoTitle(1, 10, 100, true), isNot(contains(r'$lastRow')));
expect(localizations.pageRowsInfoTitle(1, 10, 100, true).contains(r'$rowCount'), isFalse); expect(localizations.pageRowsInfoTitle(1, 10, 100, true), isNot(contains(r'$rowCount')));
expect(localizations.pageRowsInfoTitle(1, 10, 100, false).contains(r'$firstRow'), isFalse); expect(localizations.pageRowsInfoTitle(1, 10, 100, false), isNot(contains(r'$firstRow')));
expect(localizations.pageRowsInfoTitle(1, 10, 100, false).contains(r'$lastRow'), isFalse); expect(localizations.pageRowsInfoTitle(1, 10, 100, false), isNot(contains(r'$lastRow')));
expect(localizations.pageRowsInfoTitle(1, 10, 100, false).contains(r'$rowCount'), isFalse); expect(localizations.pageRowsInfoTitle(1, 10, 100, false), isNot(contains(r'$rowCount')));
expect(localizations.tabLabel(tabIndex: 2, tabCount: 5), isNotNull);
expect(localizations.tabLabel(tabIndex: 2, tabCount: 5), isNot(contains('tabIndex')));
expect(localizations.tabLabel(tabIndex: 2, tabCount: 5), isNot(contains('tabCount')));
expect(() => localizations.tabLabel(tabIndex: 0, tabCount: 5), throwsAssertionError);
expect(() => localizations.tabLabel(tabIndex: 2, tabCount: 0), throwsAssertionError);
}); });
} }
......
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