delphi - 翻译 const delphi 7 gnugettext

标签 delphi delphi-7 gettext

我有一些常量,例如下面的代码。我需要翻译它们,我尝试过 _() 但不起作用。 提前致谢。

const system_name    = 'System Name';
  business_name    = 'Business Name';

最佳答案

如果我需要处理必须翻译的常量,我通常将它们声明为resourcestring:

resourcestring 
  system_name = 'System Name';
  business_name = 'Business Name';

dxgettext 无需任何调整即可处理这些内容。

关于delphi - 翻译 const delphi 7 gnugettext,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16668339/

相关文章:

delphi - 在不修改接口(interface)的情况下将delphi接口(interface)转换为其实现类

delphi - 在处理传入请求之前,如何在 'TISAPIApplication` 中建立 ADO 数据库连接?

delphi - 最长算术和几何级数序列误差

Delphi:在 OnBeforePost 事件中取消 TDataSet.Post

javascript - Django 1.2.3 - 国际化 - makemessages 不检测所有字符串

android - 打开文件管理并获取所选文件

delphi - 使用一些行颜色扩展 DBGrid

django - 在 windows :Can't find msguniq. 中安装 gettext 确保您安装了 GNU gettext 工具 0.15 或更新版本

python - 日期的默认格式

delphi - BDS2006 中的 GetVersionExW 错误