Fix some hardcoded strings

This commit is contained in:
1011025m 2023-12-03 01:22:35 +08:00
parent af68a4f0dd
commit 0875f3adac
4 changed files with 34 additions and 4 deletions

View File

@ -279,6 +279,28 @@ namespace Bloxstrap.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Style preview - Click the X button at the top right to close.
/// </summary>
public static string Bootstrapper_StylePreview_ImageCancel
{
get
{
return ResourceManager.GetString("Bootstrapper.StylePreview.ImageCancel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Style preview - Click Cancel to close.
/// </summary>
public static string Bootstrapper_StylePreview_TextCancel
{
get
{
return ResourceManager.GetString("Bootstrapper.StylePreview.TextCancel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Browse.
/// </summary>

View File

@ -192,6 +192,14 @@ Your ReShade configuration files will still be saved, and you can locate them by
<data name="Bootstrapper.WMFNotFound" xml:space="preserve">
<value>Roblox requires the use of Windows Media Foundation components. You appear to be missing them, likely because you are using an N edition of Windows. Please install them first, and then launch Roblox.</value>
</data>
<data name="Bootstrapper.StylePreview.ImageCancel" xml:space="preserve">
<value>Style preview - Click the X button at the top right to close</value>
<comment>Text for style previews that use an X button. Currently only applies to Byfron</comment>
</data>
<data name="Bootstrapper.StylePreview.TextCancel" xml:space="preserve">
<value>Style preview - Click Cancel to close</value>
<comment>Text for style previews that use text button that says "Cancel"</comment>
</data>
<data name="Common.Browse" xml:space="preserve">
<value>Browse</value>
</data>

View File

@ -79,7 +79,7 @@
<ui:Button Content="{Binding ConfirmButtonText, Mode=OneTime}" Appearance="Primary" Command="{Binding ConfirmSettingsCommand, Mode=OneWay}" IsEnabled="{Binding ConfirmButtonEnabled, Mode=OneWay}" />
</StatusBarItem>
<StatusBarItem Grid.Column="2" Padding="4,0,0,0">
<ui:Button Content="Cancel" Command="{Binding CloseWindowCommand, Mode=OneWay}" />
<ui:Button Content="{x:Static resources:Strings.Common_Cancel}" Command="{Binding CloseWindowCommand, Mode=OneWay}" />
</StatusBarItem>
</StatusBar>
</Grid>

View File

@ -23,9 +23,9 @@ namespace Bloxstrap.UI.ViewModels.Menu
IBootstrapperDialog dialog = App.Settings.Prop.BootstrapperStyle.GetNew();
if (App.Settings.Prop.BootstrapperStyle == BootstrapperStyle.ByfronDialog)
dialog.Message = "Style preview - Click the X button at the top right to close";
dialog.Message = Resources.Strings.Bootstrapper_StylePreview_ImageCancel;
else
dialog.Message = "Style preview - Click Cancel to close";
dialog.Message = Resources.Strings.Bootstrapper_StylePreview_TextCancel;
dialog.CancelEnabled = true;
dialog.ShowBootstrapper();