flutter: Modify restart dialog button text
This commit is contained in:
parent
e90eca6c6f
commit
63149d8508
|
@ -112,6 +112,10 @@
|
||||||
"@restartGame": {
|
"@restartGame": {
|
||||||
"description": "Restart Game?"
|
"description": "Restart Game?"
|
||||||
},
|
},
|
||||||
|
"restart": "Restart",
|
||||||
|
"@restart": {
|
||||||
|
"description": "Restart"
|
||||||
|
},
|
||||||
"gameStarted": "Game started, please place",
|
"gameStarted": "Game started, please place",
|
||||||
"@gameStarted": {
|
"@gameStarted": {
|
||||||
"description": "Game started, please place"
|
"description": "Game started, please place"
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
"thinking": "对方思考中...",
|
"thinking": "对方思考中...",
|
||||||
"newGame": "新局",
|
"newGame": "新局",
|
||||||
"restartGame": "重新开局?",
|
"restartGame": "重新开局?",
|
||||||
|
"restart": "重开局",
|
||||||
"gameStarted": "游戏开始 请落子",
|
"gameStarted": "游戏开始 请落子",
|
||||||
"analyzing": "正在分析局面...",
|
"analyzing": "正在分析局面...",
|
||||||
"error": "错误",
|
"error": "错误",
|
||||||
|
|
|
@ -275,7 +275,7 @@ class _GamePageState extends State<GamePage> with RouteAware {
|
||||||
content:
|
content:
|
||||||
SingleChildScrollView(child: Text(S.of(context).restartGame)),
|
SingleChildScrollView(child: Text(S.of(context).restartGame)),
|
||||||
actions: <Widget>[
|
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),
|
TextButton(child: Text(S.of(context).cancel), onPressed: cancel),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue