1
votes

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 does not compile in Lazarus for Mac OS X.
Is there anything comparable?

3
You could specify the problems you run into when using GNU gettext on Mac OS. Somehow I doubt that it is really incompatible... (Although I never tried it out myself ;-)Leo
@Mef: Maybe he meant something else than the gettext unit when writing "but is broken (not compile in Lazarus/OSX)"? But what would that be? Everything else is not strictly needed.mghie
Yes, what goes wrong should be described more in depth. Maybe he simply didn't install the relevant Fink libs, or has some unit name conflict (specially since FPC also comes with a gettext unit)Marco van de Voort
Well, I download gettext, compile and fail. I try to fix some stuff, but after 3 edits the thing start to become harder to get. If is working then I don't know wich version to get, because I try something like 3 or 4 diferents version, none of them work for me AFAIK.mamcx

3 Answers

1
votes

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

0
votes

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.

0
votes

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/