如何在winforms应用程序中测试本地化?

时间:2022-12-27 19:16:58

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?

有没有办法在Windows应用程序中测试不同的语言而不改变操作系统的本地化或向应用程序添加代码以强制改变当前的文化?

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

也许某种类型的启动器将启动具有指定文化的应用程序?

2 个解决方案

#1


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

有这个AppLocale Utility for XP,也可以安装在vista上。

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

AppLocale自动检测非Unicode程序的语言,并为进行Unicode转换的代码页模拟相应的系统区域设置。

#2


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

您可以在主线程设置为指定区域性的情况下启动应用程序。

#1


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

有这个AppLocale Utility for XP,也可以安装在vista上。

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

AppLocale自动检测非Unicode程序的语言,并为进行Unicode转换的代码页模拟相应的系统区域设置。

#2


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

您可以在主线程设置为指定区域性的情况下启动应用程序。