Re: Help with an i18n bug
- From: "Kevin Vandersloot" <kfv101 psu edu>
- To: "Sven Neumann" <sven gimp org>
- Cc: "Gnome i18n" <gnome-i18n gnome org>
- Subject: Re: Help with an i18n bug
- Date: Wed, 19 Sep 2001 11:14:44 -0400
Thanks for the reply. That doesn't seem to work though. The strings are
defined like such:
const gchar *default_table[] = {
"X", N_("X window system"), "gnome-mdi.png",
"bash", N_("bourne again shell"), "gnome-term.png",
"gnome-session", N_("Gnome-Session"), "gnome-logo-icon-transparent.png",
"galeon-bin", N_("Galeon Web Browser"), "galeon.png",
"sawfish", N_("Sawfish Window Manager"), "sawfish.png",
NULL
};
and then I tried within the program
prettyname = g_strdup (gettext (table[i + 1]));
Later on in the program the string that gets displayed just g_strdup's this
prettyname string. Do I have to put the _( ) or gettext ( ) here also? ie.
display_string = g_strdup (_(prettyname));
I appreciate the help,
Kevin
----- Original Message -----
From: "Sven Neumann" <sven@gimp.org>
To: "Kevin Vandersloot" <kfv101@psu.edu>
Cc: "Gnome i18n" <gnome-i18n@gnome.org>
Sent: Wednesday, September 19, 2001 6:44 AM
Subject: Re: Help with an i18n bug
> Hi,
>
> Kevin Vandersloot <kfv101@psu.edu> writes:
>
> > http://bugzilla.gnome.org/show_bug.cgi?id=59596
> >
> > It has to do with putting strings in constant arrays. If anyone could
> > help I would appreciate it. In particular I'm not sure how to test
> > changes. Thanks for any help
>
> the help you got in the replies to the bug-report looks correct. For
> strings in constant arrays, you need to use N_() to mark the string
> for translation, and display the result of calling gettext() on the
> string. I wouldn't suggest to use _() as Christian proposed in his
> second reply; better use gettext() directly.
>
> Start your program using 'LC_ALL=sv_SE procman' to test the changes.
> If you don't see any swedish texts at all, you might have to generate
> a swedish locale first. This is most probably the case if you are
> running a Debian system. Edit /etc/locale.gen and run locale-gen.
>
>
> Salut, Sven
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]