From edf35e3d6722411886fb62f7d499321741d5c04c Mon Sep 17 00:00:00 2001 From: Mikolka <51335952+mikolka9144@users.noreply.github.com> Date: Mon, 13 Jan 2025 23:52:44 +0100 Subject: [PATCH] add some translations --- source/options/BaseGameSubState.hx | 12 ++++++------ source/substates/PauseSubState.hx | 15 ++++++++------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/source/options/BaseGameSubState.hx b/source/options/BaseGameSubState.hx index 9911c780..40b8df4f 100644 --- a/source/options/BaseGameSubState.hx +++ b/source/options/BaseGameSubState.hx @@ -2,33 +2,33 @@ package options; class BaseGameSubState extends BaseOptionsMenu { public function new() { - title = "V-Slice settings"; + title = Language.getPhrase("vslice_menu","V-Slice settings"); rpcTitle = "V-Slice settings menu"; var option:Option = new Option('Freeplay dynamic coloring', 'Enables dynamic freeplay background color. Disable this if you prefer original V-slice freeplay menu colors', 'vsliceFreeplayColors', - 'bool'); + BOOL); addOption(option); var option:Option = new Option('Use results screen', 'If disabled will skip showing the result screen', 'vsliceResults', - 'bool'); + BOOL); addOption(option); var option:Option = new Option('Smooth health bar', 'If enabled makes health bar move more smoothly', 'vsliceSmoothBar', - 'bool'); + BOOL,); addOption(option); var option:Option = new Option('Special freeplay cards', 'If disabled will force every character to use BF\'s card (including pico)', 'vsliceSpecialCards', - 'bool'); + BOOL); addOption(option); var option:Option = new Option('Force "New" tag', 'If enabled will force every uncompleted song to show "new" tag even if it\'s disabled', 'vsliceForceNewTag', - 'bool'); + BOOL); addOption(option); super(); } diff --git a/source/substates/PauseSubState.hx b/source/substates/PauseSubState.hx index 9000627a..07b7d25a 100644 --- a/source/substates/PauseSubState.hx +++ b/source/substates/PauseSubState.hx @@ -52,12 +52,12 @@ class PauseSubState extends MusicBeatSubstate public function new(inCutscene:Bool = false,type:PauseType = PauseType.CUTSCENE) { super(); cutscene_branding = switch(type){ - case VIDEO: "Video"; - case CUTSCENE: "Cutscene"; - case DIALOGUE: "Dialogue"; + case VIDEO: Language.getPhrase("pause_branding_video","Video"); + case CUTSCENE: Language.getPhrase("pause_branding_cutscene","Cutscene"); + case DIALOGUE: Language.getPhrase("pause_branding_dialogue","Dialogue"); }; - cutscene_resetTxt = 'Restart $cutscene_branding'; - cutscene_skipTxt = 'Skip $cutscene_branding'; + cutscene_resetTxt = Language.getPhrase("pause_branding_restart",'Restart {1}',[cutscene_branding]); + cutscene_skipTxt = Language.getPhrase("pause_branding_skip",'Skip {1}',[cutscene_branding]); this.inVid = inCutscene; } override function create() @@ -119,14 +119,15 @@ class PauseSubState extends MusicBeatSubstate levelInfo.updateHitbox(); add(levelInfo); - var levelDifficulty:FlxText = new FlxText(20, 15 + 32, 0, "Difficulty: "+CoolUtil.FUL(Difficulty.getString()), 32); + var levelDifficulty:FlxText = new FlxText(20, 15 + 32, 0, Language.getPhrase("pause_difficulty","Difficulty: {1}",[CoolUtil.FUL(Difficulty.getString())]), 32); levelDifficulty.scrollFactor.set(); levelDifficulty.setFormat(Paths.font('vcr.ttf'), 32); levelDifficulty.updateHitbox(); add(levelDifficulty); - var ballsTxt = inVid ? '$cutscene_branding Paused' : Language.getPhrase("blueballed", "{1} Blue Balls", [PlayState.deathCounter]); + var ballsTxt = inVid ? Language.getPhrase("pause_branding",'{1} Paused',[cutscene_branding]) : + Language.getPhrase("blueballed", "{1} Blue Balls", [PlayState.deathCounter]); var blueballedTxt:FlxText = new FlxText(20, 15 + 64, 0, ballsTxt , 32); blueballedTxt.scrollFactor.set(); blueballedTxt.setFormat(Paths.font('vcr.ttf'), 32);