mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Use glib's gi18n.h instead of redefining gettext.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13299 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -30,6 +30,9 @@
|
|||||||
the dialog completes.
|
the dialog completes.
|
||||||
Fixes #329725.
|
Fixes #329725.
|
||||||
|
|
||||||
|
* lib/goffice-0.0.4/goffice/cut-and-paste/foo-canvas/foo-canvas-i18n.h:
|
||||||
|
Use glib's gi18n.h instead of redefining gettext.
|
||||||
|
|
||||||
2006-02-18 Derek Atkins <derek@ihtfp.com>
|
2006-02-18 Derek Atkins <derek@ihtfp.com>
|
||||||
|
|
||||||
* intl-scm/xgettext.scm: remove the absolute path from filenames
|
* intl-scm/xgettext.scm: remove the absolute path from filenames
|
||||||
|
|||||||
@@ -34,37 +34,6 @@
|
|||||||
#define __LIBFOO_CANVAS_I18N_H__
|
#define __LIBFOO_CANVAS_I18N_H__
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
#include <glib/gi18n.h>
|
||||||
G_BEGIN_DECLS
|
|
||||||
|
|
||||||
#if !defined(__LIBFOO_CANVAS_I18NP_H__)
|
|
||||||
|
|
||||||
#ifdef ENABLE_NLS
|
|
||||||
# include <libintl.h>
|
|
||||||
# ifdef GNOME_EXPLICIT_TRANSLATION_DOMAIN
|
|
||||||
# undef _
|
|
||||||
# define _(String) dgettext (GNOME_EXPLICIT_TRANSLATION_DOMAIN, String)
|
|
||||||
# else
|
|
||||||
# define _(String) gettext (String)
|
|
||||||
# endif
|
|
||||||
# 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
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
G_END_DECLS
|
|
||||||
|
|
||||||
#endif /* __LIBFOO_CANVAS_I18N_H__ */
|
#endif /* __LIBFOO_CANVAS_I18N_H__ */
|
||||||
|
|||||||
Reference in New Issue
Block a user