Gcc and message catalogs
Dennis Bjorklund
db@zigo.dhs.org
Thu Nov 16 00:01:00 GMT 2000
On Tue, 14 Nov 2000, Philipp Thomas wrote:
> Just to recap:
>
> - If cc1 is called directly, it will display translated messages
> - if called via gcc, it will display the english original, i.e.
> no translation will be done.
>
I've tried a little more. I changed cc1 to a script that calls "cc1
--help" and now cc1 displays swedish in the help-text that is shown. But
still the error messages comes out in english. I don't know if this
information helps anyone. To me it suggests that the error reporting and
the help-text printing is done in different ways. But I don't know
anything of gcc's internals so the information might be useless.
Maybe the error-texts are in a dynamic libraray (.so file) and this
library does not get the locale settings from the callers. That in the
.so file you have to call bindtextdomain(), textdomain() and other stuff
to initialize the gettext package. I have never written a program with
dynamic libraries that were translated, so I don't know if this could be
it, but it sounds very possible.
--
/Dennis
More information about the Gcc
mailing list