I probbably wrote something in missunderstanding way... I prefer dxGetText against resorcestrings, becose ShowMessage(_'Text to translate')); is better for me than creating resourcestrings (because of future editing). But I have choosen it during my delphi era, because it is good to for translating comunity software - no need to edit sources, compile dll or lng files... Just editing po files by other users.
There is no difference for me as for raw translator. But when I want to tweak something, edit some message, I have to find resourcestring (easy, one click), find if is used on more or one place and then just edit or create new one... Or edit all other occurences. While using gettext as known from GNU Project apps, I just change strings in code and then regenerate .po files. If I have to use formatted messages with Format(), I can use __('str %s') instead of _().
I'm not complaining about anything in IDE, just pointing at advantages of gettext and giving reasons why I use it.
V?clav Val??ek
Dne 27.6.2014 15:15, Mattias Gaertner napsal(a):
Show quoted text 23 lines
On Fri, 27 Jun 2014 13:09:06 +0200
V?clav Val??ek wrote:
> I prefer using dxGetText in my projects, but if Lazarus uses
> resourcestrings, I must use resourcestrings when translating components.
> I have experience with delphi 2010 translations (probbably same as
> D2009) - and I wasn't very happy that I had to attach special
> translation files, I wanted something text based. I started using
> dxGetText... There is no problem for me if Lazarus does not translate
> consts arrays during startup.
po files are text based.
There is a binary format: mo files, which saves some bytes. But those
few KB do not matter nowadays.
Of course you can use other ways to load your resourcestrings. You
don't need to use po files.
Mattias
--
_______________________________________________
Lazarus mailing list
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus