mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 20:12:30 +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
25 lines
526 B
C
25 lines
526 B
C
#ifndef __STDPLUGINS-INTL_H__
|
|
#define __STDPLUGINS-INTL_H__
|
|
|
|
#include <locale.h>
|
|
|
|
#include "libgimp/gimpintl.h"
|
|
|
|
#ifdef HAVE_LC_MESSAGES
|
|
#define INIT_I18N() \
|
|
setlocale(LC_MESSAGES, ""); \
|
|
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
|
textdomain("gimp-std-plugins")
|
|
#else
|
|
#define INIT_I18N() \
|
|
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
|
textdomain("gimp-std-plugins")
|
|
#endif
|
|
|
|
#define INIT_I18N_UI() \
|
|
gtk_set_locale(); \
|
|
setlocale (LC_NUMERIC, "C"); \
|
|
INIT_I18N();
|
|
|
|
#endif /* __STDPLUGINS-INTL_H__ */
|