From 79f809a50c5bcd9fc359f368375e5c84da5e4bbd Mon Sep 17 00:00:00 2001 From: Deterous <138427222+Deterous@users.noreply.github.com> Date: Mon, 13 Oct 2025 12:35:21 +0900 Subject: [PATCH 01/16] Test using resources --- MPF.UI/App.xaml | 7 +++++++ MPF.UI/Resources/Strings.en.xaml | 15 +++++++++++++++ MPF.UI/Resources/Strings.ko.xaml | 15 +++++++++++++++ MPF.UI/Windows/MainWindow.xaml | 24 ++++++++++++------------ 4 files changed, 49 insertions(+), 12 deletions(-) create mode 100644 MPF.UI/Resources/Strings.en.xaml create mode 100644 MPF.UI/Resources/Strings.ko.xaml diff --git a/MPF.UI/App.xaml b/MPF.UI/App.xaml index b08407a21..bf9531b8e 100644 --- a/MPF.UI/App.xaml +++ b/MPF.UI/App.xaml @@ -9,6 +9,13 @@ + + + + + + + diff --git a/MPF.UI/Resources/Strings.en.xaml b/MPF.UI/Resources/Strings.en.xaml new file mode 100644 index 000000000..e6ed58343 --- /dev/null +++ b/MPF.UI/Resources/Strings.en.xaml @@ -0,0 +1,15 @@ + + + Media Preservation Frontend + System + Output Path + Browse + Drive Letter + Drive Speed + Dumping Program + Parameters + Scan for Discs + Update Label + Scan for Protection + diff --git a/MPF.UI/Resources/Strings.ko.xaml b/MPF.UI/Resources/Strings.ko.xaml new file mode 100644 index 000000000..57f832d7e --- /dev/null +++ b/MPF.UI/Resources/Strings.ko.xaml @@ -0,0 +1,15 @@ + + + 미디어 프리저베이션 프런트엔드 + 시스템 + 출력 경로 + 찾아보기 + 드라이브 문자 + 드라이브 속도 + 덤프 프로그램 + 매개변수 + 디스크 스캔 + 레이블 업데이트 + 보호 스캔 + diff --git a/MPF.UI/Windows/MainWindow.xaml b/MPF.UI/Windows/MainWindow.xaml index 9404f8031..f711833eb 100644 --- a/MPF.UI/Windows/MainWindow.xaml +++ b/MPF.UI/Windows/MainWindow.xaml @@ -8,7 +8,7 @@ xmlns:coreWindows="clr-namespace:MPF.UI.Windows" xmlns:viewModels="clr-namespace:MPF.Frontend.ViewModels;assembly=MPF.Frontend" mc:Ignorable="d" - Title="Media Preservation Frontend" Width="600" WindowStyle="None" + Title="{DynamicResource AppTitle}" Width="600" WindowStyle="None" WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize" SizeToContent="Height" AllowsTransparency="True" Background="Transparent"> @@ -87,7 +87,7 @@