Forum > Packages and Libraries
DxGetText
(1/1)
Riccardo Giuliani:
Don't know if this is the right place for this topic.
My question is about the dxgettext downloadable from http://dxgettext.po.dk/.
The presentations says:
"The best translation toolkit for Delphi, C++ Builder, Kylix, FreePascal and Lazarus"; I supposed it working well with FPC and Lazarus, so I tried it.
By following the guide http://dxgettext.po.dk/documentation/how-to, I stopped myself into the first section: after that I compiled my project...
first of all some errors appeared about duplicated items (conflicting with procedures' names), in order:
* textdomain, 5 times
* DefaultDomainDirectory
* curlangchanged their names i then felt into another error:
--- Code: ---gnugettext.pas(916,22) Error: Identifier not found "EnumResourceModules"
--- End code ---
I checked that this procedure belongs to Delphi's set, and not to FPC or Lazarus: isn't it?
How to solve this?
Thank you.
P.S.: after this one, other errors follow; but too much stuff indeed to put together.
ludob:
In the dxgettext-packages\dxgettext-linux\dxgettext\freepascal and dxgettext-packages\dxgettext\dxgettext\freepascal directories of the dxgettext package you'll find freepascal versions of gnugettext.pas. Are that the ones you are using?
Riccardo Giuliani:
Sorry for the delay.
I'm on Win XP, but this apart now I used the .pas files inside a folder called Freepascal, which I passed over the first time: these 2 files are gnugettext and gnugettext_fpc.
I added both of them to my project, including the units in the uses of the units with forms... and same errors came up; compilation stops onto the procedure EnumResourceModules.
I looked around for some fpc examples, but nothing found.
Thanks for your help.
ludob:
Looked back to an old project that used dxgettext and I notice that I removed a lot of delphi problem code in {$ifndef fpc}.
There is also the unit gettext in fpc documented here: http://wiki.freepascal.org/Getting_translation_strings_right
If for one reason or another you need dxgettext (my code had to compile with Delphi and fpc), let me know and I'll try to make a diff against the latest svn revision.
Riccardo Giuliani:
Don't waste time for me ;)
I'll give a try to the internal gettext first.
Maybe in future I'll return back to make dxgettext perform on fpc (I hope :))
See you!
Navigation
[0] Message Index