
2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
17 lines
342 B
C
17 lines
342 B
C
#ifndef __GTKINTL_H__
|
|
#define __GTKINTL_H__
|
|
|
|
#include "config.h"
|
|
#include <glib/gi18n-lib.h>
|
|
|
|
#ifdef ENABLE_NLS
|
|
#define P_(String) dgettext(GETTEXT_PACKAGE "-properties",String)
|
|
#else
|
|
#define P_(String) (String)
|
|
#endif
|
|
|
|
/* not really I18N-related, but also a string marker macro */
|
|
#define I_(string) g_intern_static_string (string)
|
|
|
|
#endif
|