update localisation

This commit is contained in:
bluepilledgreat 2025-03-16 11:18:23 +00:00
parent 4d50381115
commit a037c9f867
4 changed files with 20 additions and 8 deletions

View File

@ -188,7 +188,7 @@ namespace Bloxstrap.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Failed to extract all files. /// Looks up a localized string similar to Failed to extract files.
/// </summary> /// </summary>
public static string Bootstrapper_ExtractionFailed_Title { public static string Bootstrapper_ExtractionFailed_Title {
get { get {
@ -235,7 +235,7 @@ namespace Bloxstrap.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Failed to apply all modifications. /// Looks up a localized string similar to Failed to apply modifications.
/// </summary> /// </summary>
public static string Bootstrapper_ModificationsFailed_Title { public static string Bootstrapper_ModificationsFailed_Title {
get { get {
@ -991,6 +991,15 @@ namespace Bloxstrap.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Failed to preview theme: {0}.
/// </summary>
public static string CustomTheme_Editor_Errors_PreviewFailed {
get {
return ResourceManager.GetString("CustomTheme.Editor.Errors.PreviewFailed", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Open Theme Directory. /// Looks up a localized string similar to Open Theme Directory.
/// </summary> /// </summary>
@ -1218,7 +1227,7 @@ namespace Bloxstrap.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Custom bootstrappers can only have a maximum of {0} elements, got {1}.. /// Looks up a localized string similar to Custom bootstrappers can only have a maximum of {0} elements, got {1}.
/// </summary> /// </summary>
public static string CustomTheme_Errors_TooManyElements { public static string CustomTheme_Errors_TooManyElements {
get { get {

View File

@ -1274,13 +1274,13 @@ Please close any applications that may be using Roblox's files, and relaunch.</v
<value>Roblox no longer supports Windows 7 or 8.1. To continue playing Roblox, please upgrade to Windows 10 or newer.</value> <value>Roblox no longer supports Windows 7 or 8.1. To continue playing Roblox, please upgrade to Windows 10 or newer.</value>
</data> </data>
<data name="Bootstrapper.ExtractionFailed.Title" xml:space="preserve"> <data name="Bootstrapper.ExtractionFailed.Title" xml:space="preserve">
<value>Failed to extract all files</value> <value>Failed to extract files</value>
</data> </data>
<data name="Bootstrapper.ExtractionFailed.Message" xml:space="preserve"> <data name="Bootstrapper.ExtractionFailed.Message" xml:space="preserve">
<value>Some content may be missing. Force a Roblox reinstallation in settings to fix this.</value> <value>Some content may be missing. Force a Roblox reinstallation in settings to fix this.</value>
</data> </data>
<data name="Bootstrapper.ModificationsFailed.Title" xml:space="preserve"> <data name="Bootstrapper.ModificationsFailed.Title" xml:space="preserve">
<value>Failed to apply all modifications</value> <value>Failed to apply modifications</value>
</data> </data>
<data name="Bootstrapper.ModificationsFailed.Message" xml:space="preserve"> <data name="Bootstrapper.ModificationsFailed.Message" xml:space="preserve">
<value>Not all modifications will be present in the current launch.</value> <value>Not all modifications will be present in the current launch.</value>
@ -1302,7 +1302,7 @@ Please close any applications that may be using Roblox's files, and relaunch.</v
<value>Custom dialog has already been initialised</value> <value>Custom dialog has already been initialised</value>
</data> </data>
<data name="CustomTheme.Errors.TooManyElements" xml:space="preserve"> <data name="CustomTheme.Errors.TooManyElements" xml:space="preserve">
<value>Custom bootstrappers can only have a maximum of {0} elements, got {1}.</value> <value>Custom bootstrappers can only have a maximum of {0} elements, got {1}</value>
<comment>{0} and {1} are numbers</comment> <comment>{0} and {1} are numbers</comment>
</data> </data>
<data name="CustomTheme.Errors.VersionNotSet" xml:space="preserve"> <data name="CustomTheme.Errors.VersionNotSet" xml:space="preserve">
@ -1496,4 +1496,7 @@ Defaulting to {1}.</value>
<data name="CustomTheme.Editor.Save.Success.Description" xml:space="preserve"> <data name="CustomTheme.Editor.Save.Success.Description" xml:space="preserve">
<value>Your theme has been saved!</value> <value>Your theme has been saved!</value>
</data> </data>
<data name="CustomTheme.Editor.Errors.PreviewFailed" xml:space="preserve">
<value>Failed to preview theme: {0}</value>
</data>
</root> </root>

View File

@ -416,7 +416,7 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
private static UIElement HandleXmlElement_BloxstrapCustomBootstrapper_Fake(CustomDialog dialog, XElement xmlElement) private static UIElement HandleXmlElement_BloxstrapCustomBootstrapper_Fake(CustomDialog dialog, XElement xmlElement)
{ {
// this only exists to error out the theme if someone tries to use two BloxstrapCustomBootstrappers // this only exists to error out the theme if someone tries to use two BloxstrapCustomBootstrappers
throw new Exception($"{xmlElement.Parent!.Name} cannot have a child of {xmlElement.Name}"); throw new CustomThemeException("CustomTheme.Errors.ElementInvalidChild", xmlElement.Parent!.Name, xmlElement.Name);
} }
private static DummyFrameworkElement HandleXmlElement_TitleBar(CustomDialog dialog, XElement xmlElement) private static DummyFrameworkElement HandleXmlElement_TitleBar(CustomDialog dialog, XElement xmlElement)

View File

@ -50,7 +50,7 @@ namespace Bloxstrap.UI.ViewModels.Editor
App.Logger.WriteLine(LOG_IDENT, "Failed to preview custom theme"); App.Logger.WriteLine(LOG_IDENT, "Failed to preview custom theme");
App.Logger.WriteException(LOG_IDENT, ex); App.Logger.WriteException(LOG_IDENT, ex);
Frontend.ShowMessageBox($"Failed to preview theme: {ex.Message}", MessageBoxImage.Error, MessageBoxButton.OK); Frontend.ShowMessageBox(string.Format(Strings.CustomTheme_Editor_Errors_PreviewFailed, ex.Message), MessageBoxImage.Error, MessageBoxButton.OK);
} }
} }