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