Skip to content

Commit

Permalink
Scub a dub dub
Browse files Browse the repository at this point in the history
  • Loading branch information
BigSpice committed Jan 26, 2024
1 parent 4176bec commit e9804ce
Show file tree
Hide file tree
Showing 13 changed files with 127 additions and 10 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 7 additions & 10 deletions VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3340,9 +3340,9 @@ public async Task Unpack_To_Location_Custom(string Target_Zip, string Destinatio
{
Wpf.Ui.Controls.MessageBox Mesagebox = new Wpf.Ui.Controls.MessageBox();

Mesagebox.Title = "PLUGIN DETECTED";
Mesagebox.Title = VTOL.Resources.Languages.Language.PLUGINDETECTED;

Mesagebox.Content = "Please Choose to Install this Plugin onto your device.\nDo be warned that plugins can affect your device in, \nunintended ways. \nplease enusre you trust this mod.";
Mesagebox.Content = VTOL.Resources.Languages.Language.PleaseChooseToInstallThisPluginOntoYourDevice+"\n"+VTOL.Resources.Languages.Language.DoBeWarnedThatPluginsCanAffectYourDeviceIn+"\n"+ VTOL.Resources.Languages.Language.UnintendedWays+"\n"+VTOL.Resources.Languages.Language.PleaseEnusreYouTrustThisMod;
Mesagebox.ButtonLeftName = "Install";
Mesagebox.ButtonRightName = "Delete";
Mesagebox.ButtonLeftAppearance = Wpf.Ui.Common.ControlAppearance.Success;
Expand All @@ -3368,7 +3368,7 @@ public async Task Unpack_To_Location_Custom(string Target_Zip, string Destinatio
SnackBar.Title = VTOL.Resources.Languages.Language.ERROR;
SnackBar.Timeout = 10000;
SnackBar.Appearance = Wpf.Ui.Common.ControlAppearance.Danger;
SnackBar.Message = "The Plugin " + Path.GetFileNameWithoutExtension(Target_Zip).Replace("_", " ") + " has not been installed on your device.";
SnackBar.Message =VTOL.Resources.Languages.Language.ThePlugin + Path.GetFileNameWithoutExtension(Target_Zip).Replace("_", " ") + VTOL.Resources.Languages.Language.HasNotBeenInstalledOnYourDevice;
SnackBar.Show();
return;

Expand Down Expand Up @@ -3399,15 +3399,12 @@ public async Task Unpack_To_Location_Custom(string Target_Zip, string Destinatio

if (manidata.SelectToken("namespace") == null)
{
// Create a new JObject for the namespace
Console.WriteLine("Namespace not found - Inserting : " + namespace_.ToString());
// namespaceObject[namespace__] = namespace_;

manidata["namespace"] = namespace_;


File.WriteAllText(manifest_json, manidata.ToString());

Console.WriteLine("File updated and saved.");
}


Expand All @@ -3423,7 +3420,7 @@ public async Task Unpack_To_Location_Custom(string Target_Zip, string Destinatio
SnackBar.Title = VTOL.Resources.Languages.Language.SUCCESS;
SnackBar.Timeout = 10000;
SnackBar.Appearance = Wpf.Ui.Common.ControlAppearance.Success;
SnackBar.Message = "The Plugin " + Path.GetFileNameWithoutExtension(Target_Zip).Replace("_", " ") + VTOL.Resources.Languages.Language.Page_Thunderstore_Unpack_To_Location_Custom_HasBeenDownloadedAndInstalled;
SnackBar.Message =VTOL.Resources.Languages.Language.ThePlugin + Path.GetFileNameWithoutExtension(Target_Zip).Replace("_", " ") + VTOL.Resources.Languages.Language.Page_Thunderstore_Unpack_To_Location_Custom_HasBeenDownloadedAndInstalled;
SnackBar.Show();

Mesagebox.Close();
Expand All @@ -3447,7 +3444,7 @@ public async Task Unpack_To_Location_Custom(string Target_Zip, string Destinatio
SnackBar.Title = VTOL.Resources.Languages.Language.CAUTION;
SnackBar.Timeout = 10000;
SnackBar.Appearance = Wpf.Ui.Common.ControlAppearance.Caution;
SnackBar.Message = "The Plugin " + Path.GetFileNameWithoutExtension(Target_Zip).Replace("_", " ") + "has been removed and cleaned from your device.";
SnackBar.Message = VTOL.Resources.Languages.Language.ThePlugin + Path.GetFileNameWithoutExtension(Target_Zip).Replace("_", " ") + VTOL.Resources.Languages.Language.HasBeenRemovedAndCleanedFromYourDevice;
SnackBar.Show();

Mesagebox.Close();
Expand Down Expand Up @@ -3981,7 +3978,7 @@ private async Task DownloadZipAsync(DownloadQueueItem item, CancellationToken ca

_myClass.Action_Center.Add(new Action_Card
{
Action = "Downloading From ThunderStore",
Action = VTOL.Resources.Languages.Language.DownloadingFromThunderStore,
Name = name,
Description = item.DestinationPath,
Progress = 0,
Expand Down
90 changes: 90 additions & 0 deletions VTOL_2.0.0/Resources/Languages/Language.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions VTOL_2.0.0/Resources/Languages/Language.resx
Original file line number Diff line number Diff line change
Expand Up @@ -795,4 +795,34 @@
<data name="DownloadWithTheSameURLIsWasAlreadyInProgressOrQueued" xml:space="preserve">
<value>Download with the same URL is was already in progress or queued.</value>
</data>
<data name="DownloadingFromThunderStore" xml:space="preserve">
<value>Downloading From ThunderStore</value>
</data>
<data name="HasNotBeenInstalledOnYourDevice" xml:space="preserve">
<value> has not been installed on your device.</value>
</data>
<data name="PleaseChooseToInstallThisPluginOntoYourDevice" xml:space="preserve">
<value>Please Choose to Install this Plugin onto your device.</value>
</data>
<data name="DoBeWarnedThatPluginsCanAffectYourDeviceIn" xml:space="preserve">
<value>Do be warned that plugins can affect your device in,</value>
</data>
<data name="UnintendedWays" xml:space="preserve">
<value>unintended ways. </value>
</data>
<data name="PleaseEnusreYouTrustThisMod" xml:space="preserve">
<value>please enusre you trust this mod.</value>
</data>
<data name="PLUGINDETECTED" xml:space="preserve">
<value>PLUGIN DETECTED</value>
</data>
<data name="ThePlugin" xml:space="preserve">
<value> "The Plugin </value>
</data>
<data name="HasBeenRemovedAndCleanedFromYourDevice" xml:space="preserve">
<value>has been removed and cleaned from your device.</value>
</data>
<data name="TheMod" xml:space="preserve">
<value>The Mod </value>
</data>
</root>

0 comments on commit e9804ce

Please sign in to comment.