开发者

Cross-platform tool for translating and internationalizing Delphi & FreePascal programs

开发者 https://www.devze.com 2022-12-24 02:50 出处:网络
I\'m writing a program for both Delphi and Lazarus/FreePascal, so I can also reach customers using Linux or Mac OS X.

I'm writing a program for both Delphi and Lazarus/FreePascal, so I can also reach customers using Linux or Mac OS X.

Is there a cross-platform tool that works in both environments too, so I can add multiple languages?

I tried GNU Gettext for Delphi and C++ Builder, but it d开发者_运维问答oes not compile in Lazarus for Mac OS X.

Is there anything comparable?


No, simply since the only system that FPC uses is gettext.
Lazarus afaik uses gettext, also on OS X, but obviously the FPC one, not the delphi one.

I suggest you devote some more attention to getting the gettext solution to work, maybe asking specific questions here.

In reply to your comment:

If I look in the LCL, I see in the translate routines stuff that translates properties of tpersistents, but only for special "TTranslatestrings" fields. So it doesn't seem to translate full forms directly.

Did you have a look at this:? http://wiki.lazarus.freepascal.org/DxGetText


DKLang Localization Package is an open source project that works very well. It has not been tested under FreePascal, but we would be willing assist with any needed changes.


This one is note entirely free, but parts of it are: (The GUI editor isn't, but the code parts are, and the editor isn't strictly required):

http://www.be-precision.com/products/precision-langs/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号