gettext markup of library sources

Phil Edwards phil@jaj.com
Wed Apr 23 20:37:00 GMT 2003


On Wed, Apr 23, 2003 at 02:58:37PM -0500, Benjamin Kosnik wrote:
> 
> >P.S.- I have a better patch, but bindtextdomain still isn't being called.
> >      Something I'm not understanding about the global c_local object.
> 
> I'm hoping the better patch is using functexcept.cc...

Yep.

> Maybe look at the way that the message tests are being run? See the part
> of testsuite_flags that does:
> 
>  -DLOCALEDIR="@glibcpp_localedir@" 
> 
> What's the error (can you post it so maybe we can figure it out?)

No error, it's just that the strings aren't being translated when I run
a program with LC_MESSAGES set to de or de_DE, say.  Putting a hook in
config/locale/gnu/messages_members.h told me that messages::open never gets
called.  Hardcoding the local __dir string to the appropriate installation
directory didn't help either.

Following the example you gave in 22_locale/messages.html works.  But the
default locale's just not picking up the LC_MESSAGES env, or is looking
in the wrong place somehow, or some other problem...


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams



More information about the Libstdc++ mailing list