add in translation string

This commit is contained in:
bluepilledgreat 2024-04-23 16:12:37 +01:00
parent 3fb331b459
commit 991c0574a7
3 changed files with 13 additions and 1 deletions

View File

@ -141,7 +141,7 @@ namespace Bloxstrap
// disallow running as administrator except for uninstallation // disallow running as administrator except for uninstallation
if (Utilities.IsAdministrator && !LaunchSettings.IsUninstall) if (Utilities.IsAdministrator && !LaunchSettings.IsUninstall)
{ {
Frontend.ShowMessageBox("Bloxstrap does not support running in administrator mode. Relaunch or reinstall Bloxstrap with lower privileges.", MessageBoxImage.Error); Frontend.ShowMessageBox(Bloxstrap.Resources.Strings.Bootstrapper_RanInAdminMode, MessageBoxImage.Error);
Terminate(ErrorCode.ERROR_INVALID_FUNCTION); Terminate(ErrorCode.ERROR_INVALID_FUNCTION);
return; return;
} }

View File

@ -153,6 +153,15 @@ namespace Bloxstrap.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Bloxstrap does not support running in administrator mode. Relaunch or reinstall Bloxstrap with lower privileges..
/// </summary>
public static string Bootstrapper_RanInAdminMode {
get {
return ResourceManager.GetString("Bootstrapper.RanInAdminMode", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Applying Roblox modifications.... /// Looks up a localized string similar to Applying Roblox modifications....
/// </summary> /// </summary>

View File

@ -150,6 +150,9 @@ Your ReShade configuration files will still be saved, and you can locate them by
<data name="Bootstrapper.NotEnoughSpace" xml:space="preserve"> <data name="Bootstrapper.NotEnoughSpace" xml:space="preserve">
<value>Bloxstrap does not have enough disk space to download and install Roblox. Please free up some disk space and try again.</value> <value>Bloxstrap does not have enough disk space to download and install Roblox. Please free up some disk space and try again.</value>
</data> </data>
<data name="Bootstrapper.RanInAdminMode" xml:space="preserve">
<value>Bloxstrap does not support running in administrator mode. Relaunch or reinstall Bloxstrap with lower privileges.</value>
</data>
<data name="Bootstrapper.Status.ApplyingModifications" xml:space="preserve"> <data name="Bootstrapper.Status.ApplyingModifications" xml:space="preserve">
<value>Applying Roblox modifications...</value> <value>Applying Roblox modifications...</value>
</data> </data>