Re: libglade and gettext



Andy Kahn wrote:
> 
> On Fri, Mar 24, 2000 at 05:36:50PM -0800, Andy Kahn wrote:
> > If I use glade to generate an XML (.glade) file, and then use libglade
> > to read the .glade file to create my widgets, is there a way to have
> > the text strings within the .glade file be gettext'ized?
> >
> > The only solution I can think of is taking that .glade file, and then
> > manually translating the text strings withing it.  ugh.
> 
> I spoke too soon.  To answer my own question, it looks like there *is*
> some sort of translation automatically done within libglade.  To what
> extent, I don't know yet.

Well, I haven't really bothered about tranlations, but I glade uses
gettext. So translations should go into the $src/po dir. I don't know if
glade (or rather autmake/conf) produces a stub file for translations or
not. I can't check it out becuse glade generates someting wrong for me
at the moment in the config files so nothing works :(. You should
probably tell automake/conf that you have the translations too. I think
that it should go into the configure.in. 

BTW, you should probably get an second opinion on this, since I've just
starting to experiment with glade libtool, automake and autoconf...


Hope it help.

Jörgen Lundberg



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]