[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gphoto-devel
Subject:    Re: [gphoto-devel] gtkam strange menu translations
From:       Lutz =?ISO-8859-1?Q?M=FCller?= <lutz () users ! sourceforge ! net>
Date:       2002-11-27 18:10:16
[Download RAW message or body]

On Wed, 2002-11-27 at 12:59, Arnaud Launay wrote:
> Hacking around gtkam strange menu translated problems (strings
> with non-ascii characters, like "é" or "è" or "ü" don't print
> correctly), it may be related to the special menu description.
> The menu strings use "N_(String)" as gettext,

This is ok: N_() does nothing except marking the string for translation.

> where everything
> else uses only "_(String)", and works.

_() is a function that returns the translated string. For example, you
need to do 

const char *message = N_("My message");

printf ("%s", _(message));

Now to the menu stuff: The menu item is translated by a separate
function that is set with gtk_item_factory_set_translate_func (see
gtkam-main.c). Have you verified that this function gets called and
returns the correct translation?

Lutz
-- 
Lutz Müller <lutz@users.sourceforge.net>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic