flutter: Modify restart dialog button text

This commit is contained in:
Calcitem 2021-02-28 09:56:07 +08:00
parent e90eca6c6f
commit 63149d8508
3 changed files with 6 additions and 1 deletions

View File

@ -112,6 +112,10 @@
"@restartGame": {
"description": "Restart Game?"
},
"restart": "Restart",
"@restart": {
"description": "Restart"
},
"gameStarted": "Game started, please place",
"@gameStarted": {
"description": "Game started, please place"

View File

@ -28,6 +28,7 @@
"thinking": "对方思考中...",
"newGame": "新局",
"restartGame": "重新开局?",
"restart": "重开局",
"gameStarted": "游戏开始 请落子",
"analyzing": "正在分析局面...",
"error": "错误",

View File

@ -275,7 +275,7 @@ class _GamePageState extends State<GamePage> with RouteAware {
content:
SingleChildScrollView(child: Text(S.of(context).restartGame)),
actions: <Widget>[
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),
],
);