如何设置 Delphi 2006 可执行文件的代码页
我们在 Delphi 2006 中编程,使用 Multilizer 5.1 来翻译程序。现在我们必须在 Multilizer 中添加波兰语作为新语言。但是当我们打开可执行文件时,Multlizer 说“代码页不支持波兰语”。
如果我们将区域设置调整为波兰语,则每当我们打开可执行文件时,区域设置都会翻转回原始设置,即荷兰语。也许我们应该在项目选项中设置 CodePage 设置,但下拉列表没有给我们任何选项。
有什么想法吗?
We're programming in Delphi 2006, using Multilizer 5.1 to translate the program. Now we've to added Polish as a new language in Multilizer. But when we open our executable, Multlizer says "Polish is not supported by the codepage".
If we adjust our regional settings to Polish, whenever we open the executable, the regional settings flip back to the original setting, which is Dutch. Maybe we should set the CodePage setting in our Project Options, but the dropdown list does not give us any options.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
因此,我们只需在控制面板的区域和语言选项中设置非 Unicode 程序的语言即可。坏消息是法语版本现在也遇到了同样的问题。
So it turns out we only had to set the Language for non-Unicode programs in the Regional and Language Options in Control Panel. The bad news is that the French version is now having the same problem.
如果您希望应用程序支持所有可能的语言,而不管用户计算机上的区域和语言选项如何,则需要将应用程序迁移到 Delphi 2009 或更高版本。从 Delphi 2009 开始,Delphi 开始生产 Unicode 应用程序。修复任何假设
SizeOf(Char) = 1
的代码可能需要一些努力。但是,与不断处理 Delphi 2006 应用程序中的代码页问题相比,这项一次性工作应该省力得多。If you want your application to support all possible language regardless of the Regional and Language Options on the user's computer, you'll need to migrate your application to Delphi 2009 or later. Starting with Delphi 2009, Delphi produces Unicode applications. It'll likely take some effort to fix any code that assumes that
SizeOf(Char) = 1
. But that one-time job should be much less effort than constantly having to deal with code page issues in your Delphi 2006 application.