mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 04:51:44 +00:00
d02f3bce77
* app/main.c: moved the gtk_set_locale call to after it's been inited * app/paint_core.h: set skip for ToolFlags * app/procedural_db.h: don't skip PDB_TEMPORARY in PDBProcType * libgimp/Makefile.am: don't install stdplugins-intl.h, that's only for disted plugins * libgimp/gimpenums.h: is now autogenned * libgimp/gimpfeatures.h.in: #define for new enums * libgimp/gimpintl.h: #include <locale.h> * libgimp/stdplugins-intl.h: add include guards * plug-ins/AlienMap2/Makefile.am: add INTLLIBS * plug-ins/gflare/Makefile.am: removed unused libgimpui * plug-ins/script-fu/script-fu-console.c * plug-ins/script-fu/script-fu-scripts.c * plug-ins/script-fu/script-fu-server.c: use stdplugins-intl.h * plug-ins/sel2path/Makefile.am: removed unused libgck.la * tools/pdbgen/Makefile.am: removed script-fu.pl, added enumcode.pl * tools/pdbgen/lib.pl * tools/pdbgen/enumcode.pl: enumcode.pl now autogenned gimpenums.h as well as the script-fu stuff -Yosh
43 lines
1.2 KiB
C
43 lines
1.2 KiB
C
#ifndef __GIMPINTL_H__
|
|
#define __GIMPINTL_H__
|
|
|
|
#include <locale.h>
|
|
|
|
/* Copied from gnome-i18n.h by Tom Tromey <tromey@creche.cygnus.com> *
|
|
* Heavily modified by Daniel Egger <Daniel.Egger@t-online.de> *
|
|
* So be sure to hit me instead of him if something is wrong here */
|
|
|
|
#ifndef LOCALEDIR
|
|
#define LOCALEDIR g_strconcat (gimp_data_directory (), \
|
|
G_DIR_SEPARATOR_S, \
|
|
"locale", \
|
|
NULL)
|
|
#endif
|
|
|
|
#ifdef ENABLE_NLS
|
|
# include <libintl.h>
|
|
# define _(String) gettext (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
|
|
|
|
# define INIT_LOCALE( domain ) \
|
|
gtk_set_locale (); \
|
|
setlocale (LC_NUMERIC, "C"); \
|
|
bindtextdomain (domain, LOCALEDIR); \
|
|
textdomain (domain);
|
|
|
|
#endif /* __GIMPINTL_H__ */
|