0

I am trying to get right string values from culture resource file but it's not working, always returning english resources,

Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR"); 

but 

Resources.Resource1.myResource; 

still getting english resources, I have two files Resource1.resx and Resource1.fr-FR.resx

4

1 回答 1

1

我认为你需要

Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR")

Thread.CurrentThread.CurrentUICulture

获取或设置资源管理器用于在运行时查找特定于区域性的资源的当前区域性。

于 2013-06-12T15:39:39.403 回答