diff --git a/Language/en_US.xaml b/Language/en_US.xaml index df45989..f04442b 100644 --- a/Language/en_US.xaml +++ b/Language/en_US.xaml @@ -149,7 +149,7 @@ Select Path - Starshine Diamond Detection System + Spark Diamond Detection System Account Password Remember Password diff --git a/Model/Helper/MultilingualHelper.cs b/Model/Helper/MultilingualHelper.cs index d785119..bc33184 100644 --- a/Model/Helper/MultilingualHelper.cs +++ b/Model/Helper/MultilingualHelper.cs @@ -15,7 +15,7 @@ public class MultilingualHelper /// 文字 /// public static string getString(string key) - { + { var result = Application.Current.TryFindResource(key); if (result == null) { @@ -23,6 +23,17 @@ public class MultilingualHelper } return (string)result; } + + /// + /// 获取多语言字符 + /// + /// KEY + /// 文字 + /// + public static string getLangType() + { + return ConfigHelper.Instance.Lang.ToString(); + } /// /// 设置语言 diff --git a/Views/Dialog/MessageBox.xaml b/Views/Dialog/MessageBox.xaml index d2a6179..66a2815 100644 --- a/Views/Dialog/MessageBox.xaml +++ b/Views/Dialog/MessageBox.xaml @@ -37,7 +37,7 @@ - - -