여기 UI 언어에 대해 약간 혼란 스럽습니다. 언어가 바뀌면 어떻게됩니까? 전체 폴더가 변경되거나 문화가로드됩니까? 나는 실제로 일어나고있는 것을 얻을 수 없다.UI 언어가 어떻게 변경 되었습니까?
Properties.Strings.MainWindow_Language_Selection_English_Label="English"
Properties.Strings.MainWindow_Language_Selection_Gujarati_Label="ગુજરાતી"
무슨 일이 일어나는지 설명하십시오. 일반적으로
private void LanguageSelection_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
ComboBoxItem item = LanguageSelection.SelectedItem as ComboBoxItem;
if (item.Content.ToString() == Properties.Strings.MainWindow_Language_Selection_English_Label)
{
CultureManager.UICulture = new System.Globalization.CultureInfo("en");
}
else if (item.Content.ToString() == Properties.Strings.MainWindow_Language_Selection_Gujarati_Label)
{
CultureManager.UICulture = new System.Globalization.CultureInfo("gu");
}
Settings.Default["UILanguage"] = CultureManager.UICulture.Name;
Settings.Default.Save();
}
wpf에서 mvvm .it 만 사용하고 있습니다. – prjndhi