diff options
author | Owen Taylor <otaylor@redhat.com> | 1998-12-14 17:39:58 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-12-14 17:39:58 +0000 |
commit | 7facb75c85ddd3f98f664af7a65eaa7344d44c11 (patch) | |
tree | 39d0d0e66c5419606d8e1b1d66637f593c89bb8e /gtk/gtkintl.h | |
parent | edc14768652f365a730d00614e08888604e05f44 (diff) | |
download | gtk+-7facb75c85ddd3f98f664af7a65eaa7344d44c11.tar.gz |
Added gettext-10.35
Mon Dec 14 12:24:13 1998 Owen Taylor <otaylor@redhat.com>
* HACKING: Added gettext-10.35
* autogen.sh: Run gettextize.
Wed Dec 9 16:29:06 1998 Owen Taylor <otaylor@redhat.com>
Applied gtk-egger-981010-[12]
[ Daniel.Egger@t-online.de (Daniel Egger) ]
* gtk/gtkintl.h: New file - defines for localization.
* gtk/gtkfilesel.c gtk/gtkinputdialog.c: Mark strings
for internationalization.
* gtk/gtkmain.c: call bindtextdomain
* po/ - directory for translations. Initially includes
German translation.
Diffstat (limited to 'gtk/gtkintl.h')
-rw-r--r-- | gtk/gtkintl.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gtk/gtkintl.h b/gtk/gtkintl.h new file mode 100644 index 0000000000..bd2ff54b3c --- /dev/null +++ b/gtk/gtkintl.h @@ -0,0 +1,24 @@ +#ifndef __GTKINTL_H__ +#define __GTKINTL_H__ + +#include "config.h" + +#ifdef ENABLE_NLS +#include<libintl.h> +#define _(String) dgettext("gtk+",String) +#ifdef gettext_noop +#define N_(String) gettext_noop(String) +#else +#define N_(String) (String) +#endif +#else /* NLS is disabled */ +#define _(String) (String) +#define N_(String) (String) +#define textdomain(String) (String) +#define gettext(String) (String) +#define dgettext(Domain,String) (String) +#define dcgettext(Domain,String,Type) (String) +#define bindtextdomain(Domain,Directory) (Domain) +#endif + +#endif |