Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在下面有一些常量这样的代码。我需要翻译它们,我已经尝试使用 _() 但不起作用。提前致谢。
const system_name = 'System Name'; business_name = 'Business Name';
如果我需要处理必须翻译的常量,我通常将它们声明为resourcestring:
resourcestring
resourcestring system_name = 'System Name'; business_name = 'Business Name';
dxgettext 无需任何调整即可处理这些。