How do I test localization in a winforms application?

拟墨画扇 提交于 2020-01-02 07:05:37

问题


Is there a way to test different languages in a Windows application without changing the localization of the OS or adding code to the application to forcibly change the current culture?

Perhaps some type of a launcher that will launch the application with a specified culture?


回答1:


There is this AppLocale Utility for XP, which can also be installed on vista.

AppLocale automatically detects language for non-Unicode program and simulates a corresponding system locale for code-page to/from Unicode conversions.




回答2:


You can launch your application with the main thread set to an specified culture.



来源:https://stackoverflow.com/questions/544620/how-do-i-test-localization-in-a-winforms-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!