diff --git a/BililiveRecorder.WPF/Controls/WorkDirectorySelectorDialog.xaml b/BililiveRecorder.WPF/Controls/WorkDirectorySelectorDialog.xaml
index af74e04..403833e 100644
--- a/BililiveRecorder.WPF/Controls/WorkDirectorySelectorDialog.xaml
+++ b/BililiveRecorder.WPF/Controls/WorkDirectorySelectorDialog.xaml
@@ -6,12 +6,15 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ui="http://schemas.modernwpf.com/2019"
xmlns:l="https://github.com/XAMLMarkupExtensions/WPFLocalizationExtension"
+ l:LocalizeDictionary.DesignCulture=""
+ l:ResxLocalizationProvider.DefaultAssembly="BililiveRecorder.WPF"
+ l:ResxLocalizationProvider.DefaultDictionary="Strings"
xmlns:local="clr-namespace:BililiveRecorder.WPF.Controls"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance Type=local:WorkDirectorySelectorDialog}"
- PrimaryButtonText="确定"
DefaultButton="Primary"
- CloseButtonText="退出">
+ PrimaryButtonText="{l:Loc Global_Confirm}"
+ CloseButtonText="{l:Loc Global_Quit}">
@@ -20,7 +23,7 @@
-
+
-
diff --git a/BililiveRecorder.WPF/Properties/Strings.Designer.cs b/BililiveRecorder.WPF/Properties/Strings.Designer.cs
index fe5e758..e903bc5 100644
--- a/BililiveRecorder.WPF/Properties/Strings.Designer.cs
+++ b/BililiveRecorder.WPF/Properties/Strings.Designer.cs
@@ -60,6 +60,24 @@ namespace BililiveRecorder.WPF.Properties {
}
}
+ ///
+ /// Looks up a localized string similar to 确定.
+ ///
+ public static string Global_Confirm {
+ get {
+ return ResourceManager.GetString("Global_Confirm", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to 退出.
+ ///
+ public static string Global_Quit {
+ get {
+ return ResourceManager.GetString("Global_Quit", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to B站录播姬 {0}.
///
@@ -68,5 +86,23 @@ namespace BililiveRecorder.WPF.Properties {
return ResourceManager.GetString("Window_Title", resourceCulture);
}
}
+
+ ///
+ /// Looks up a localized string similar to 浏览....
+ ///
+ public static string WorkDirectorySelector_Browse {
+ get {
+ return ResourceManager.GetString("WorkDirectorySelector_Browse", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to 选择工作目录.
+ ///
+ public static string WorkDirectorySelector_Title {
+ get {
+ return ResourceManager.GetString("WorkDirectorySelector_Title", resourceCulture);
+ }
+ }
}
}
diff --git a/BililiveRecorder.WPF/Properties/Strings.en.resx b/BililiveRecorder.WPF/Properties/Strings.en.resx
index d7c4a23..85e02fd 100644
--- a/BililiveRecorder.WPF/Properties/Strings.en.resx
+++ b/BililiveRecorder.WPF/Properties/Strings.en.resx
@@ -117,6 +117,18 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Confirm
+
+
+ Quit
+
+
+ Select Directory
+
+
+ Browse...
+
BililiveRecorder {0}
diff --git a/BililiveRecorder.WPF/Properties/Strings.ja.resx b/BililiveRecorder.WPF/Properties/Strings.ja.resx
index 1a3520b..9387a77 100644
--- a/BililiveRecorder.WPF/Properties/Strings.ja.resx
+++ b/BililiveRecorder.WPF/Properties/Strings.ja.resx
@@ -117,6 +117,18 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 決定する
+
+
+ 終了
+
+
+ フォルダーを選択
+
+
+ ブラウズ...
+
ビリビリ録画機 {0}
diff --git a/BililiveRecorder.WPF/Properties/Strings.resx b/BililiveRecorder.WPF/Properties/Strings.resx
index bbdccd3..ff218fe 100644
--- a/BililiveRecorder.WPF/Properties/Strings.resx
+++ b/BililiveRecorder.WPF/Properties/Strings.resx
@@ -97,6 +97,18 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 确定
+
+
+ 退出
+
+
+ 选择工作目录
+
+
+ 浏览...
+
B站录播姬 {0}
diff --git a/BililiveRecorder.WPF/Properties/Strings.zh-Hant.resx b/BililiveRecorder.WPF/Properties/Strings.zh-Hant.resx
index 36314ba..ff6a32d 100644
--- a/BililiveRecorder.WPF/Properties/Strings.zh-Hant.resx
+++ b/BililiveRecorder.WPF/Properties/Strings.zh-Hant.resx
@@ -117,6 +117,18 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 確定
+
+
+ 退出
+
+
+ 選擇工作目錄
+
+
+ 瀏覽...
+
B站錄播姬 {0}