mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-09-30 17:16:16 +13:00
localise Intro.xaml runtime strings
This commit is contained in:
parent
7908f64b24
commit
8dc0ce4a9b
3 changed files with 17 additions and 4 deletions
|
@ -68,6 +68,10 @@
|
||||||
</Span>
|
</Span>
|
||||||
<sys:String x:Key="Intro:AgreeButton">DEBUG</sys:String>
|
<sys:String x:Key="Intro:AgreeButton">DEBUG</sys:String>
|
||||||
<sys:String x:Key="Intro:DisagreeButton">DEBUG</sys:String>
|
<sys:String x:Key="Intro:DisagreeButton">DEBUG</sys:String>
|
||||||
|
<sys:String x:Key="Intro:ClosingApp">DEBUG</sys:String>
|
||||||
|
<sys:String x:Key="Intro:VersionDownloadFailed">DEBUG</sys:String>
|
||||||
|
<sys:String x:Key="Intro:ModsTabDisabled">DEBUG</sys:String>
|
||||||
|
<sys:String x:Key="Intro:ModsTabEnabled">DEBUG</sys:String>
|
||||||
|
|
||||||
<!-- Mods Page -->
|
<!-- Mods Page -->
|
||||||
<sys:String x:Key="Mods:Title">DEBUG</sys:String>
|
<sys:String x:Key="Mods:Title">DEBUG</sys:String>
|
||||||
|
|
|
@ -83,6 +83,10 @@
|
||||||
</Span>
|
</Span>
|
||||||
<sys:String x:Key="Intro:AgreeButton">I Agree</sys:String>
|
<sys:String x:Key="Intro:AgreeButton">I Agree</sys:String>
|
||||||
<sys:String x:Key="Intro:DisagreeButton">Disagree</sys:String>
|
<sys:String x:Key="Intro:DisagreeButton">Disagree</sys:String>
|
||||||
|
<sys:String x:Key="Intro:ClosingApp">Closing Application: You did not agree to terms and conditions.</sys:String>
|
||||||
|
<sys:String x:Key="Intro:VersionDownloadFailed">Could not download versions list</sys:String>
|
||||||
|
<sys:String x:Key="Intro:ModsTabDisabled">Mods tab disabled. Please restart to try again.</sys:String>
|
||||||
|
<sys:String x:Key="Intro:ModsTabEnabled">You can now use the Mods tab!</sys:String>
|
||||||
|
|
||||||
<!-- Mods Page -->
|
<!-- Mods Page -->
|
||||||
<sys:String x:Key="Mods:Title">Mods</sys:String>
|
<sys:String x:Key="Mods:Title">Mods</sys:String>
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace ModAssistant.Pages
|
||||||
MainWindow.Instance.ModsButton.IsEnabled = false;
|
MainWindow.Instance.ModsButton.IsEnabled = false;
|
||||||
Properties.Settings.Default.Agreed = false;
|
Properties.Settings.Default.Agreed = false;
|
||||||
Properties.Settings.Default.Save();
|
Properties.Settings.Default.Save();
|
||||||
MessageBox.Show("Closing Application: You did not agree to terms and conditions.");
|
MessageBox.Show((string)FindResource("Intro:ClosingApp"));
|
||||||
System.Windows.Application.Current.Shutdown();
|
System.Windows.Application.Current.Shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,13 +47,18 @@ namespace ModAssistant.Pages
|
||||||
{
|
{
|
||||||
if (String.IsNullOrEmpty(MainWindow.GameVersion))
|
if (String.IsNullOrEmpty(MainWindow.GameVersion))
|
||||||
{
|
{
|
||||||
MessageBox.Show("Could not download versions list.\nMods tab disabled. Please restart to try again.");
|
string line1 = (string)FindResource("Intro:VersionDownloadFailed");
|
||||||
|
string line2 = (string)FindResource("Intro:ModsTabDisabled");
|
||||||
|
|
||||||
|
MessageBox.Show($"{line1}.\n{line2}");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MainWindow.Instance.ModsButton.IsEnabled = true;
|
MainWindow.Instance.ModsButton.IsEnabled = true;
|
||||||
Utils.SendNotify("You can now use the Mods tab!");
|
|
||||||
MainWindow.Instance.MainText = "You can now use the Mods tab!";
|
string text = (string)FindResource("Intro:ModsTabEnabled");
|
||||||
|
Utils.SendNotify(text);
|
||||||
|
MainWindow.Instance.MainText = text;
|
||||||
}
|
}
|
||||||
Properties.Settings.Default.Agreed = true;
|
Properties.Settings.Default.Agreed = true;
|
||||||
Properties.Settings.Default.Save();
|
Properties.Settings.Default.Save();
|
||||||
|
|
Loading…
Reference in a new issue