[lazarus] Just another bug

Florian Klaempfl Florian.Klaempfl at gmx.de
Thu Nov 14 07:14:31 EST 2002


At 15:22 13.11.2002, you wrote:


>On Wed, 13 Nov 2002, Mattias Gaertner wrote:
>
> > On Tue, 12 Nov 2002 23:31:35 +0100
> > Florian Klaempfl <Florian.Klaempfl at gmx.de> wrote:
> >
> > > At 19:45 11.11.2002, you wrote:
> > > >On Mon, 11 Nov 2002 14:31:51 +0300
> > > >"Vasily I. Volchenko" <Vasily.Volchenko at mstu.edu.ru> wrote:
> > > >
> > > > > I found and dissolved this error (without fixing). The problem was in
> > > > > my compiler: I used localized messages (Russian). It is not a good
> > > > > idea to make lazarus fpc language depended, but...
> > > >
> > > >Hmm, I have never tried a localized compiler.
> > > >The IDE must ask the compiler about its environment. Like macros and
> > > >search paths.
> > > >Is there an option so that a localized compiler will answer in the
> > > >default language (english)?
> > > >And how can lazarus find out, what language the compiler is speaking?
> > >
> > > Regarding answering, I think an -Ferrore.msg should be enough. It should
> > > override the configuration file options.
> >
> > Thx. That helps.
> > I have added a small message file to the codetools, so that the IDE now
> > overrides localization for the hidden fpc outputs.
> > But the visible fpc output in the messages is more tricky ...
> >
> >
> > > There is no way yet to figure out the used language.
> >
> > Hmm. Even if we can do that, we need also the translated message.
> > For example: Because the IDE parses the fpc output, it needs to know, what
> > message marks an 'error', a 'note', ... .
> > Any ideas?
> > How does the text IDE do this?
>
>It has the compiler built in and simply shows the message as produced by
>the compiler, which is determined by the -Fr switch.
>(this may and will give problems with some locales of course. The IDE
>doesn't handle that)

What about writing a semi-GUI wrapper for the compiler used by lazarus?
I.e. a compiler which gets all settings via IPC and returns status
info the same way. So you don't have the disadvantages of an integrated
compiler like a crashing compiler crashes the IDE, memory leaks caused
by the compiler etc..







More information about the Lazarus mailing list