libgimp/gimpintl.h libgimp/libgimp-intl.h removed remaining usage of
2002-12-13 Sven Neumann <sven@gimp.org> * libgimp/gimpintl.h * libgimp/libgimp-intl.h * plug-ins/script-fu/script-fu-scripts.c: removed remaining usage of ENABLE_NLS.
This commit is contained in:

committed by
Sven Neumann

parent
8183459c44
commit
12890477ef
@ -1,3 +1,10 @@
|
|||||||
|
2002-12-13 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* libgimp/gimpintl.h
|
||||||
|
* libgimp/libgimp-intl.h
|
||||||
|
* plug-ins/script-fu/script-fu-scripts.c: removed remaining usage
|
||||||
|
of ENABLE_NLS.
|
||||||
|
|
||||||
2002-12-13 Sven Neumann <sven@gimp.org>
|
2002-12-13 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* tools/pdbgen/pdb/image.pdb: added new PDB function
|
* tools/pdbgen/pdb/image.pdb: added new PDB function
|
||||||
|
@ -2,6 +2,8 @@ Makefile
|
|||||||
Makefile.in
|
Makefile.in
|
||||||
libgimpmodule.args
|
libgimpmodule.args
|
||||||
libgimpmodule.hierarchy
|
libgimpmodule.hierarchy
|
||||||
|
libgimpmodule.interfaces
|
||||||
|
libgimpmodule.prerequisites
|
||||||
libgimpmodule.signals
|
libgimpmodule.signals
|
||||||
libgimpmodule-decl.txt
|
libgimpmodule-decl.txt
|
||||||
libgimpmodule-decl-list.txt
|
libgimpmodule-decl-list.txt
|
||||||
|
@ -27,28 +27,20 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
|
||||||
#ifdef ENABLE_NLS
|
|
||||||
#include <libintl.h>
|
#include <libintl.h>
|
||||||
|
|
||||||
|
|
||||||
#define _(String) gettext (String)
|
#define _(String) gettext (String)
|
||||||
|
|
||||||
#ifdef gettext_noop
|
#ifdef gettext_noop
|
||||||
# define N_(String) gettext_noop (String)
|
# define N_(String) gettext_noop (String)
|
||||||
#else
|
#else
|
||||||
# define N_(String) (String)
|
# define N_(String) (String)
|
||||||
#endif
|
#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
|
|
||||||
|
|
||||||
#ifndef HAVE_BIND_TEXTDOMAIN_CODESET
|
#ifndef HAVE_BIND_TEXTDOMAIN_CODESET
|
||||||
# define bind_textdomain_codeset(Domain, Codeset) (Domain)
|
# define bind_textdomain_codeset(Domain, Codeset) (Domain)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif /* __GIMPINTL_H__ */
|
#endif /* __GIMPINTL_H__ */
|
||||||
|
@ -26,22 +26,19 @@
|
|||||||
#error "config.h must be included prior to libgimp-intl.h"
|
#error "config.h must be included prior to libgimp-intl.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_NLS
|
|
||||||
#include <libintl.h>
|
#include <libintl.h>
|
||||||
|
|
||||||
|
|
||||||
#define _(String) dgettext ("gimp14-libgimp", String)
|
#define _(String) dgettext ("gimp14-libgimp", String)
|
||||||
|
|
||||||
#undef gettext
|
#undef gettext
|
||||||
#define gettext(String) dgettext ("gimp14-libgimp", String)
|
#define gettext(String) dgettext ("gimp14-libgimp", String)
|
||||||
|
|
||||||
#ifdef gettext_noop
|
#ifdef gettext_noop
|
||||||
# define N_(String) gettext_noop (String)
|
# define N_(String) gettext_noop (String)
|
||||||
#else
|
#else
|
||||||
# define N_(String) (String)
|
# define N_(String) (String)
|
||||||
#endif
|
#endif
|
||||||
#else
|
|
||||||
/* Stubs that do something close enough. */
|
|
||||||
# define gettext(String) (String)
|
|
||||||
# define _(String) (String)
|
|
||||||
# define N_(String) (String)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* __LIBGIMP_INTL_H__ */
|
#endif /* __LIBGIMP_INTL_H__ */
|
||||||
|
@ -252,11 +252,7 @@ script_fu_find_scripts (void)
|
|||||||
g_tree_destroy (script_list);
|
g_tree_destroy (script_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_NLS
|
|
||||||
script_list = g_tree_new ((GCompareFunc) strcoll);
|
script_list = g_tree_new ((GCompareFunc) strcoll);
|
||||||
#else
|
|
||||||
script_list = g_tree_new ((GCompareFunc) strcmp);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
path_str = gimp_gimprc_query ("script-fu-path");
|
path_str = gimp_gimprc_query ("script-fu-path");
|
||||||
|
|
||||||
|
@ -252,11 +252,7 @@ script_fu_find_scripts (void)
|
|||||||
g_tree_destroy (script_list);
|
g_tree_destroy (script_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_NLS
|
|
||||||
script_list = g_tree_new ((GCompareFunc) strcoll);
|
script_list = g_tree_new ((GCompareFunc) strcoll);
|
||||||
#else
|
|
||||||
script_list = g_tree_new ((GCompareFunc) strcmp);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
path_str = gimp_gimprc_query ("script-fu-path");
|
path_str = gimp_gimprc_query ("script-fu-path");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user