Skip to content

Commit

Permalink
Why did I do title translations the dumb way instead of the smart way?
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Apr 3, 2024
1 parent 372bc67 commit f843c2c
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/WindowOldVideoCacheManager.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
lex:ResxLocalizationProvider.DefaultAssembly="TwitchDownloaderWPF"
lex:ResxLocalizationProvider.DefaultDictionary="Strings"
mc:Ignorable="d"
Title="Select Caches To Delete" MinHeight="350" MinWidth="500" Height="450" Width="800" Loaded="OnLoaded" Closing="OnClosing" d:DataContext="{d:DesignInstance local:WindowOldVideoCacheManager}">
Title="{lex:Loc TitleWindowOldVideoCacheManager}" MinHeight="350" MinWidth="500" Height="450" Width="800" Loaded="OnLoaded" Closing="OnClosing" d:DataContext="{d:DesignInstance local:WindowOldVideoCacheManager}">
<Window.Resources>
<Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
<Setter Property="behave:TextBoxTripleClickBehavior.TripleClickSelectLine" Value="True" />
Expand Down
1 change: 0 additions & 1 deletion TwitchDownloaderWPF/WindowOldVideoCacheManager.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public WindowOldVideoCacheManager(IEnumerable<DirectoryInfo> directories)

private void OnLoaded(object sender, RoutedEventArgs e)
{
Title = Translations.Strings.TitleWindowOldVideoCacheManager;
App.RequestTitleBarChange();

// For some stupid reason, this does not work unless I manually set it, even though its a binding
Expand Down
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/WindowQueueOptions.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
lex:ResxLocalizationProvider.DefaultAssembly="TwitchDownloaderWPF"
lex:ResxLocalizationProvider.DefaultDictionary="Strings"
mc:Ignorable="d"
Title="Queue Options" MinHeight="280" Height="280" MinWidth="500" Width="500" SizeToContent="WidthAndHeight" Loaded="Window_loaded" Background="{DynamicResource AppBackground}">
Title="{lex:Loc TitleEnqueueOptions}" MinHeight="280" Height="280" MinWidth="500" Width="500" SizeToContent="WidthAndHeight" Loaded="Window_loaded" Background="{DynamicResource AppBackground}">
<Window.Resources>
<Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
<Setter Property="behave:TextBoxTripleClickBehavior.TripleClickSelectLine" Value="True" />
Expand Down
1 change: 0 additions & 1 deletion TwitchDownloaderWPF/WindowQueueOptions.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,6 @@ private void radioHTML_Checked(object sender, RoutedEventArgs e)

private void Window_loaded(object sender, RoutedEventArgs e)
{
Title = Translations.Strings.TitleEnqueueOptions;
App.RequestTitleBarChange();
}

Expand Down
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/WindowRangeSelect.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
lex:ResxLocalizationProvider.DefaultAssembly="TwitchDownloaderWPF"
lex:ResxLocalizationProvider.DefaultDictionary="Strings"
mc:Ignorable="d"
Title="Select Render Range (Seconds)" Height="150" Width="400" Background="#FFEFEFEF" Initialized="Window_Initialized" Loaded="Window_Loaded">
Title="{lex:Loc TitleRenderRange}" Height="150" Width="400" Background="#FFEFEFEF" Initialized="Window_Initialized" Loaded="Window_Loaded">
<Window.Resources>
<Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
<Setter Property="behave:TextBoxTripleClickBehavior.TripleClickSelectLine" Value="True" />
Expand Down
1 change: 0 additions & 1 deletion TwitchDownloaderWPF/WindowRangeSelect.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ private void numEnd_TextChanged(object sender, TextChangedEventArgs e)

private void Window_Loaded(object sender, RoutedEventArgs e)
{
Title = Translations.Strings.TitleRenderRange;
App.RequestTitleBarChange();
}
}
Expand Down
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/WindowSettings.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
xmlns:hc="https://handyorg.github.io/handycontrol"
xmlns:fa="http://schemas.fontawesome.com/icons/"
mc:Ignorable="d"
Title="Global Settings" MinWidth="400" MinHeight="500" Width="500" Height="592" SizeToContent="Height" Initialized="Window_Initialized" Closing="Window_Closing" Loaded="Window_Loaded" Background="{DynamicResource AppBackground}">
Title="{lex:Loc TitleGlobalSettings}" MinWidth="400" MinHeight="500" Width="500" Height="592" SizeToContent="Height" Initialized="Window_Initialized" Closing="Window_Closing" Loaded="Window_Loaded" Background="{DynamicResource AppBackground}">
<Window.Resources>
<Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
<Setter Property="behave:TextBoxTripleClickBehavior.TripleClickSelectLine" Value="True" />
Expand Down
2 changes: 0 additions & 2 deletions TwitchDownloaderWPF/WindowSettings.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ private void BtnClearCache_Click(object sender, RoutedEventArgs e)

private void Window_Loaded(object sender, RoutedEventArgs e)
{
Title = Translations.Strings.TitleGlobalSettings;
App.RequestTitleBarChange();
}

Expand Down Expand Up @@ -191,7 +190,6 @@ private void ComboLocale_OnSelectionChanged(object sender, SelectionChangedEvent
_refreshCultureOnCancel = true;
Settings.Default.GuiCulture = selectedCulture;
App.RequestCultureChange();
Title = Translations.Strings.TitleGlobalSettings;
}
}

Expand Down
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/WindowUrlList.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
lex:ResxLocalizationProvider.DefaultAssembly="TwitchDownloaderWPF"
lex:ResxLocalizationProvider.DefaultDictionary="Strings"
mc:Ignorable="d"
Title="Mass Download URL List" MinHeight="590" Height="600" MinWidth="485" Width="500" Loaded="Window_Loaded">
Title="{lex:Loc TitleUrlList}" MinHeight="590" Height="600" MinWidth="485" Width="500" Loaded="Window_Loaded">
<Window.Resources>
<Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
<Setter Property="behave:TextBoxTripleClickBehavior.TripleClickSelectLine" Value="True" />
Expand Down
1 change: 0 additions & 1 deletion TwitchDownloaderWPF/WindowUrlList.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ private async void btnQueue_Click(object sender, RoutedEventArgs e)

private void Window_Loaded(object sender, RoutedEventArgs e)
{
Title = Translations.Strings.TitleUrlList;
App.RequestTitleBarChange();
}
}
Expand Down

0 comments on commit f843c2c

Please sign in to comment.