From a1eb4b66997c6852b1629d592af8208a22fea219 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 30 Jun 2017 10:57:58 -0400 Subject: [PATCH] Localize skin applied text --- ShiftOS.WinForms/Applications/Shifter.cs | 5 ++++- ShiftOS.WinForms/Resources/strings_en.txt | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ShiftOS.WinForms/Applications/Shifter.cs b/ShiftOS.WinForms/Applications/Shifter.cs index cde0106..e82ad02 100644 --- a/ShiftOS.WinForms/Applications/Shifter.cs +++ b/ShiftOS.WinForms/Applications/Shifter.cs @@ -983,7 +983,10 @@ namespace ShiftOS.WinForms.Applications Utils.WriteAllText(Paths.GetPath("skin.json"), JsonConvert.SerializeObject(LoadedSkin)); SkinEngine.LoadSkin(); CodepointValue = CodepointValue / 4; - Infobox.Show("{SHIFTER_SKIN_APPLIED}", "{YOU_HAVE_EARNED} " + CodepointValue.ToString() + " {CODEPOINTS}."); + Infobox.Show("{TITLE_SKINAPPLIED}", Localization.Parse("{PROMPT_SKINAPPLIED}", new Dictionary + { + ["%cp"] = CodepointValue.ToString() + })); ShiftOS.Engine.Shiftorium.Silent = true; SaveSystem.CurrentSave.Codepoints += CodepointValue; SaveSystem.SaveGame(); diff --git a/ShiftOS.WinForms/Resources/strings_en.txt b/ShiftOS.WinForms/Resources/strings_en.txt index 7740bf0..028aad3 100644 --- a/ShiftOS.WinForms/Resources/strings_en.txt +++ b/ShiftOS.WinForms/Resources/strings_en.txt @@ -109,6 +109,7 @@ //Window titles. "{TITLE_FILENOTFOUND}": "File not found.", + "{TITLE_SKINAPPLIED}":"Shifter - Skin applied.", "{TITLE_PONG_YOULOSE}": "You lose", "{TITLE_CODEPOINTSTRANSFERRED}": "Codepoints transferred.", "{TITLE_INVALIDPORT}": "Invalid port number.", @@ -156,6 +157,7 @@ "{AL_GAMES}": "Games", //Infobox prompt messages + "{PROMPT_SKINAPPLIED}": "New skin values applied! You have earned %cp Codepoints.", "{PROMPT_PONGLOST}": "You lost this game of Pong. Guess you should've cashed out...", "{PROMPT_CODEPOINTSTRANSFERRED}": "%transferrer has transferred %amount Codepoints to your system.", "{PROMPT_INVALIDPORT}": "The Digital Society Port must be a valid whole number between 0 and 65535.",