The untderbar is normaly a wrapper for Internationalization and could be
defined this way in any header file :
/* Internationalization. */
#ifdef ENABLE_NLS
#include <libintl.h>
#undef _
#define _(String) dgettext (PACKAGE, String)
#ifdef gettext_noop
#define N_(String) gettext_noop (String)
#else
#define N_(String) (String)
#endif
#else
/* Stubs that do something close enough. */
#define textdomain(String) (String)
#define gettext(String) (String)
#define dgettext(Domain,Message) (Message)
#define dcgettext(Domain,Message,Type) (Message)
#define bindtextdomain(Domain,Directory) (Domain)
#define _(String) (String)
#define N_(String) (String)
#endif
gettext changes the following texts here ("Freeciv") in any supported
language.
> Looking through the Freeciv source, I came across the following:
>
> gtk_window_set_title (GTK_WINDOW (toplevel), _("Freeciv"));
>
> What is the purpose of the underbar? I checked the tutorial, the RDP, and
> Harlow and no one seems to mention this. I tried it in a small test app
> and it throws an error.
>
> Thanks
>
Greetings
Scherf Andreas
Mail : [EMAIL PROTECTED]
Page : http://www.fh-trier.de/~scherfa
--
To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null