簡體   English   中英

我們是否需要安裝os語言包來本地化wpf應用程序?

[英]Do we need to install os language pack to localize wpf application?

我有一個具有Gloabisation功能的WPF應用程序,它使用衛星程序集獲取本地化資源。

我更改了區域和語言設置.System.Threading.CurrentThread.CurrentCulture已更改,但未設置CurrentUICulture。

我們必須安裝os語言包嗎? 還是還有其他配置設置?

謝謝

好吧,我猜唯一的解決方案是在例如Application.OnStartUp方法中根據CultureInfo.InstalledUICulture設置Thread.Current.CurrentUICulture 請查看此SO帖子和此MSDN文檔。

我認為以下應該可以解決問題。

Thread.Current.CurrentUICulture = CultureInfo.InstalledUICulture;

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM