简体   繁体   English

不同的语言资源

[英]Different language resources

I need to create application with different language support. 我需要创建具有不同语言支持的应用程序。 Language is setting up in login window (for example). 在登录窗口中设置语言(例如)。 I think I need to create a number of resx files and dynamically change em, depends on language I need. 我想我需要创建许多resx文件并动态更改em,具体取决于我需要的语言。

Am I right? 我对吗? If so, how to make different resx files and change them in that way? 如果是这样,如何制作不同的resx文件并以这种方式进行更改?

Thanks a lot! 非常感谢!

Yes, you are right. 是的,你是对的。 You will need separate resx files for each language. 对于每种语言,您将需要单独的resx文件。 Once you change the language, translations from respective language file will be picked and used 更改语言后,将选择并使用相应语言文件中的翻译

Take a look at this simple tutorial. 看一下这个简单的教程。 It uses the Markup Extensions for changing the language at runtime. 它使用标记扩展在运行时更改语言。 It is a simple and elegant solution 这是一个简单而优雅的解决方案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM