Commit 4c73ba1b authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

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().
parent 7b1327dd
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment