More localizations for Material (#11989)
This commit is contained in:
parent
ca7d2d23cf
commit
60c4ff9360
@ -13,6 +13,7 @@ import 'debug.dart';
|
|||||||
import 'dialog.dart';
|
import 'dialog.dart';
|
||||||
import 'flat_button.dart';
|
import 'flat_button.dart';
|
||||||
import 'list_tile.dart';
|
import 'list_tile.dart';
|
||||||
|
import 'material_localizations.dart';
|
||||||
import 'page.dart';
|
import 'page.dart';
|
||||||
import 'progress_indicator.dart';
|
import 'progress_indicator.dart';
|
||||||
import 'scaffold.dart';
|
import 'scaffold.dart';
|
||||||
@ -287,7 +288,7 @@ class AboutDialog extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
new FlatButton(
|
new FlatButton(
|
||||||
child: const Text('VIEW LICENSES'),
|
child: new Text(MaterialLocalizations.of(context).viewLicensesButtonLabel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
showLicensePage(
|
showLicensePage(
|
||||||
context: context,
|
context: context,
|
||||||
@ -299,7 +300,7 @@ class AboutDialog extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
),
|
),
|
||||||
new FlatButton(
|
new FlatButton(
|
||||||
child: const Text('CLOSE'),
|
child: new Text(MaterialLocalizations.of(context).closeButtonLabel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
}
|
}
|
||||||
@ -440,7 +441,7 @@ class _LicensePageState extends State<LicensePage> {
|
|||||||
}
|
}
|
||||||
return new Scaffold(
|
return new Scaffold(
|
||||||
appBar: new AppBar(
|
appBar: new AppBar(
|
||||||
title: const Text('Licenses')
|
title: new Text(MaterialLocalizations.of(context).licensesPageTitle),
|
||||||
),
|
),
|
||||||
body: new DefaultTextStyle(
|
body: new DefaultTextStyle(
|
||||||
style: Theme.of(context).textTheme.caption,
|
style: Theme.of(context).textTheme.caption,
|
||||||
|
@ -800,15 +800,16 @@ class _DatePickerDialogState extends State<_DatePickerDialog> {
|
|||||||
child: _buildPicker(),
|
child: _buildPicker(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
final MaterialLocalizations localizations = MaterialLocalizations.of(context);
|
||||||
final Widget actions = new ButtonTheme.bar(
|
final Widget actions = new ButtonTheme.bar(
|
||||||
child: new ButtonBar(
|
child: new ButtonBar(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
new FlatButton(
|
new FlatButton(
|
||||||
child: const Text('CANCEL'),
|
child: new Text(localizations.cancelButtonLabel),
|
||||||
onPressed: _handleCancel,
|
onPressed: _handleCancel,
|
||||||
),
|
),
|
||||||
new FlatButton(
|
new FlatButton(
|
||||||
child: const Text('OK'),
|
child: new Text(localizations.okButtonLabel),
|
||||||
onPressed: _handleOk,
|
onPressed: _handleOk,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -16,104 +16,254 @@ const Map<String, Map<String, String>> localizations = const <String, Map<String
|
|||||||
"backButtonTooltip": r"پوئتي",
|
"backButtonTooltip": r"پوئتي",
|
||||||
"closeButtonTooltip": r"بند ڪريو",
|
"closeButtonTooltip": r"بند ڪريو",
|
||||||
"nextMonthTooltip": r"ايندڙ مهيني",
|
"nextMonthTooltip": r"ايندڙ مهيني",
|
||||||
"previousMonthTooltip": r"پويون مهينو"
|
"previousMonthTooltip": r"پويون مهينو",
|
||||||
|
"licensesPageTitle": r"لائسنس",
|
||||||
|
"cancelButtonLabel": r"منسوخ ڪيو",
|
||||||
|
"closeButtonLabel": r"بند ڪريو",
|
||||||
|
"continueButtonLabel": r"جاري رکو",
|
||||||
|
"copyButtonLabel": r"ڪاپي",
|
||||||
|
"cutButtonLabel": r"پٽي",
|
||||||
|
"okButtonLabel": r"ٺيڪ آهي",
|
||||||
|
"pasteButtonLabel": r"پيسٽ ڪريو",
|
||||||
|
"selectAllButtonLabel": r"سڀ چونڊيو",
|
||||||
|
"viewLicensesButtonLabel": r"لائسنس ڏسو"
|
||||||
},
|
},
|
||||||
"fa": const <String, String>{
|
"fa": const <String, String>{
|
||||||
"openAppDrawerTooltip": r"منوی ناوبری را باز کنید",
|
"openAppDrawerTooltip": r"منوی ناوبری را باز کنید",
|
||||||
"backButtonTooltip": r"بازگشت",
|
"backButtonTooltip": r"بازگشت",
|
||||||
"closeButtonTooltip": r"بستن",
|
"closeButtonTooltip": r"بستن",
|
||||||
"nextMonthTooltip": r"ماه بعد",
|
"nextMonthTooltip": r"ماه بعد",
|
||||||
"previousMonthTooltip": r"ماه گذشته"
|
"previousMonthTooltip": r"ماه گذشته",
|
||||||
|
"licensesPageTitle": r"مجوز",
|
||||||
|
"cancelButtonLabel": r"لغو",
|
||||||
|
"closeButtonLabel": r"بستن",
|
||||||
|
"continueButtonLabel": r"ادامه دهید",
|
||||||
|
"copyButtonLabel": r"کپی",
|
||||||
|
"cutButtonLabel": r"برش",
|
||||||
|
"okButtonLabel": r"تایید",
|
||||||
|
"pasteButtonLabel": r"چسباندن",
|
||||||
|
"selectAllButtonLabel": r"انتخاب همه",
|
||||||
|
"viewLicensesButtonLabel": r"مشاهده مجوز"
|
||||||
},
|
},
|
||||||
"ur": const <String, String>{
|
"ur": const <String, String>{
|
||||||
"openAppDrawerTooltip": r"کھولیں نیویگیشن مینو",
|
"openAppDrawerTooltip": r"کھولیں نیویگیشن مینو",
|
||||||
"backButtonTooltip": r"واپس",
|
"backButtonTooltip": r"واپس",
|
||||||
"closeButtonTooltip": r"بند کریں",
|
"closeButtonTooltip": r"بند کریں",
|
||||||
"nextMonthTooltip": r"اگلا مھینہ",
|
"nextMonthTooltip": r"اگلا مھینہ",
|
||||||
"previousMonthTooltip": r"پچھلا مھینہ"
|
"previousMonthTooltip": r"پچھلا مھینہ",
|
||||||
|
"licensesPageTitle": r"لائسنس",
|
||||||
|
"cancelButtonLabel": r"منسوخ کریں",
|
||||||
|
"closeButtonLabel": r"بند کریں",
|
||||||
|
"continueButtonLabel": r"جاری رکھیں",
|
||||||
|
"copyButtonLabel": r"کاپی",
|
||||||
|
"cutButtonLabel": r"کاٹیں",
|
||||||
|
"okButtonLabel": r"ٹھیک ہے",
|
||||||
|
"pasteButtonLabel": r"چسپاں",
|
||||||
|
"selectAllButtonLabel": r"تکاپیمام منتخب کریں",
|
||||||
|
"viewLicensesButtonLabel": r"لائسنس دیکھیں"
|
||||||
},
|
},
|
||||||
"ps": const <String, String>{
|
"ps": const <String, String>{
|
||||||
"openAppDrawerTooltip": r"د پرانیستی نیینګ مینو",
|
"openAppDrawerTooltip": r"د پرانیستی نیینګ مینو",
|
||||||
"backButtonTooltip": r"شاته",
|
"backButtonTooltip": r"شاته",
|
||||||
"closeButtonTooltip": r"بنده",
|
"closeButtonTooltip": r"بنده",
|
||||||
"nextMonthTooltip": r"بله میاشت",
|
"nextMonthTooltip": r"بله میاشت",
|
||||||
"previousMonthTooltip": r"تیره میاشت"
|
"previousMonthTooltip": r"تیره میاشت",
|
||||||
|
"licensesPageTitle": r"جوازونه",
|
||||||
|
"cancelButtonLabel": r"لغوه کول",
|
||||||
|
"closeButtonLabel": r"تړل",
|
||||||
|
"continueButtonLabel": r"منځپانګې",
|
||||||
|
"copyButtonLabel": r"کاپی",
|
||||||
|
"cutButtonLabel": r"کم کړئ",
|
||||||
|
"okButtonLabel": r"سمه ده",
|
||||||
|
"pasteButtonLabel": r"پیټ کړئ",
|
||||||
|
"selectAllButtonLabel": r"غوره کړئ",
|
||||||
|
"viewLicensesButtonLabel": r"لیدلس وګورئ"
|
||||||
},
|
},
|
||||||
"he": const <String, String>{
|
"he": const <String, String>{
|
||||||
"openAppDrawerTooltip": r"פתח תפריט ניווט",
|
"openAppDrawerTooltip": r"פתח תפריט ניווט",
|
||||||
"backButtonTooltip": r"אחורה",
|
"backButtonTooltip": r"אחורה",
|
||||||
"closeButtonTooltip": r"סגור",
|
"closeButtonTooltip": r"סגור",
|
||||||
"nextMonthTooltip": r"חודש הבא",
|
"nextMonthTooltip": r"חודש הבא",
|
||||||
"previousMonthTooltip": r"חודש שעבר"
|
"previousMonthTooltip": r"חודש שעבר",
|
||||||
|
"licensesPageTitle": r"רישיונות",
|
||||||
|
"cancelButtonLabel": r"ביטול",
|
||||||
|
"closeButtonLabel": r"סגור",
|
||||||
|
"continueButtonLabel": r"לְהַמשִׁיך",
|
||||||
|
"copyButtonLabel": r"קיבלתי!",
|
||||||
|
"cutButtonLabel": r"גזור",
|
||||||
|
"okButtonLabel": r"בסדר",
|
||||||
|
"pasteButtonLabel": r"הדבק",
|
||||||
|
"selectAllButtonLabel": r"בחר הכל",
|
||||||
|
"viewLicensesButtonLabel": r"ראה רישיונות"
|
||||||
},
|
},
|
||||||
"ar": const <String, String>{
|
"ar": const <String, String>{
|
||||||
"openAppDrawerTooltip": r"افتح قائمة التنقل",
|
"openAppDrawerTooltip": r"افتح قائمة التنقل",
|
||||||
"backButtonTooltip": r"الى الخلف",
|
"backButtonTooltip": r"الى الخلف",
|
||||||
"closeButtonTooltip": r"إغلا",
|
"closeButtonTooltip": r"إغلا",
|
||||||
"nextMonthTooltip": r"الشهر القادم",
|
"nextMonthTooltip": r"الشهر القادم",
|
||||||
"previousMonthTooltip": r"الشهر الماضى"
|
"previousMonthTooltip": r"الشهر الماضى",
|
||||||
|
"licensesPageTitle": r"التّراخيص",
|
||||||
|
"cancelButtonLabel": r"إلغاء",
|
||||||
|
"closeButtonLabel": r"أغلاق",
|
||||||
|
"continueButtonLabel": r"استمر",
|
||||||
|
"copyButtonLabel": r"نسخ",
|
||||||
|
"cutButtonLabel": r"كِم جارح",
|
||||||
|
"okButtonLabel": r"حسنا",
|
||||||
|
"pasteButtonLabel": r"عجين",
|
||||||
|
"selectAllButtonLabel": r"اختر الكل",
|
||||||
|
"viewLicensesButtonLabel": r"عرض التراخيص"
|
||||||
},
|
},
|
||||||
"it": const <String, String>{
|
"it": const <String, String>{
|
||||||
"openAppDrawerTooltip": r"Apri il menu di navigazione",
|
"openAppDrawerTooltip": r"Apri il menu di navigazione",
|
||||||
"backButtonTooltip": r"Indietro",
|
"backButtonTooltip": r"Indietro",
|
||||||
"closeButtonTooltip": r"Chiudi",
|
"closeButtonTooltip": r"Chiudi",
|
||||||
"nextMonthTooltip": r"Il prossimo mese",
|
"nextMonthTooltip": r"Il prossimo mese",
|
||||||
"previousMonthTooltip": r"Il mese scorso"
|
"previousMonthTooltip": r"Il mese scorso",
|
||||||
|
"licensesPageTitle": r"Licenze",
|
||||||
|
"cancelButtonLabel": r"ANNULLA",
|
||||||
|
"closeButtonLabel": r"CHIUDI",
|
||||||
|
"continueButtonLabel": r"CONTINUA",
|
||||||
|
"copyButtonLabel": r"COPY",
|
||||||
|
"cutButtonLabel": r"TAGLIARE",
|
||||||
|
"okButtonLabel": r"OK",
|
||||||
|
"pasteButtonLabel": r"INCOLLA",
|
||||||
|
"selectAllButtonLabel": r"SELEZIONA TUTTO",
|
||||||
|
"viewLicensesButtonLabel": r"VEDI LE LICENZE"
|
||||||
},
|
},
|
||||||
"pt": const <String, String>{
|
"pt": const <String, String>{
|
||||||
"openAppDrawerTooltip": r"Abrir menu de navegação",
|
"openAppDrawerTooltip": r"Abrir menu de navegação",
|
||||||
"backButtonTooltip": r"Costas",
|
"backButtonTooltip": r"Costas",
|
||||||
"closeButtonTooltip": r"Fechar",
|
"closeButtonTooltip": r"Fechar",
|
||||||
"nextMonthTooltip": r"Próximo mês",
|
"nextMonthTooltip": r"Próximo mês",
|
||||||
"previousMonthTooltip": r"Mês anterior"
|
"previousMonthTooltip": r"Mês anterior",
|
||||||
|
"licensesPageTitle": r"Licenças",
|
||||||
|
"cancelButtonLabel": r"CANCELAR",
|
||||||
|
"closeButtonLabel": r"FECHAR",
|
||||||
|
"continueButtonLabel": r"CONTINUAR",
|
||||||
|
"copyButtonLabel": r"CÓPIA DE",
|
||||||
|
"cutButtonLabel": r"CORTA",
|
||||||
|
"okButtonLabel": r"OK",
|
||||||
|
"pasteButtonLabel": r"COLAR",
|
||||||
|
"selectAllButtonLabel": r"SELECIONAR TUDO",
|
||||||
|
"viewLicensesButtonLabel": r"VER LICENÇAS"
|
||||||
},
|
},
|
||||||
"es": const <String, String>{
|
"es": const <String, String>{
|
||||||
"openAppDrawerTooltip": r"Abrir el menú de navegación",
|
"openAppDrawerTooltip": r"Abrir el menú de navegación",
|
||||||
"backButtonTooltip": r"Espalda",
|
"backButtonTooltip": r"Espalda",
|
||||||
"closeButtonTooltip": r"Cerrar",
|
"closeButtonTooltip": r"Cerrar",
|
||||||
"nextMonthTooltip": r"Próximo mes",
|
"nextMonthTooltip": r"Próximo mes",
|
||||||
"previousMonthTooltip": r"mes anterior"
|
"previousMonthTooltip": r"Mes anterior",
|
||||||
|
"licensesPageTitle": r"Licencias",
|
||||||
|
"cancelButtonLabel": r"CANCELAR",
|
||||||
|
"closeButtonLabel": r"CERRAR",
|
||||||
|
"continueButtonLabel": r"CONTINUAR",
|
||||||
|
"copyButtonLabel": r"COPIAR",
|
||||||
|
"cutButtonLabel": r"CORTAR",
|
||||||
|
"okButtonLabel": r"OK",
|
||||||
|
"pasteButtonLabel": r"PEGAR",
|
||||||
|
"selectAllButtonLabel": r"SELECCIONAR TODO",
|
||||||
|
"viewLicensesButtonLabel": r"VER LICENCIAS"
|
||||||
},
|
},
|
||||||
"fr": const <String, String>{
|
"fr": const <String, String>{
|
||||||
"openAppDrawerTooltip": r"Ouvrir le menu de navigation",
|
"openAppDrawerTooltip": r"Ouvrir le menu de navigation",
|
||||||
"backButtonTooltip": r"Arrière",
|
"backButtonTooltip": r"Retour",
|
||||||
"closeButtonTooltip": r"Fermer",
|
"closeButtonTooltip": r"Fermer",
|
||||||
"nextMonthTooltip": r"Mois Suivant",
|
"nextMonthTooltip": r"Mois Suivant",
|
||||||
"previousMonthTooltip": r"Le mois précédent"
|
"previousMonthTooltip": r"Mois précédent",
|
||||||
|
"licensesPageTitle": r"Licences",
|
||||||
|
"cancelButtonLabel": r"ANNULER",
|
||||||
|
"closeButtonLabel": r"FERMER",
|
||||||
|
"continueButtonLabel": r"CONTINUER",
|
||||||
|
"copyButtonLabel": r"COPIER",
|
||||||
|
"cutButtonLabel": r"COUPER",
|
||||||
|
"okButtonLabel": r"OK",
|
||||||
|
"pasteButtonLabel": r"COLLER",
|
||||||
|
"selectAllButtonLabel": r"TOUT SÉLECTIONNER",
|
||||||
|
"viewLicensesButtonLabel": r"AFFICHER LES LICENCES"
|
||||||
},
|
},
|
||||||
"zh": const <String, String>{
|
"zh": const <String, String>{
|
||||||
"openAppDrawerTooltip": r"打开导航菜单",
|
"openAppDrawerTooltip": r"打开导航菜单",
|
||||||
"backButtonTooltip": r"背部",
|
"backButtonTooltip": r"返回",
|
||||||
"closeButtonTooltip": r"关",
|
"closeButtonTooltip": r"关闭",
|
||||||
"nextMonthTooltip": r"-下月就29了。",
|
"nextMonthTooltip": r"下一个月",
|
||||||
"previousMonthTooltip": r"前一个月"
|
"previousMonthTooltip": r"上一个月",
|
||||||
|
"licensesPageTitle": r"许可证",
|
||||||
|
"cancelButtonLabel": r"取消",
|
||||||
|
"continueButtonLabel": r"继续",
|
||||||
|
"closeButtonLabel": r"关闭",
|
||||||
|
"copyButtonLabel": r"复制",
|
||||||
|
"cutButtonLabel": r"剪切",
|
||||||
|
"okButtonLabel": r"确定",
|
||||||
|
"pasteButtonLabel": r"粘贴",
|
||||||
|
"selectAllButtonLabel": r"全选",
|
||||||
|
"viewLicensesButtonLabel": r"查看许可证"
|
||||||
},
|
},
|
||||||
"en": const <String, String>{
|
"en": const <String, String>{
|
||||||
"openAppDrawerTooltip": r"Open navigation menu",
|
"openAppDrawerTooltip": r"Open navigation menu",
|
||||||
"backButtonTooltip": r"Back",
|
"backButtonTooltip": r"Back",
|
||||||
"closeButtonTooltip": r"Close",
|
"closeButtonTooltip": r"Close",
|
||||||
"nextMonthTooltip": r"Next month",
|
"nextMonthTooltip": r"Next month",
|
||||||
"previousMonthTooltip": r"Previous month"
|
"previousMonthTooltip": r"Previous month",
|
||||||
|
"licensesPageTitle": r"Licenses",
|
||||||
|
"cancelButtonLabel": r"CANCEL",
|
||||||
|
"closeButtonLabel": r"CLOSE",
|
||||||
|
"continueButtonLabel": r"CONTINUE",
|
||||||
|
"copyButtonLabel": r"COPY",
|
||||||
|
"cutButtonLabel": r"CUT",
|
||||||
|
"okButtonLabel": r"OK",
|
||||||
|
"pasteButtonLabel": r"PASTE",
|
||||||
|
"selectAllButtonLabel": r"SELECT ALL",
|
||||||
|
"viewLicensesButtonLabel": r"VIEW LICENSES"
|
||||||
},
|
},
|
||||||
"de": const <String, String>{
|
"de": const <String, String>{
|
||||||
"openAppDrawerTooltip": r"Navigationsmenü öffnen",
|
"openAppDrawerTooltip": r"Navigationsmenü öffnen",
|
||||||
"backButtonTooltip": r"Zurück",
|
"backButtonTooltip": r"Zurück",
|
||||||
"closeButtonTooltip": r"Schließen ",
|
"closeButtonTooltip": r"Schließen",
|
||||||
"nextMonthTooltip": r"Nächster Monat",
|
"nextMonthTooltip": r"Nächster Monat",
|
||||||
"previousMonthTooltip": r"Letzter Monat"
|
"previousMonthTooltip": r"Vorheriger Monat",
|
||||||
|
"licensesPageTitle": r"Lizenzen",
|
||||||
|
"cancelButtonLabel": r"ABBRECHEN",
|
||||||
|
"closeButtonLabel": r"SCHLIESSEN",
|
||||||
|
"continueButtonLabel": r"FORTSETZEN",
|
||||||
|
"copyButtonLabel": r"KOPIEREN",
|
||||||
|
"cutButtonLabel": r"AUSSCHNEIDEN",
|
||||||
|
"okButtonLabel": r"OK",
|
||||||
|
"pasteButtonLabel": r"EINFÜGEN",
|
||||||
|
"selectAllButtonLabel": r"ALLES AUSWÄHLEN",
|
||||||
|
"viewLicensesButtonLabel": r"LIZENZEN ANZEIGEN"
|
||||||
},
|
},
|
||||||
"ja": const <String, String>{
|
"ja": const <String, String>{
|
||||||
"openAppDrawerTooltip": r"ナビゲーションメニューを開く",
|
"openAppDrawerTooltip": r"ナビゲーションメニューを開く",
|
||||||
"backButtonTooltip": r"バック",
|
"backButtonTooltip": r"戻る",
|
||||||
"closeButtonTooltip": r"閉じる",
|
"closeButtonTooltip": r"閉じる",
|
||||||
"nextMonthTooltip": r"来月",
|
"nextMonthTooltip": r"前の月へ",
|
||||||
"previousMonthTooltip": r"前の月"
|
"previousMonthTooltip": r"前の月へ",
|
||||||
|
"licensesPageTitle": r"ライセンス",
|
||||||
|
"cancelButtonLabel": r"キャンセル",
|
||||||
|
"closeButtonLabel": r"閉じる",
|
||||||
|
"continueButtonLabel": r"次へ",
|
||||||
|
"copyButtonLabel": r"コピー",
|
||||||
|
"cutButtonLabel": r"カット",
|
||||||
|
"okButtonLabel": r"OK",
|
||||||
|
"pasteButtonLabel": r"貼付け",
|
||||||
|
"selectAllButtonLabel": r"全選択",
|
||||||
|
"viewLicensesButtonLabel": r"ライセンス表記"
|
||||||
},
|
},
|
||||||
"ru": const <String, String>{
|
"ru": const <String, String>{
|
||||||
"openAppDrawerTooltip": r"Открыть меню навигации",
|
"openAppDrawerTooltip": r"Открыть меню навигации",
|
||||||
"backButtonTooltip": r"назад",
|
"backButtonTooltip": r"назад",
|
||||||
"closeButtonTooltip": r"Закрыть",
|
"closeButtonTooltip": r"Закрыть",
|
||||||
"nextMonthTooltip": r"В следующем месяце",
|
"nextMonthTooltip": r"В следующем месяце",
|
||||||
"previousMonthTooltip": r"Предыдущий месяц"
|
"previousMonthTooltip": r"Предыдущий месяц",
|
||||||
|
"licensesPageTitle": r"Лицензии",
|
||||||
|
"cancelButtonLabel": r"ОТМЕНА",
|
||||||
|
"closeButtonLabel": r"ЗАКРЫТЬ",
|
||||||
|
"continueButtonLabel": r"ПРОДОЛЖАТЬ",
|
||||||
|
"copyButtonLabel": r"копия",
|
||||||
|
"cutButtonLabel": r"порез",
|
||||||
|
"okButtonLabel": r"ОК",
|
||||||
|
"pasteButtonLabel": r"Паст",
|
||||||
|
"selectAllButtonLabel": r"Выбрать все",
|
||||||
|
"viewLicensesButtonLabel": r"ПРОСМОТРЕТЬ ЛИЦЕНЗИИ"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -3,5 +3,15 @@
|
|||||||
"backButtonTooltip": "الى الخلف",
|
"backButtonTooltip": "الى الخلف",
|
||||||
"closeButtonTooltip": "إغلا",
|
"closeButtonTooltip": "إغلا",
|
||||||
"nextMonthTooltip": "الشهر القادم",
|
"nextMonthTooltip": "الشهر القادم",
|
||||||
"previousMonthTooltip": "الشهر الماضى"
|
"previousMonthTooltip": "الشهر الماضى",
|
||||||
|
"licensesPageTitle": "التّراخيص",
|
||||||
|
"cancelButtonLabel": "إلغاء",
|
||||||
|
"closeButtonLabel": "أغلاق",
|
||||||
|
"continueButtonLabel": "استمر",
|
||||||
|
"copyButtonLabel": "نسخ",
|
||||||
|
"cutButtonLabel": "كِم جارح",
|
||||||
|
"okButtonLabel": "حسنا",
|
||||||
|
"pasteButtonLabel": "عجين",
|
||||||
|
"selectAllButtonLabel": "اختر الكل",
|
||||||
|
"viewLicensesButtonLabel": "عرض التراخيص"
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,17 @@
|
|||||||
{
|
{
|
||||||
"openAppDrawerTooltip": "Navigationsmenü öffnen",
|
"openAppDrawerTooltip": "Navigationsmenü öffnen",
|
||||||
"backButtonTooltip": "Zurück",
|
"backButtonTooltip": "Zurück",
|
||||||
"closeButtonTooltip": "Schließen ",
|
"closeButtonTooltip": "Schließen",
|
||||||
"nextMonthTooltip": "Nächster Monat",
|
"nextMonthTooltip": "Nächster Monat",
|
||||||
"previousMonthTooltip": "Letzter Monat"
|
"previousMonthTooltip": "Vorheriger Monat",
|
||||||
|
"licensesPageTitle": "Lizenzen",
|
||||||
|
"cancelButtonLabel": "ABBRECHEN",
|
||||||
|
"closeButtonLabel": "SCHLIESSEN",
|
||||||
|
"continueButtonLabel": "FORTSETZEN",
|
||||||
|
"copyButtonLabel": "KOPIEREN",
|
||||||
|
"cutButtonLabel": "AUSSCHNEIDEN",
|
||||||
|
"okButtonLabel": "OK",
|
||||||
|
"pasteButtonLabel": "EINFÜGEN",
|
||||||
|
"selectAllButtonLabel": "ALLES AUSWÄHLEN",
|
||||||
|
"viewLicensesButtonLabel": "LIZENZEN ANZEIGEN"
|
||||||
}
|
}
|
||||||
|
@ -27,5 +27,65 @@
|
|||||||
"@previousMonthTooltip": {
|
"@previousMonthTooltip": {
|
||||||
"description": "The tooltip for the MonthPicker's 'previous month' button.",
|
"description": "The tooltip for the MonthPicker's 'previous month' button.",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
|
},
|
||||||
|
|
||||||
|
"licensesPageTitle": "Licenses",
|
||||||
|
"@licensesPageTitle": {
|
||||||
|
"description": "The title for the Flutter licenses page.",
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
|
||||||
|
"cancelButtonLabel": "CANCEL",
|
||||||
|
"@cancelButtonLabel": {
|
||||||
|
"description": "The label for cancel buttons and menu items.",
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
|
||||||
|
"closeButtonLabel": "CLOSE",
|
||||||
|
"@closeButtonLabel": {
|
||||||
|
"description": "The label for close buttons and menu items.",
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
|
||||||
|
"continueButtonLabel": "CONTINUE",
|
||||||
|
"@continueButtonLabel": {
|
||||||
|
"description": "The label for continue buttons and menu items.",
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
|
||||||
|
"copyButtonLabel": "COPY",
|
||||||
|
"@copyButtonLabel": {
|
||||||
|
"description": "The label for copy buttons and menu items.",
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
|
||||||
|
"cutButtonLabel": "CUT",
|
||||||
|
"@cutButtonLabel": {
|
||||||
|
"description": "The label for cut buttons and menu items",
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
|
||||||
|
"okButtonLabel": "OK",
|
||||||
|
"@okButtonLabel": {
|
||||||
|
"description": "The label for OK buttons and menu items.",
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
|
||||||
|
"pasteButtonLabel": "PASTE",
|
||||||
|
"@pasteButtonLabel": {
|
||||||
|
"description": "The label for paste buttons and menu items.",
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
|
||||||
|
"selectAllButtonLabel": "SELECT ALL",
|
||||||
|
"@selectButtonLabel": {
|
||||||
|
"description": "The label for select-all buttons and menu items.",
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
|
||||||
|
"viewLicensesButtonLabel": "VIEW LICENSES",
|
||||||
|
"@viewLicensesButtonLabel": {
|
||||||
|
"description": "The label for the about box's view licenses button.",
|
||||||
|
"type": "text"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,5 +3,15 @@
|
|||||||
"backButtonTooltip": "Espalda",
|
"backButtonTooltip": "Espalda",
|
||||||
"closeButtonTooltip": "Cerrar",
|
"closeButtonTooltip": "Cerrar",
|
||||||
"nextMonthTooltip": "Próximo mes",
|
"nextMonthTooltip": "Próximo mes",
|
||||||
"previousMonthTooltip": "mes anterior"
|
"previousMonthTooltip": "Mes anterior",
|
||||||
|
"licensesPageTitle": "Licencias",
|
||||||
|
"cancelButtonLabel": "CANCELAR",
|
||||||
|
"closeButtonLabel": "CERRAR",
|
||||||
|
"continueButtonLabel": "CONTINUAR",
|
||||||
|
"copyButtonLabel": "COPIAR",
|
||||||
|
"cutButtonLabel": "CORTAR",
|
||||||
|
"okButtonLabel": "OK",
|
||||||
|
"pasteButtonLabel": "PEGAR",
|
||||||
|
"selectAllButtonLabel": "SELECCIONAR TODO",
|
||||||
|
"viewLicensesButtonLabel": "VER LICENCIAS"
|
||||||
}
|
}
|
||||||
|
@ -3,5 +3,15 @@
|
|||||||
"backButtonTooltip": "بازگشت",
|
"backButtonTooltip": "بازگشت",
|
||||||
"closeButtonTooltip": "بستن",
|
"closeButtonTooltip": "بستن",
|
||||||
"nextMonthTooltip": "ماه بعد",
|
"nextMonthTooltip": "ماه بعد",
|
||||||
"previousMonthTooltip": "ماه گذشته"
|
"previousMonthTooltip": "ماه گذشته",
|
||||||
|
"licensesPageTitle": "مجوز",
|
||||||
|
"cancelButtonLabel": "لغو",
|
||||||
|
"closeButtonLabel": "بستن",
|
||||||
|
"continueButtonLabel": "ادامه دهید",
|
||||||
|
"copyButtonLabel": "کپی",
|
||||||
|
"cutButtonLabel": "برش",
|
||||||
|
"okButtonLabel": "تایید",
|
||||||
|
"pasteButtonLabel": "چسباندن",
|
||||||
|
"selectAllButtonLabel": "انتخاب همه",
|
||||||
|
"viewLicensesButtonLabel": "مشاهده مجوز"
|
||||||
}
|
}
|
@ -1,7 +1,17 @@
|
|||||||
{
|
{
|
||||||
"openAppDrawerTooltip": "Ouvrir le menu de navigation",
|
"openAppDrawerTooltip": "Ouvrir le menu de navigation",
|
||||||
"backButtonTooltip": "Arrière",
|
"backButtonTooltip": "Retour",
|
||||||
"closeButtonTooltip": "Fermer",
|
"closeButtonTooltip": "Fermer",
|
||||||
"nextMonthTooltip": "Mois Suivant",
|
"nextMonthTooltip": "Mois Suivant",
|
||||||
"previousMonthTooltip": "Le mois précédent"
|
"previousMonthTooltip": "Mois précédent",
|
||||||
|
"licensesPageTitle": "Licences",
|
||||||
|
"cancelButtonLabel": "ANNULER",
|
||||||
|
"closeButtonLabel": "FERMER",
|
||||||
|
"continueButtonLabel": "CONTINUER",
|
||||||
|
"copyButtonLabel": "COPIER",
|
||||||
|
"cutButtonLabel": "COUPER",
|
||||||
|
"okButtonLabel": "OK",
|
||||||
|
"pasteButtonLabel": "COLLER",
|
||||||
|
"selectAllButtonLabel": "TOUT SÉLECTIONNER",
|
||||||
|
"viewLicensesButtonLabel": "AFFICHER LES LICENCES"
|
||||||
}
|
}
|
||||||
|
@ -3,5 +3,15 @@
|
|||||||
"backButtonTooltip": "אחורה",
|
"backButtonTooltip": "אחורה",
|
||||||
"closeButtonTooltip": "סגור",
|
"closeButtonTooltip": "סגור",
|
||||||
"nextMonthTooltip": "חודש הבא",
|
"nextMonthTooltip": "חודש הבא",
|
||||||
"previousMonthTooltip": "חודש שעבר"
|
"previousMonthTooltip": "חודש שעבר",
|
||||||
|
"licensesPageTitle": "רישיונות",
|
||||||
|
"cancelButtonLabel": "ביטול",
|
||||||
|
"closeButtonLabel": "סגור",
|
||||||
|
"continueButtonLabel": "לְהַמשִׁיך",
|
||||||
|
"copyButtonLabel": "קיבלתי!",
|
||||||
|
"cutButtonLabel": "גזור",
|
||||||
|
"okButtonLabel": "בסדר",
|
||||||
|
"pasteButtonLabel": "הדבק",
|
||||||
|
"selectAllButtonLabel": "בחר הכל",
|
||||||
|
"viewLicensesButtonLabel": "ראה רישיונות"
|
||||||
}
|
}
|
@ -3,5 +3,15 @@
|
|||||||
"backButtonTooltip": "Indietro",
|
"backButtonTooltip": "Indietro",
|
||||||
"closeButtonTooltip": "Chiudi",
|
"closeButtonTooltip": "Chiudi",
|
||||||
"nextMonthTooltip": "Il prossimo mese",
|
"nextMonthTooltip": "Il prossimo mese",
|
||||||
"previousMonthTooltip": "Il mese scorso"
|
"previousMonthTooltip": "Il mese scorso",
|
||||||
|
"licensesPageTitle": "Licenze",
|
||||||
|
"cancelButtonLabel": "ANNULLA",
|
||||||
|
"closeButtonLabel": "CHIUDI",
|
||||||
|
"continueButtonLabel": "CONTINUA",
|
||||||
|
"copyButtonLabel": "COPY",
|
||||||
|
"cutButtonLabel": "TAGLIARE",
|
||||||
|
"okButtonLabel": "OK",
|
||||||
|
"pasteButtonLabel": "INCOLLA",
|
||||||
|
"selectAllButtonLabel": "SELEZIONA TUTTO",
|
||||||
|
"viewLicensesButtonLabel": "VEDI LE LICENZE"
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,17 @@
|
|||||||
{
|
{
|
||||||
"openAppDrawerTooltip": "ナビゲーションメニューを開く",
|
"openAppDrawerTooltip": "ナビゲーションメニューを開く",
|
||||||
"backButtonTooltip": "バック",
|
"backButtonTooltip": "戻る",
|
||||||
"closeButtonTooltip": "閉じる",
|
"closeButtonTooltip": "閉じる",
|
||||||
"nextMonthTooltip": "来月",
|
"nextMonthTooltip": "前の月へ",
|
||||||
"previousMonthTooltip": "前の月"
|
"previousMonthTooltip": "前の月へ",
|
||||||
|
"licensesPageTitle": "ライセンス",
|
||||||
|
"cancelButtonLabel": "キャンセル",
|
||||||
|
"closeButtonLabel": "閉じる",
|
||||||
|
"continueButtonLabel": "次へ",
|
||||||
|
"copyButtonLabel": "コピー",
|
||||||
|
"cutButtonLabel": "カット",
|
||||||
|
"okButtonLabel": "OK",
|
||||||
|
"pasteButtonLabel": "貼付け",
|
||||||
|
"selectAllButtonLabel": "全選択",
|
||||||
|
"viewLicensesButtonLabel": "ライセンス表記"
|
||||||
}
|
}
|
||||||
|
@ -3,5 +3,15 @@
|
|||||||
"backButtonTooltip": "شاته",
|
"backButtonTooltip": "شاته",
|
||||||
"closeButtonTooltip": "بنده",
|
"closeButtonTooltip": "بنده",
|
||||||
"nextMonthTooltip": "بله میاشت",
|
"nextMonthTooltip": "بله میاشت",
|
||||||
"previousMonthTooltip": "تیره میاشت"
|
"previousMonthTooltip": "تیره میاشت",
|
||||||
|
"licensesPageTitle": "جوازونه",
|
||||||
|
"cancelButtonLabel": "لغوه کول",
|
||||||
|
"closeButtonLabel": "تړل",
|
||||||
|
"continueButtonLabel": "منځپانګې",
|
||||||
|
"copyButtonLabel": "کاپی",
|
||||||
|
"cutButtonLabel": "کم کړئ",
|
||||||
|
"okButtonLabel": "سمه ده",
|
||||||
|
"pasteButtonLabel": "پیټ کړئ",
|
||||||
|
"selectAllButtonLabel": "غوره کړئ",
|
||||||
|
"viewLicensesButtonLabel": "لیدلس وګورئ"
|
||||||
}
|
}
|
@ -3,5 +3,15 @@
|
|||||||
"backButtonTooltip": "Costas",
|
"backButtonTooltip": "Costas",
|
||||||
"closeButtonTooltip": "Fechar",
|
"closeButtonTooltip": "Fechar",
|
||||||
"nextMonthTooltip": "Próximo mês",
|
"nextMonthTooltip": "Próximo mês",
|
||||||
"previousMonthTooltip": "Mês anterior"
|
"previousMonthTooltip": "Mês anterior",
|
||||||
|
"licensesPageTitle": "Licenças",
|
||||||
|
"cancelButtonLabel": "CANCELAR",
|
||||||
|
"closeButtonLabel": "FECHAR",
|
||||||
|
"continueButtonLabel": "CONTINUAR",
|
||||||
|
"copyButtonLabel": "CÓPIA DE",
|
||||||
|
"cutButtonLabel": "CORTA",
|
||||||
|
"okButtonLabel": "OK",
|
||||||
|
"pasteButtonLabel": "COLAR",
|
||||||
|
"selectAllButtonLabel": "SELECIONAR TUDO",
|
||||||
|
"viewLicensesButtonLabel": "VER LICENÇAS"
|
||||||
}
|
}
|
||||||
|
@ -3,5 +3,15 @@
|
|||||||
"backButtonTooltip": "назад",
|
"backButtonTooltip": "назад",
|
||||||
"closeButtonTooltip": "Закрыть",
|
"closeButtonTooltip": "Закрыть",
|
||||||
"nextMonthTooltip": "В следующем месяце",
|
"nextMonthTooltip": "В следующем месяце",
|
||||||
"previousMonthTooltip": "Предыдущий месяц"
|
"previousMonthTooltip": "Предыдущий месяц",
|
||||||
|
"licensesPageTitle": "Лицензии",
|
||||||
|
"cancelButtonLabel": "ОТМЕНА",
|
||||||
|
"closeButtonLabel": "ЗАКРЫТЬ",
|
||||||
|
"continueButtonLabel": "ПРОДОЛЖАТЬ",
|
||||||
|
"copyButtonLabel": "копия",
|
||||||
|
"cutButtonLabel": "порез",
|
||||||
|
"okButtonLabel": "ОК",
|
||||||
|
"pasteButtonLabel": "Паст",
|
||||||
|
"selectAllButtonLabel": "Выбрать все",
|
||||||
|
"viewLicensesButtonLabel": "ПРОСМОТРЕТЬ ЛИЦЕНЗИИ"
|
||||||
}
|
}
|
||||||
|
@ -3,5 +3,15 @@
|
|||||||
"backButtonTooltip": "پوئتي",
|
"backButtonTooltip": "پوئتي",
|
||||||
"closeButtonTooltip": "بند ڪريو",
|
"closeButtonTooltip": "بند ڪريو",
|
||||||
"nextMonthTooltip": "ايندڙ مهيني",
|
"nextMonthTooltip": "ايندڙ مهيني",
|
||||||
"previousMonthTooltip": "پويون مهينو"
|
"previousMonthTooltip": "پويون مهينو",
|
||||||
}
|
"licensesPageTitle": "لائسنس",
|
||||||
|
"cancelButtonLabel": "منسوخ ڪيو",
|
||||||
|
"closeButtonLabel": "بند ڪريو",
|
||||||
|
"continueButtonLabel": "جاري رکو",
|
||||||
|
"copyButtonLabel": "ڪاپي",
|
||||||
|
"cutButtonLabel": "پٽي",
|
||||||
|
"okButtonLabel": "ٺيڪ آهي",
|
||||||
|
"pasteButtonLabel": "پيسٽ ڪريو",
|
||||||
|
"selectAllButtonLabel": "سڀ چونڊيو",
|
||||||
|
"viewLicensesButtonLabel": "لائسنس ڏسو"
|
||||||
|
}
|
||||||
|
@ -3,5 +3,15 @@
|
|||||||
"backButtonTooltip": "واپس",
|
"backButtonTooltip": "واپس",
|
||||||
"closeButtonTooltip": "بند کریں",
|
"closeButtonTooltip": "بند کریں",
|
||||||
"nextMonthTooltip": "اگلا مھینہ",
|
"nextMonthTooltip": "اگلا مھینہ",
|
||||||
"previousMonthTooltip": "پچھلا مھینہ"
|
"previousMonthTooltip": "پچھلا مھینہ",
|
||||||
|
"licensesPageTitle": "لائسنس",
|
||||||
|
"cancelButtonLabel": "منسوخ کریں",
|
||||||
|
"closeButtonLabel": "بند کریں",
|
||||||
|
"continueButtonLabel": "جاری رکھیں",
|
||||||
|
"copyButtonLabel": "کاپی",
|
||||||
|
"cutButtonLabel": "کاٹیں",
|
||||||
|
"okButtonLabel": "ٹھیک ہے",
|
||||||
|
"pasteButtonLabel": "چسپاں",
|
||||||
|
"selectAllButtonLabel": "تکاپیمام منتخب کریں",
|
||||||
|
"viewLicensesButtonLabel": "لائسنس دیکھیں"
|
||||||
}
|
}
|
@ -1,7 +1,17 @@
|
|||||||
{
|
{
|
||||||
"openAppDrawerTooltip": "打开导航菜单",
|
"openAppDrawerTooltip": "打开导航菜单",
|
||||||
"backButtonTooltip": "背部",
|
"backButtonTooltip": "返回",
|
||||||
"closeButtonTooltip": "关",
|
"closeButtonTooltip": "关闭",
|
||||||
"nextMonthTooltip": "-下月就29了。",
|
"nextMonthTooltip": "下一个月",
|
||||||
"previousMonthTooltip": "前一个月"
|
"previousMonthTooltip": "上一个月",
|
||||||
|
"licensesPageTitle": "许可证",
|
||||||
|
"cancelButtonLabel": "取消",
|
||||||
|
"continueButtonLabel": "继续",
|
||||||
|
"closeButtonLabel": "关闭",
|
||||||
|
"copyButtonLabel": "复制",
|
||||||
|
"cutButtonLabel": "剪切",
|
||||||
|
"okButtonLabel": "确定",
|
||||||
|
"pasteButtonLabel": "粘贴",
|
||||||
|
"selectAllButtonLabel": "全选",
|
||||||
|
"viewLicensesButtonLabel": "查看许可证"
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,36 @@ abstract class MaterialLocalizations {
|
|||||||
/// The tooltip for the [MonthPicker]'s "previous month" button.
|
/// The tooltip for the [MonthPicker]'s "previous month" button.
|
||||||
String get previousMonthTooltip;
|
String get previousMonthTooltip;
|
||||||
|
|
||||||
|
/// Title for the [LicensePage] widget.
|
||||||
|
String get licensesPageTitle;
|
||||||
|
|
||||||
|
/// Label for "cancel" buttons and menu items.
|
||||||
|
String get cancelButtonLabel;
|
||||||
|
|
||||||
|
/// Label for "close" buttons and menu items.
|
||||||
|
String get closeButtonLabel;
|
||||||
|
|
||||||
|
/// Label for "continue" buttons and menu items.
|
||||||
|
String get continueButtonLabel;
|
||||||
|
|
||||||
|
/// Label for "copy" edit buttons and menu items.
|
||||||
|
String get copyButtonLabel;
|
||||||
|
|
||||||
|
/// Label for "cut" edit buttons and menu items.
|
||||||
|
String get cutButtonLabel;
|
||||||
|
|
||||||
|
/// Label for OK buttons and menu items.
|
||||||
|
String get okButtonLabel;
|
||||||
|
|
||||||
|
/// Label for "paste" edit buttons and menu items.
|
||||||
|
String get pasteButtonLabel;
|
||||||
|
|
||||||
|
/// Label for "select all" edit buttons and menu items.
|
||||||
|
String get selectAllButtonLabel;
|
||||||
|
|
||||||
|
/// Label for the [AboutBox] button that shows the [LicensePage].
|
||||||
|
String get viewLicensesButtonLabel;
|
||||||
|
|
||||||
/// The `MaterialLocalizations` from the closest [Localizations] instance
|
/// The `MaterialLocalizations` from the closest [Localizations] instance
|
||||||
/// that encloses the given context.
|
/// that encloses the given context.
|
||||||
///
|
///
|
||||||
@ -84,6 +114,36 @@ class DefaultMaterialLocalizations implements MaterialLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get previousMonthTooltip => _nameToValue["previousMonthTooltip"];
|
String get previousMonthTooltip => _nameToValue["previousMonthTooltip"];
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get licensesPageTitle => _nameToValue["licensesPageTitle"];
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get cancelButtonLabel => _nameToValue["cancelButtonLabel"];
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get closeButtonLabel => _nameToValue["closeButtonLabel"];
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get continueButtonLabel => _nameToValue["continueButtonLabel"];
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get copyButtonLabel => _nameToValue["copyButtonLabel"];
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get cutButtonLabel => _nameToValue["cutButtonLabel"];
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get okButtonLabel => _nameToValue["okButtonLabel"];
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get pasteButtonLabel => _nameToValue["pasteButtonLabel"];
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get selectAllButtonLabel => _nameToValue["selectAllButtonLabel"];
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get viewLicensesButtonLabel => _nameToValue["viewLicensesButtonLabel"];
|
||||||
|
|
||||||
/// Creates an object that provides localized resource values for the
|
/// Creates an object that provides localized resource values for the
|
||||||
/// for the widgets of the material library.
|
/// for the widgets of the material library.
|
||||||
///
|
///
|
||||||
|
@ -12,6 +12,7 @@ import 'flat_button.dart';
|
|||||||
import 'icons.dart';
|
import 'icons.dart';
|
||||||
import 'ink_well.dart';
|
import 'ink_well.dart';
|
||||||
import 'material.dart';
|
import 'material.dart';
|
||||||
|
import 'material_localizations.dart';
|
||||||
import 'theme.dart';
|
import 'theme.dart';
|
||||||
import 'typography.dart';
|
import 'typography.dart';
|
||||||
|
|
||||||
@ -339,6 +340,7 @@ class _StepperState extends State<Stepper> with TickerProviderStateMixin {
|
|||||||
assert(cancelColor != null);
|
assert(cancelColor != null);
|
||||||
|
|
||||||
final ThemeData themeData = Theme.of(context);
|
final ThemeData themeData = Theme.of(context);
|
||||||
|
final MaterialLocalizations localizations = MaterialLocalizations.of(context);
|
||||||
|
|
||||||
return new Container(
|
return new Container(
|
||||||
margin: const EdgeInsets.only(top: 16.0),
|
margin: const EdgeInsets.only(top: 16.0),
|
||||||
@ -351,7 +353,7 @@ class _StepperState extends State<Stepper> with TickerProviderStateMixin {
|
|||||||
color: _isDark() ? themeData.backgroundColor : themeData.primaryColor,
|
color: _isDark() ? themeData.backgroundColor : themeData.primaryColor,
|
||||||
textColor: Colors.white,
|
textColor: Colors.white,
|
||||||
textTheme: ButtonTextTheme.normal,
|
textTheme: ButtonTextTheme.normal,
|
||||||
child: const Text('CONTINUE'),
|
child: new Text(localizations.continueButtonLabel),
|
||||||
),
|
),
|
||||||
new Container(
|
new Container(
|
||||||
margin: const EdgeInsetsDirectional.only(start: 8.0),
|
margin: const EdgeInsetsDirectional.only(start: 8.0),
|
||||||
@ -359,7 +361,7 @@ class _StepperState extends State<Stepper> with TickerProviderStateMixin {
|
|||||||
onPressed: widget.onStepCancel,
|
onPressed: widget.onStepCancel,
|
||||||
textColor: cancelColor,
|
textColor: cancelColor,
|
||||||
textTheme: ButtonTextTheme.normal,
|
textTheme: ButtonTextTheme.normal,
|
||||||
child: const Text('CANCEL'),
|
child: new Text(localizations.cancelButtonLabel),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -10,6 +10,7 @@ import 'package:flutter/services.dart';
|
|||||||
|
|
||||||
import 'flat_button.dart';
|
import 'flat_button.dart';
|
||||||
import 'material.dart';
|
import 'material.dart';
|
||||||
|
import 'material_localizations.dart';
|
||||||
import 'theme.dart';
|
import 'theme.dart';
|
||||||
|
|
||||||
const double _kHandleSize = 22.0;
|
const double _kHandleSize = 22.0;
|
||||||
@ -39,20 +40,21 @@ class _TextSelectionToolbar extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final List<Widget> items = <Widget>[];
|
final List<Widget> items = <Widget>[];
|
||||||
|
final MaterialLocalizations localizations = MaterialLocalizations.of(context);
|
||||||
|
|
||||||
if (!value.selection.isCollapsed) {
|
if (!value.selection.isCollapsed) {
|
||||||
items.add(new FlatButton(child: const Text('CUT'), onPressed: handleCut));
|
items.add(new FlatButton(child: new Text(localizations.cutButtonLabel), onPressed: handleCut));
|
||||||
items.add(new FlatButton(child: const Text('COPY'), onPressed: handleCopy));
|
items.add(new FlatButton(child: new Text(localizations.copyButtonLabel), onPressed: handleCopy));
|
||||||
}
|
}
|
||||||
items.add(new FlatButton(
|
items.add(new FlatButton(
|
||||||
child: const Text('PASTE'),
|
child: new Text(localizations.pasteButtonLabel),
|
||||||
// TODO(https://github.com/flutter/flutter/issues/11254):
|
// TODO(https://github.com/flutter/flutter/issues/11254):
|
||||||
// This should probably be grayed-out if there is nothing to paste.
|
// This should probably be grayed-out if there is nothing to paste.
|
||||||
onPressed: handlePaste,
|
onPressed: handlePaste,
|
||||||
));
|
));
|
||||||
if (value.text.isNotEmpty) {
|
if (value.text.isNotEmpty) {
|
||||||
if (value.selection.isCollapsed)
|
if (value.selection.isCollapsed)
|
||||||
items.add(new FlatButton(child: const Text('SELECT ALL'), onPressed: handleSelectAll));
|
items.add(new FlatButton(child: new Text(localizations.selectAllButtonLabel), onPressed: handleSelectAll));
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Material(
|
return new Material(
|
||||||
|
@ -15,6 +15,7 @@ import 'colors.dart';
|
|||||||
import 'dialog.dart';
|
import 'dialog.dart';
|
||||||
import 'feedback.dart';
|
import 'feedback.dart';
|
||||||
import 'flat_button.dart';
|
import 'flat_button.dart';
|
||||||
|
import 'material_localizations.dart';
|
||||||
import 'theme.dart';
|
import 'theme.dart';
|
||||||
import 'typography.dart';
|
import 'typography.dart';
|
||||||
|
|
||||||
@ -697,15 +698,16 @@ class _TimePickerDialogState extends State<_TimePickerDialog> {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
final MaterialLocalizations localizations = MaterialLocalizations.of(context);
|
||||||
final Widget actions = new ButtonTheme.bar(
|
final Widget actions = new ButtonTheme.bar(
|
||||||
child: new ButtonBar(
|
child: new ButtonBar(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
new FlatButton(
|
new FlatButton(
|
||||||
child: const Text('CANCEL'),
|
child: new Text(localizations.cancelButtonLabel),
|
||||||
onPressed: _handleCancel
|
onPressed: _handleCancel
|
||||||
),
|
),
|
||||||
new FlatButton(
|
new FlatButton(
|
||||||
child: const Text('OK'),
|
child: new Text(localizations.okButtonLabel),
|
||||||
onPressed: _handleOk
|
onPressed: _handleOk
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
@ -23,9 +23,9 @@ Widget buildFrame({
|
|||||||
}
|
}
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
final Key textKey = new UniqueKey();
|
|
||||||
|
|
||||||
testWidgets('sanity check', (WidgetTester tester) async {
|
testWidgets('sanity check', (WidgetTester tester) async {
|
||||||
|
final Key textKey = new UniqueKey();
|
||||||
|
|
||||||
await tester.pumpWidget(
|
await tester.pumpWidget(
|
||||||
buildFrame(
|
buildFrame(
|
||||||
buildContent: (BuildContext context) {
|
buildContent: (BuildContext context) {
|
||||||
@ -49,4 +49,44 @@ void main() {
|
|||||||
await tester.pump();
|
await tester.pump();
|
||||||
expect(tester.widget<Text>(find.byKey(textKey)).data, 'Back');
|
expect(tester.widget<Text>(find.byKey(textKey)).data, 'Back');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
testWidgets('translations exist for all materia/i18n languages', (WidgetTester tester) async {
|
||||||
|
final List<String> languages = <String>[
|
||||||
|
'ar', // Arabic
|
||||||
|
'de', // German
|
||||||
|
'en', // English
|
||||||
|
'es', // Spanish
|
||||||
|
'fa', // Farsi (Persian)
|
||||||
|
'fr', // French
|
||||||
|
'he', // Hebrew
|
||||||
|
'it', // Italian
|
||||||
|
'ja', // Japanese
|
||||||
|
'ps', // Pashto
|
||||||
|
'pt', // Portugese
|
||||||
|
'ru', // Russian
|
||||||
|
'sd', // Sindhi
|
||||||
|
'ur', // Urdu
|
||||||
|
'zh', // Chinese (simplified)
|
||||||
|
];
|
||||||
|
|
||||||
|
for (String language in languages) {
|
||||||
|
final Locale locale = new Locale(language, '');
|
||||||
|
final MaterialLocalizations localizations = new DefaultMaterialLocalizations(locale);
|
||||||
|
expect(localizations.openAppDrawerTooltip, isNotNull);
|
||||||
|
expect(localizations.backButtonTooltip, isNotNull);
|
||||||
|
expect(localizations.closeButtonTooltip, isNotNull);
|
||||||
|
expect(localizations.nextMonthTooltip, isNotNull);
|
||||||
|
expect(localizations.previousMonthTooltip, isNotNull);
|
||||||
|
expect(localizations.licensesPageTitle, isNotNull);
|
||||||
|
expect(localizations.cancelButtonLabel, isNotNull);
|
||||||
|
expect(localizations.closeButtonLabel, isNotNull);
|
||||||
|
expect(localizations.continueButtonLabel, isNotNull);
|
||||||
|
expect(localizations.copyButtonLabel, isNotNull);
|
||||||
|
expect(localizations.cutButtonLabel, isNotNull);
|
||||||
|
expect(localizations.okButtonLabel, isNotNull);
|
||||||
|
expect(localizations.pasteButtonLabel, isNotNull);
|
||||||
|
expect(localizations.selectAllButtonLabel, isNotNull);
|
||||||
|
expect(localizations.viewLicensesButtonLabel, isNotNull);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
@ -27,34 +27,64 @@ class MockClipboard {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class MaterialLocalizationsDelegate extends LocalizationsDelegate<MaterialLocalizations> {
|
||||||
|
@override
|
||||||
|
Future<MaterialLocalizations> load(Locale locale) => DefaultMaterialLocalizations.load(locale);
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool shouldReload(MaterialLocalizationsDelegate old) => false;
|
||||||
|
}
|
||||||
|
|
||||||
|
class WidgetsLocalizationsDelegate extends LocalizationsDelegate<WidgetsLocalizations> {
|
||||||
|
@override
|
||||||
|
Future<WidgetsLocalizations> load(Locale locale) => DefaultWidgetsLocalizations.load(locale);
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool shouldReload(WidgetsLocalizationsDelegate old) => false;
|
||||||
|
}
|
||||||
|
|
||||||
Widget overlay({ Widget child }) {
|
Widget overlay({ Widget child }) {
|
||||||
return new Directionality(
|
return new Localizations(
|
||||||
textDirection: TextDirection.ltr,
|
locale: const Locale('en', 'US'),
|
||||||
child: new MediaQuery(
|
delegates: <LocalizationsDelegate<dynamic>>[
|
||||||
data: const MediaQueryData(size: const Size(800.0, 600.0)),
|
new WidgetsLocalizationsDelegate(),
|
||||||
child: new Overlay(
|
new MaterialLocalizationsDelegate(),
|
||||||
initialEntries: <OverlayEntry>[
|
],
|
||||||
new OverlayEntry(
|
child: new Directionality(
|
||||||
builder: (BuildContext context) => new Center(
|
textDirection: TextDirection.ltr,
|
||||||
child: new Material(
|
child: new MediaQuery(
|
||||||
child: child,
|
data: const MediaQueryData(size: const Size(800.0, 600.0)),
|
||||||
|
child: new Overlay(
|
||||||
|
initialEntries: <OverlayEntry>[
|
||||||
|
new OverlayEntry(
|
||||||
|
builder: (BuildContext context) => new Center(
|
||||||
|
child: new Material(
|
||||||
|
child: child,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget boilerplate({ Widget child }) {
|
Widget boilerplate({ Widget child }) {
|
||||||
return new Directionality(
|
return new Localizations(
|
||||||
textDirection: TextDirection.ltr,
|
locale: const Locale('en', 'US'),
|
||||||
child: new MediaQuery(
|
delegates: <LocalizationsDelegate<dynamic>>[
|
||||||
data: const MediaQueryData(size: const Size(800.0, 600.0)),
|
new WidgetsLocalizationsDelegate(),
|
||||||
child: new Center(
|
new MaterialLocalizationsDelegate(),
|
||||||
child: new Material(
|
],
|
||||||
child: child,
|
child: new Directionality(
|
||||||
|
textDirection: TextDirection.ltr,
|
||||||
|
child: new MediaQuery(
|
||||||
|
data: const MediaQueryData(size: const Size(800.0, 600.0)),
|
||||||
|
child: new Center(
|
||||||
|
child: new Material(
|
||||||
|
child: child,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user