Re: Ever experienced gnome-doorman i18n bugs?



Den 24 May 2001 16:36:36 +0200, skrev Carlos Perelló Marín:
> El 24 May 2001 15:21:21 +0200, Pablo Saratxaga escribió:
> > Kaixo!
> > 
> > On Thu, May 24, 2001 at 03:02:30PM +0200, Emese Kovacs wrote:
> > 
> > > I would like to ask other people involved in gnome-doorman translation, if
> > > they also have experienced i18n problems within the running gnome-doorman. I
> > 
> > > Problems include: graphics containing strings that should be localized,
> > > strings that show up in the po files but remain English in the running
> > > software,
> > 
> > Check that the very first header included in all files with translatable
> > strings is #include "config.h"
> > if gnome.h is included before HAS_NLS is defined; then the _( ) macro
> > will be defined to do nothing.
> > 
> > Also, the N_( ) macro does nothing (it is just a markup so the strings
> > can be found and put in the po files); there must be a call to gettext
> > (or _( ) macro) later on.
> > eg:
> > 
> > char *foo[] = { N_("foo"), N_("bar") }
> > 
> > isn't enough, there must be a _(foo[0]) and _(foo[1]) somewhere for the
> > translation to be actually called.
> > 
> > That happens for the titles of tables, gtk uses an array of strings and
> > passes a pointer to the array to the function that draws the table;
> > that means you have to translate the titles before that.
> > I do it like this:
> > 
> > #ifdef HAS_NLS
> >       {
> >               int i=0;
> >               for (i=0;i<SOME_MAX_VALUE;i++) foo[i]=_(foo[i]);
> >       }
> > #endif
> > 
> > 
> > maybe you can check for a NULL for the end of the array in some
> > cases.
> > 
> > > country list comming from countries.h not maked up for gettext.
> > > 
> > > I would love to learn how to make patches for these issues (especially
> > > strings that are in the po file and do not get translated in the software,
> > > like the ones coming from page-config.c).
> > 
> > Is gnome-doorman in the Gnome CVS (or a publicly available CVS)?
> > 
> 
> 
> Yes, it's at GNOME CVS as gnome-doorman
> 
> 

Can you update from CVS and try again? I just checked in some fixes for
i18n in gnome-doorman. (Just include "config.h" at the top of all files
containing translated strings.

Cheers
Kjartan Maraas






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