Skip to content

Commit

Permalink
Fix installer nav buttons not being translated
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Oct 8, 2024
1 parent d297c5a commit c491832
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Bloxstrap/Resources/Strings.Designer.cs

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

4 changes: 4 additions & 0 deletions Bloxstrap/Resources/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1221,4 +1221,8 @@ Would you like to enable test mode?</value>
<data name="About.Translators.Description" xml:space="preserve">
<value>All of Bloxstrap's translations are crowdsourced through [Crowdin]({0}). Everyone listed here are people who generously volunteered their time and effort to help localise Bloxstrap. A massive thank you to everyone here!</value>
</data>
<data name="Common.Navigation.Install" xml:space="preserve">
<value>Install</value>
<comment>The word "Install" is being used as a verb in this instance, like the other navigation button texts of "Next" and "Back"</comment>
</data>
</root>
2 changes: 2 additions & 0 deletions Bloxstrap/UI/Elements/Installer/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
xmlns:base="clr-namespace:Bloxstrap.UI.Elements.Base"
xmlns:resources="clr-namespace:Bloxstrap.Resources"
xmlns:dmodels="clr-namespace:Bloxstrap.UI.ViewModels.Installer"
xmlns:local="clr-namespace:Bloxstrap.UI.Elements.Installer"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance dmodels:MainWindowViewModel, IsDesignTimeCreatable=True}"
Title="{x:Static resources:Strings.Installer_Title}"
Height="540" Width="840" MinWidth="840"
Background="{ui:ThemeResource ApplicationBackgroundBrush}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private void UiPage_Loaded(object sender, RoutedEventArgs e)
{
if (Window.GetWindow(this) is MainWindow window)
{
window.SetNextButtonText("Next");
window.SetNextButtonText(Strings.Common_Navigation_Next);
window.SetButtonEnabled("back", false);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Bloxstrap/UI/Elements/Installer/Pages/InstallPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private void UiPage_Loaded(object sender, RoutedEventArgs e)
{
if (Window.GetWindow(this) is MainWindow window)
{
window.SetNextButtonText("Install");
window.SetNextButtonText(Strings.Common_Navigation_Install);
window.NextPageCallback += NextPageCallback;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Bloxstrap/UI/Elements/Installer/Pages/WelcomePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public WelcomePage()
private void UiPage_Loaded(object sender, RoutedEventArgs e)
{
if (Window.GetWindow(this) is MainWindow window)
window.SetNextButtonText("Next");
window.SetNextButtonText(Strings.Common_Navigation_Next);

_viewModel.DoChecks();
}
Expand Down

0 comments on commit c491832

Please sign in to comment.