mirror of https://github.com/GNOME/gimp.git
Applied patch from Zbigniew Chyla:
2006-06-27 Sven Neumann <sven@gimp.org> Applied patch from Zbigniew Chyla: * app/gimp-intl.h * libgimp/stdplugins-intl.h: removed most content and include <glib/gi18n.h> instead. * libgimp/libgimp-intl.h: define ngettext() macro as wrapper around dngettext().
This commit is contained in:
parent
7b1327dd86
commit
4c73ba1b17
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2006-06-27 Sven Neumann <sven@gimp.org>
|
||||
|
||||
Applied patch from Zbigniew Chyla:
|
||||
|
||||
* app/gimp-intl.h
|
||||
* libgimp/stdplugins-intl.h: removed most content and include
|
||||
<glib/gi18n.h> instead.
|
||||
|
||||
* libgimp/libgimp-intl.h: define ngettext() macro as wrapper around
|
||||
dngettext().
|
||||
|
||||
2006-06-27 Sven Neumann <sven@gimp.org>
|
||||
|
||||
I18n improvements based on a patch from Zbigniew Chyla:
|
||||
|
|
|
@ -19,20 +19,10 @@
|
|||
#ifndef __GIMP_INTL_H__
|
||||
#define __GIMP_INTL_H__
|
||||
|
||||
|
||||
#ifndef GETTEXT_PACKAGE
|
||||
#error "config.h must be included prior to gimp-intl.h"
|
||||
#endif
|
||||
|
||||
#include <libintl.h>
|
||||
|
||||
#define _(String) gettext (String)
|
||||
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
# define N_(String) (String)
|
||||
#endif
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#endif /* __GIMP_INTL_H__ */
|
||||
|
|
|
@ -34,6 +34,9 @@
|
|||
#undef gettext
|
||||
#define gettext(String) dgettext (GETTEXT_PACKAGE "-libgimp", String)
|
||||
|
||||
#undef ngettext
|
||||
#define ngettext(String1, String2, number) dngettext (GETTEXT_PACKAGE "-libgimp", String1, String2, number)
|
||||
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
|
|
|
@ -26,16 +26,7 @@
|
|||
#error "config.h must be included prior to stdplugins-intl.h"
|
||||
#endif
|
||||
|
||||
#include <libintl.h>
|
||||
|
||||
|
||||
#define _(String) gettext (String)
|
||||
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
# define N_(String) (String)
|
||||
#endif
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#ifndef HAVE_BIND_TEXTDOMAIN_CODESET
|
||||
# define bind_textdomain_codeset(Domain, Codeset) (Domain)
|
||||
|
|
Loading…
Reference in New Issue