如何使delphi应用程序国际化 [英] how to internationalize a delphi application

查看:156
本文介绍了如何使delphi应用程序国际化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

翻译应用程序

使用delphi xe2编写我的应用程序国际化的最佳方式是什么?

What is the best way to internationalize my application written in delphi xe2 ?

我看过 stringtable 资源,但我很担心,因为我感觉到实现可能是耗时和费力的。

I've seen the stringtable resource but I'm worried because I've got the feeling that the implementation could be time consuming and laborious.

有没有其他同样有效的方法来做到这一点?

Are there other equally valid methods to do this?

推荐答案

可能不是翻译的最佳工具,但是我使用的是 GNU Gettext 年份。
这个过程很简单:

Maybe not the best tool for translations, but I'm using GNU Gettext for many years. The process is quite simple:


  • 你运行dxgettext提取字符串

  • 你翻译或翻译文件

  • 我个人喜欢 poEdit 工具翻译和管理翻译库

  • 可选:将您的翻译文件合并到最终的EXE

  • 或者将翻译文件放在子目录中,就是这样!

  • You run dxgettext to extract strings
  • You translate or give for translation the files
  • I personally love poEdit tool to translate and manage translation repository
  • Optional : You merge your translation files into the final EXE
  • OR you put the translation files in subdirectories and that's it !

http:// dxgettext .po.dk /

更新:

1 / GNU Gettext包含在JCL / JVCL库中,您只需在启动时激活此选项。

1/ GNU Gettext is included in JCL/JVCL library, you just need to activate this option at startup.

2 / Gnu Gettext可以将库中的所有内容翻译成VCL,JCL / JVCL也!这不仅限于您的代码!

2/ Gnu Gettext can translate everything in the library, as VCL, JCL/JVCL also ! It's not just limited to your code !

这篇关于如何使delphi应用程序国际化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆