From ce2fda75952468c91e93c662047e4ff2fba5489d Mon Sep 17 00:00:00 2001 From: Jack Baron Date: Sun, 2 Feb 2020 04:00:52 +0000 Subject: [PATCH] Extract static strings to i18n system --- ModAssistant/Localisation/en-US.xaml | 146 ++++++++++++++++++++++++++- ModAssistant/MainWindow.xaml | 42 ++++---- ModAssistant/Pages/About.xaml | 56 +++++----- ModAssistant/Pages/Intro.xaml | 35 ++++--- ModAssistant/Pages/Invalid.xaml | 42 ++++---- ModAssistant/Pages/Mods.xaml | 14 +-- ModAssistant/Pages/Options.xaml | 40 ++++---- 7 files changed, 251 insertions(+), 124 deletions(-) diff --git a/ModAssistant/Localisation/en-US.xaml b/ModAssistant/Localisation/en-US.xaml index ccacf52..cbcb3cd 100644 --- a/ModAssistant/Localisation/en-US.xaml +++ b/ModAssistant/Localisation/en-US.xaml @@ -1,10 +1,146 @@ - + xmlns:sys="clr-namespace:System;assembly=mscorlib" + xmlns:local="clr-namespace:ModAssistant"> i18n:en-US - ModAssistant + + ModAssistant + Intro + Mods + About + Options + Game Version + Version + Mod Info + Install + or Update - I Agree - Disagree + + Intro + Welcome to Mod Assistant + Please read this page entirely and carefully + + By using this program attest to have read and agree to the following terms: + + + Beat Saber + does not natively support mods. This means: + + + Mods + will break every update. This is normal, and + not Beat Games' fault. + + + Mods + will cause bugs and performance issues. This is + not Beat Games' fault. + + + Mods are made for + free by people in their + free time. Please be patient and understanding. + + + DO NOT leave negative reviews because mods broke. This is + not Beat Games' fault. + They are not trying to kill mods. + + + If I keep seeing people leave negative reviews + because mods broke, + + I will personally kill mods with a rusty spoon + + + Please read the Beginners Guide on the + + Wiki + . + + I Agree + Disagree + + + Mods + Name + Installed + Latest + Description + Uninstall + + + About + About Mod Assistant + I'm Assistant, and I made Mod Assistant for mod assistance, with a few principles in mind: + Simplicity + Portability + Single Executable + Responsible use + + If you enjoy this program and would like to support me, please visit my + + donation page + + or my + + Patreon + + + Special Thanks ♥ + Donate + Headpats + Hugs + + + Options + Settings + Install Folder + Select Folder + Open Folder + Save Selected Mods + Check Installed Mods + Select Installed Mods + Enable OneClick™ Installs + BeatSaver + ModelSaber + Game Type + Steam + Oculus + Diagnostics + Open Logs + Uninstall BSIPA + Remove All Mods + + + Invalid + Invalid Installation Detected + Your game installation is corrupted or otherwise invalid + This can happen if your copy of the game is pirated, or if you copied a pirated copy over your legit install + + If your copy of the game is pirated, + please purchase the game + + HERE + . + + + + If your copy of the game is + not pirated, please + + do a clean install + . + + + If those don't help, ask for support in the + #support channel in + + BSMG + . + + If you used to have a pirated version but have since bought the game + Select Folder + You will need to restart Mod Assistant after changing to the legit install diff --git a/ModAssistant/MainWindow.xaml b/ModAssistant/MainWindow.xaml index 44adbc5..1e05255 100644 --- a/ModAssistant/MainWindow.xaml +++ b/ModAssistant/MainWindow.xaml @@ -6,7 +6,7 @@ xmlns:local="clr-namespace:ModAssistant" mc:Ignorable="d" Icon="Resources/icon.ico" - Title="{DynamicResource WindowTitle}" Width="1280" Height="720" + Title="{DynamicResource MainWindow:WindowTitle}" Width="1280" Height="720" UIElement.PreviewMouseDown="Window_PreviewMouseDown"> @@ -31,41 +31,43 @@ - - + + : + + - + @@ -81,21 +83,15 @@ diff --git a/ModAssistant/Pages/About.xaml b/ModAssistant/Pages/About.xaml index a7ab452..0388a86 100644 --- a/ModAssistant/Pages/About.xaml +++ b/ModAssistant/Pages/About.xaml @@ -1,4 +1,4 @@ - + Title="{DynamicResource About:Title}"> @@ -27,30 +27,30 @@ - About Mod Assistant - - I'm Assistant, and I made Mod Assistant for mod assistance, with a few principles in mind: + + + + + + • + + + • + + + • + + + • - - - - - If you enjoy this program and would like to support me, please visit my - - donation page - - or my - - Patreon - + - - + + - @@ -72,15 +72,15 @@ Inspiration Creating the Mod Manager - - Donate + + - + - + lolPants @@ -89,16 +89,16 @@ The first Mod repository - Donate + - + - diff --git a/ModAssistant/Pages/Invalid.xaml b/ModAssistant/Pages/Invalid.xaml index 48b3ac9..4e6d040 100644 --- a/ModAssistant/Pages/Invalid.xaml +++ b/ModAssistant/Pages/Invalid.xaml @@ -1,4 +1,4 @@ - + Title="{DynamicResource Invalid:Title}"> @@ -27,40 +27,32 @@ - Invalid Installation Detected - Your game installation is corrupted or otherwise invalid - This can happen if your copy of the game is pirated, or if you copied a pirated copy over your legit install + + + - If your copy of the game is pirated, - please purchase the game - - HERE - . - + - If your copy of the game is not pirated, please - - do a clean install - . + - If those don't help, ask for support in the #support channel in - - BSMG - . + - - If you used to have a pirated version but have since bought the game: + + + : + -