[lazarus] Just another bug

Michael Van Canneyt michael.vancanneyt at wisa.be
Wed Nov 13 09:05:30 EST 2002




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)

Michael.






More information about the Lazarus mailing list