From 0e03261f3d732a0722c328ebe7a7e1f05b8ec19d Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 25 Oct 2024 23:11:09 +0500 Subject: upd: line for 'new game' --- assets/i18n/en_us.json | 1 + assets/i18n/ru_ru.json | 1 + core/src/kz/ilotterytea/maxon/localization/LineId.java | 1 + core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/i18n/en_us.json b/assets/i18n/en_us.json index d3894ef..b72f8a3 100644 --- a/assets/i18n/en_us.json +++ b/assets/i18n/en_us.json @@ -1,6 +1,7 @@ { "updater.info": "A new update is available!", + "menu.new_game": "New Game", "menu.continue": "CONTINUE", "menu.reset": "RESET", diff --git a/assets/i18n/ru_ru.json b/assets/i18n/ru_ru.json index 146eb21..b3d740c 100644 --- a/assets/i18n/ru_ru.json +++ b/assets/i18n/ru_ru.json @@ -1,6 +1,7 @@ { "updater.info": "Доступно новое обновление!", + "menu.new_game": "Новая игра", "menu.continue": "ПРОДОЛЖИТЬ", "menu.reset": "СБРОСИТЬ", diff --git a/core/src/kz/ilotterytea/maxon/localization/LineId.java b/core/src/kz/ilotterytea/maxon/localization/LineId.java index b38eca7..6ae3000 100644 --- a/core/src/kz/ilotterytea/maxon/localization/LineId.java +++ b/core/src/kz/ilotterytea/maxon/localization/LineId.java @@ -7,6 +7,7 @@ import java.util.Locale; public enum LineId { UpdaterInfo, + MenuNewgame, MenuContinue, MenuReset, diff --git a/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java b/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java index 364a793..677f0ca 100644 --- a/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java +++ b/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java @@ -60,7 +60,7 @@ public class SavegameWidget extends Table implements Disposable { private void createEmpty() { Table body = new Table(); - Label label = new Label("New Game", skin, styleName); + Label label = new Label(game.getLocale().getLine(LineId.MenuNewgame), skin, styleName); label.setAlignment(Align.center); body.add(label).grow().row(); -- cgit v1.2.3