Merge pull request #1002 from 1011025m/hardcode-string-fix

Fix hardcoded strings
This commit is contained in:
pizzaboxer 2023-12-06 11:52:01 +00:00 committed by GitHub
commit 2766d133c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 5 deletions

View File

@ -243,6 +243,24 @@ 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 Bloxstrap has successfully installed.
/// </summary>
@ -1426,7 +1444,7 @@ namespace Bloxstrap.Resources {
}
/// <summary>
/// Looks up a localized string similar to Bloxstrap is currently running, likely as a background Roblox process. Please note that not all your changes will immediately apply until you close all currently open Roblox instances.&quot;.
/// Looks up a localized string similar to Bloxstrap is currently running, likely as a background Roblox process. Please note that not all your changes will immediately apply until you close all currently open Roblox instances..
/// </summary>
public static string Menu_AlreadyRunning {
get {

View File

@ -180,6 +180,14 @@ Your ReShade configuration files will still be saved, and you can locate them by
<data name="Bootstrapper.Status.WaitingOtherInstances" xml:space="preserve">
<value>Waiting for other instances...</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="Bootstrapper.SuccessfullyInstalled" xml:space="preserve">
<value>Bloxstrap has successfully installed</value>
</data>
@ -577,7 +585,7 @@ Would you like to upgrade your currently installed version?</value>
<value>All files</value>
</data>
<data name="Menu.AlreadyRunning" xml:space="preserve">
<value>Bloxstrap is currently running, likely as a background Roblox process. Please note that not all your changes will immediately apply until you close all currently open Roblox instances."</value>
<value>Bloxstrap is currently running, likely as a background Roblox process. Please note that not all your changes will immediately apply until you close all currently open Roblox instances.</value>
</data>
<data name="Menu.Appearance.Bootstrapper.Description" xml:space="preserve">
<value>You can make it look different, retro, or even just like Roblox.</value>

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();