Re: Ever experienced gnome-doorman i18n bugs?



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


> > 
> > Has anybody got a little time to help me?
> > 
> > Thanks,
> > 
> > Emese -- Hungarian translator
> > 
> > PS: As a nice translator, I have no intention to commit whatever to
> > (code)source files, I only would like to learn how to make nice patches that
> > developers like, because it seems that dealing with i18n is really low
> > priority for them.
> > 
> > PS2: gnome-doorman might be deprecated, as developers tend to focus on
> > gnome2?
> > 
> > 
> > _______________________________________________
> > gnome-i18n mailing list
> > gnome-i18n@gnome.org
> > http://mail.gnome.org/mailman/listinfo/gnome-i18n
> 
> -- 
> Ki ça vos våye bén,
> Pablo Saratxaga
> 
> http://www.srtxg.easynet.be/          PGP Key available, key ID: 0x8F0E4975
> 
> _______________________________________________
> gnome-i18n mailing list
> gnome-i18n@gnome.org
> http://mail.gnome.org/mailman/listinfo/gnome-i18n

-- 
Carlos Perelló Marín
mailto:carlos@gnome-db.org
mailto:carlos@hispalinux.es
http://www.gnome-db.org
http://www.Hispalinux.es
Valencia - Spain





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