Recent

Author Topic: DxGetText  (Read 6315 times)

Riccardo Giuliani

  • New Member
  • *
  • Posts: 40
DxGetText
« on: June 25, 2012, 12:42:26 am »
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
  • curlang
changed their names i then felt into another error:
Code: [Select]
gnugettext.pas(916,22) Error: Identifier not found "EnumResourceModules"
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

  • Hero Member
  • *****
  • Posts: 1173
Re: DxGetText
« Reply #1 on: June 25, 2012, 10:40:08 am »
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

  • New Member
  • *
  • Posts: 40
Re: DxGetText
« Reply #2 on: June 26, 2012, 03:26:25 pm »
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

  • Hero Member
  • *****
  • Posts: 1173
Re: DxGetText
« Reply #3 on: June 26, 2012, 05:37:30 pm »
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

  • New Member
  • *
  • Posts: 40
Re: DxGetText
« Reply #4 on: June 26, 2012, 06:01:52 pm »
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!

 

TinyPortal © 2005-2018