Re: [lazarus] Gettext, what am I doing wrong ?

2007-07-13 Thread wile64
Thanks Mattias, I will seek that, if somebody has more information… Laurent, 2007/7/13, Mattias Gaertner <[EMAIL PROTECTED]>: On Fri, 13 Jul 2007 11:42:38 +0200 wile64 <[EMAIL PROTECTED]> wrote: > Hello, > Exist there tools to create resourcestrings since Form? No. But Vasily started somet

Re: [lazarus] Gettext, what am I doing wrong ?

2007-07-13 Thread Mattias Gaertner
On Fri, 13 Jul 2007 11:42:38 +0200 wile64 <[EMAIL PROTECTED]> wrote: > Hello, > Exist there tools to create resourcestrings since Form? No. But Vasily started something like this, although I'm not sure about the state. Compile clean with -dTRANSLATESTRING. AFAIK it creates an .lrt file for each

Re: [lazarus] Gettext, what am I doing wrong ?

2007-07-13 Thread wile64
Hello, Exist there tools to create resourcestrings since Form? Laurent 2007/7/13, Mattias Gaertner <[EMAIL PROTECTED]>: On Fri, 13 Jul 2007 10:34:33 +0200 Luk Vandelaer <[EMAIL PROTECTED]> wrote: > On Thursday 12 July 2007 23:40, A.J. Venter wrote: > > Moreover this is clearly not an ideal se

Re: [lazarus] Gettext, what am I doing wrong ?

2007-07-13 Thread Mattias Gaertner
On Fri, 13 Jul 2007 10:34:33 +0200 Luk Vandelaer <[EMAIL PROTECTED]> wrote: > On Thursday 12 July 2007 23:40, A.J. Venter wrote: > > Moreover this is clearly not an ideal setup for them since the > > grammer would require the username to be elsewhere in the sentence > > sometimes (how do I handle

Re: [lazarus] Gettext, what am I doing wrong ?

2007-07-13 Thread Mattias Gaertner
On Thu, 12 Jul 2007 23:16:52 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > Thanks everybody, > By combining this with one other hunch, I have it working, I used > Mattias' example code, at first it still failed, until I changed my > call as follows: > LC_MESSAGES="af" ./oklin > > I don't know

Re: [lazarus] Gettext, what am I doing wrong ?

2007-07-13 Thread Luk Vandelaer
On Thursday 12 July 2007 23:40, A.J. Venter wrote: > Moreover this is clearly not an ideal setup for them since the grammer > would require the username to be elsewhere in the sentence sometimes > (how do I handle that), and there is the even more complex part where > I need to set a number of capt

Re: [lazarus] Gettext, what am I doing wrong ?

2007-07-12 Thread A.J. Venter
Hi again Well it worked partially, it got the STATIC messages translated, but not the dynamic ones. First of those are the error messages. I use a little wrapper procedure to show them (they are captions on a tpanel) Procedure ShowError(Error:String); Begin OKLinMain.ErrorLabel.Caption := Erro

Re: [lazarus] Gettext, what am I doing wrong ?

2007-07-12 Thread A.J. Venter
Thanks everybody, By combining this with one other hunch, I have it working, I used Mattias' example code, at first it still failed, until I changed my call as follows: LC_MESSAGES="af" ./oklin I don't know why, but LANG does not seem to override LC_MESSAGES Either way, it's working, thanks ever

Re: [lazarus] Gettext, what am I doing wrong ?

2007-07-12 Thread Mattias Gaertner
On Thu, 12 Jul 2007 22:35:40 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > > And there are two TranslateUnitResourceStrings functions. The one > > with 4 parameters expects the file mask, the other a specific .po > > file. If the file does not exist it returns false. > In which unit is this sec

Re: [lazarus] Gettext, what am I doing wrong ?

2007-07-12 Thread A.J. Venter
And there are two TranslateUnitResourceStrings functions. The one with 4 parameters expects the file mask, the other a specific .po file. If the file does not exist it returns false. In which unit is this second one declared ? ? And which one should I use ? Try this: GetLanguageIDs(Lang,Fallb

Re: [lazarus] Gettext, what am I doing wrong ?

2007-07-12 Thread Luca Olivetti
En/na Mattias Gaertner ha escrit: Then I run: LANG="af" ./oklin You forgot the && or ; LANG="af" ; ./oklin No, this is actually correct, it will execute a command with that environment variable set. Bye -- Luca _ To uns

Re: [lazarus] Gettext, what am I doing wrong ?

2007-07-12 Thread Mattias Gaertner
On Thu, 12 Jul 2007 19:29:00 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > Hi all, > I am trying to make OutKafe gettext translateable, using whatever code > I can find for samples this is what my code now looks like: > > --- > uses > Classes, SysUtils, LResources, Forms, Controls, Graph

Re: [lazarus] Gettext, what am I doing wrong ?

2007-07-12 Thread Giuliano Colla
A.J. Venter ha scritto: Hi all, I am trying to make OutKafe gettext translateable, using whatever code I can find for samples this is what my code now looks like: --- uses Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, ExtCtrls,Util, StdCtrls, Buttons , gtkproc, TrayIc

[lazarus] Gettext, what am I doing wrong ?

2007-07-12 Thread A.J. Venter
Hi all, I am trying to make OutKafe gettext translateable, using whatever code I can find for samples this is what my code now looks like: --- uses Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, ExtCtrls,Util, StdCtrls, Buttons , gtkproc, TrayIcon, popupnotifier, Menus,