From 63149d8508c28048188b311a4fc3088bc680ab02 Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sun, 28 Feb 2021 09:56:07 +0800 Subject: [PATCH] flutter: Modify restart dialog button text --- src/ui/flutter_app/lib/l10n/intl_en.arb | 4 ++++ src/ui/flutter_app/lib/l10n/intl_zh.arb | 1 + src/ui/flutter_app/lib/widgets/game_page.dart | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui/flutter_app/lib/l10n/intl_en.arb b/src/ui/flutter_app/lib/l10n/intl_en.arb index 307a3ab8..628db2b8 100644 --- a/src/ui/flutter_app/lib/l10n/intl_en.arb +++ b/src/ui/flutter_app/lib/l10n/intl_en.arb @@ -112,6 +112,10 @@ "@restartGame": { "description": "Restart Game?" }, + "restart": "Restart", + "@restart": { + "description": "Restart" + }, "gameStarted": "Game started, please place", "@gameStarted": { "description": "Game started, please place" diff --git a/src/ui/flutter_app/lib/l10n/intl_zh.arb b/src/ui/flutter_app/lib/l10n/intl_zh.arb index 20fda153..95827b2e 100644 --- a/src/ui/flutter_app/lib/l10n/intl_zh.arb +++ b/src/ui/flutter_app/lib/l10n/intl_zh.arb @@ -28,6 +28,7 @@ "thinking": "对方思考中...", "newGame": "新局", "restartGame": "重新开局?", + "restart": "重开局", "gameStarted": "游戏开始 请落子", "analyzing": "正在分析局面...", "error": "错误", diff --git a/src/ui/flutter_app/lib/widgets/game_page.dart b/src/ui/flutter_app/lib/widgets/game_page.dart index e85a561a..4112f4d7 100644 --- a/src/ui/flutter_app/lib/widgets/game_page.dart +++ b/src/ui/flutter_app/lib/widgets/game_page.dart @@ -275,7 +275,7 @@ class _GamePageState extends State with RouteAware { content: SingleChildScrollView(child: Text(S.of(context).restartGame)), actions: [ - TextButton(child: Text(S.of(context).ok), onPressed: confirm), + TextButton(child: Text(S.of(context).restart), onPressed: confirm), TextButton(child: Text(S.of(context).cancel), onPressed: cancel), ], );