aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-06-30 10:57:58 -0400
committerMichael <[email protected]>2017-06-30 10:57:58 -0400
commita1eb4b66997c6852b1629d592af8208a22fea219 (patch)
tree01b604146f8c46094fd38c593fc8feb385b00670 /ShiftOS.WinForms
parent5dcdd43f68927882a71ed554d051fe5e27c7fdc5 (diff)
downloadshiftos_thereturn-a1eb4b66997c6852b1629d592af8208a22fea219.tar.gz
shiftos_thereturn-a1eb4b66997c6852b1629d592af8208a22fea219.tar.bz2
shiftos_thereturn-a1eb4b66997c6852b1629d592af8208a22fea219.zip
Localize skin applied text
Diffstat (limited to 'ShiftOS.WinForms')
-rw-r--r--ShiftOS.WinForms/Applications/Shifter.cs5
-rw-r--r--ShiftOS.WinForms/Resources/strings_en.txt2
2 files changed, 6 insertions, 1 deletions
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<string, string>
+ {
+ ["%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.",