From 6cd8e43f85958f46086eadfd9130b69c7b0f62fd Mon Sep 17 00:00:00 2001
From: David Kallesen <david@lmdk.dk>
Date: Thu, 21 Mar 2024 01:01:26 +0100
Subject: [PATCH] feat: Add missing translation for "Open recent file on
 startup"

---
 src/Atc.Wpf.Controls/Resources/Miscellaneous.Designer.cs | 9 +++++++++
 src/Atc.Wpf.Controls/Resources/Miscellaneous.da-DK.resx  | 3 +++
 src/Atc.Wpf.Controls/Resources/Miscellaneous.de-DE.resx  | 3 +++
 src/Atc.Wpf.Controls/Resources/Miscellaneous.resx        | 3 +++
 .../SettingsControls/BasicApplicationSettingsView.xaml   | 4 +++-
 5 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/src/Atc.Wpf.Controls/Resources/Miscellaneous.Designer.cs b/src/Atc.Wpf.Controls/Resources/Miscellaneous.Designer.cs
index dd60151a..72bc1b71 100644
--- a/src/Atc.Wpf.Controls/Resources/Miscellaneous.Designer.cs
+++ b/src/Atc.Wpf.Controls/Resources/Miscellaneous.Designer.cs
@@ -177,6 +177,15 @@ public static string Ok {
             }
         }
         
+        /// <summary>
+        ///   Looks up a localized string similar to Open recent file on startup.
+        /// </summary>
+        public static string OpenRecentFileOnStartup {
+            get {
+                return ResourceManager.GetString("OpenRecentFileOnStartup", resourceCulture);
+            }
+        }
+        
         /// <summary>
         ///   Looks up a localized string similar to Please wait.
         /// </summary>
diff --git a/src/Atc.Wpf.Controls/Resources/Miscellaneous.da-DK.resx b/src/Atc.Wpf.Controls/Resources/Miscellaneous.da-DK.resx
index 0eca524b..3757ccae 100644
--- a/src/Atc.Wpf.Controls/Resources/Miscellaneous.da-DK.resx
+++ b/src/Atc.Wpf.Controls/Resources/Miscellaneous.da-DK.resx
@@ -171,4 +171,7 @@
   <data name="ColorPicker" xml:space="preserve">
     <value>Farvevælger</value>
   </data>
+  <data name="OpenRecentFileOnStartup" xml:space="preserve">
+    <value>Åbn den seneste fil ved opstart</value>
+  </data>
 </root>
\ No newline at end of file
diff --git a/src/Atc.Wpf.Controls/Resources/Miscellaneous.de-DE.resx b/src/Atc.Wpf.Controls/Resources/Miscellaneous.de-DE.resx
index 7d40beb8..164179ad 100644
--- a/src/Atc.Wpf.Controls/Resources/Miscellaneous.de-DE.resx
+++ b/src/Atc.Wpf.Controls/Resources/Miscellaneous.de-DE.resx
@@ -171,4 +171,7 @@
   <data name="ColorPicker" xml:space="preserve">
     <value>Farbwähler</value>
   </data>
+  <data name="OpenRecentFileOnStartup" xml:space="preserve">
+    <value>Öffnen Sie die zuletzt verwendete Datei beim Start</value>
+  </data>
 </root>
\ No newline at end of file
diff --git a/src/Atc.Wpf.Controls/Resources/Miscellaneous.resx b/src/Atc.Wpf.Controls/Resources/Miscellaneous.resx
index e23fc528..22385646 100644
--- a/src/Atc.Wpf.Controls/Resources/Miscellaneous.resx
+++ b/src/Atc.Wpf.Controls/Resources/Miscellaneous.resx
@@ -156,6 +156,9 @@
   <data name="Ok" xml:space="preserve">
     <value>OK</value>
   </data>
+  <data name="OpenRecentFileOnStartup" xml:space="preserve">
+    <value>Open recent file on startup</value>
+  </data>
   <data name="PleaseWait" xml:space="preserve">
     <value>Please wait</value>
   </data>
diff --git a/src/Atc.Wpf.Controls/SettingsControls/BasicApplicationSettingsView.xaml b/src/Atc.Wpf.Controls/SettingsControls/BasicApplicationSettingsView.xaml
index e2e26e12..f0a2eefb 100644
--- a/src/Atc.Wpf.Controls/SettingsControls/BasicApplicationSettingsView.xaml
+++ b/src/Atc.Wpf.Controls/SettingsControls/BasicApplicationSettingsView.xaml
@@ -3,6 +3,7 @@
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:atc="https://github.com/atc-net/atc-wpf/tree/main/schemas"
+    xmlns:atcTranslation="https://github.com/atc-net/atc-wpf/tree/main/schemas/translations"
     xmlns:atcValueConverters="https://github.com/atc-net/atc-wpf/tree/main/schemas/value-converters"
     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
     xmlns:labelControls="clr-namespace:Atc.Wpf.Controls.LabelControls"
@@ -29,7 +30,8 @@
         <labelControls:LabelCheckBox
             HideAreas="InformationAndValidation"
             IsChecked="{Binding Path=OpenRecentFileOnStartup}"
-            LabelText="?Open recent file on startup"
+            LabelText="{atcTranslation:Resx ResxName=Atc.Wpf.Controls.Resources.Miscellaneous,
+                                            Key=OpenRecentFileOnStartup}"
             LabelWidthNumber="210"
             Visibility="{Binding Path=ShowOpenRecentFileOnStartup, Converter={StaticResource BoolToVisibilityVisibleValueConverter}}" />