Commit 929045df authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

libgimp/Makefile.am new file to be included by libgimp files only.

2000-01-28  Michael Natterer  <mitch@gimp.org>

	* libgimp/Makefile.am
	* libgimp/libgimp-intl.h: new file to be included by libgimp files
	only. Re-defines _() and gettext() as dgettext() and N_() as
	dgettext_noop().
	This way the translations of the various widgets which are used in
	both the app and plugins are searched in the correct catalog.

	* libgimp/gimpcolorbutton.c
	* libgimp/gimpexport.c
	* libgimp/gimpfileselection.c
	* libgimp/gimpunit.c
	* libgimp/gimpunitmenu.c
	* libgimp/gimpwidgets.c: #include "libgimp-intl.h"
parent 38c66a65
2000-01-28 Michael Natterer <mitch@gimp.org>
* libgimp/Makefile.am
* libgimp/libgimp-intl.h: new file to be included by libgimp files
only. Re-defines _() and gettext() as dgettext() and N_() as
dgettext_noop().
This way the translations of the various widgets which are used in
both the app and plugins are searched in the correct catalog.
* libgimp/gimpcolorbutton.c
* libgimp/gimpexport.c
* libgimp/gimpfileselection.c
* libgimp/gimpunit.c
* libgimp/gimpunitmenu.c
* libgimp/gimpwidgets.c: #include "libgimp-intl.h"
2000-01-28 Michael Natterer <mitch@gimp.org>
 
* libgimp/gimpwidgets.[ch]: added one more option menu constructor
......
......@@ -103,7 +103,8 @@ libgimp_la_SOURCES = \
parasiteP.h \
parasiteio.c \
parasiteio.h \
stdplugins-intl.h
stdplugins-intl.h \
libgimp-intl.h
libgimpui_la_SOURCES = \
gimpmenu.c \
......
......@@ -31,9 +31,10 @@
#include "gimp.h"
#include "gimpcolorbutton.h"
#include "gimpintl.h"
#include "gimplimits.h"
#include "libgimp-intl.h"
/* DND -- remove as soon as gimpdnd is in libgimp */
#define DRAG_PREVIEW_SIZE 32
......
......@@ -24,7 +24,8 @@
#include "gimpdialog.h"
#include "gimpenums.h"
#include "gimpexport.h"
#include "gimpintl.h"
#include "libgimp-intl.h"
typedef void (* ExportFunc) (gint32 imageID, gint32 *drawable_ID);
......
......@@ -32,7 +32,7 @@
#include "gimpfileselection.h"
#include "libgimp/gimpintl.h"
#include "libgimp-intl.h"
#include "pixmaps/yes.xpm"
#include "pixmaps/no.xpm"
......
......@@ -21,9 +21,11 @@
*/
#include "config.h"
#include "gimp.h"
#include "gimpunit.h"
#include "libgimp/gimpintl.h"
#include "libgimp-intl.h"
/* internal structures */
......
......@@ -21,9 +21,11 @@
*/
#include "config.h"
#include "gimp.h"
#include "gimpunit.h"
#include "libgimp/gimpintl.h"
#include "libgimp-intl.h"
/* internal structures */
......
......@@ -21,9 +21,11 @@
*/
#include "config.h"
#include "gimp.h"
#include "gimpunit.h"
#include "libgimp/gimpintl.h"
#include "libgimp-intl.h"
/* internal structures */
......
......@@ -24,7 +24,7 @@
#include "gimpdialog.h"
#include "gimpunitmenu.h"
#include "gimpintl.h"
#include "libgimp-intl.h"
/* private functions */
static const gchar * gimp_unit_menu_build_string (gchar *format,
......
......@@ -20,12 +20,14 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "gimphelpui.h"
#include "gimpunitmenu.h"
#include "gimpwidgets.h"
#include "gimpmath.h"
#include "gimpintl.h"
#include "libgimp-intl.h"
/*
* Forward declarations
......
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
* libgimp-intl.h
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __LIBGIMP_INTL_H__
#define __LIBGIMP_INTL_H__
#ifdef ENABLE_NLS
# include <libintl.h>
# define _(String) dgettext ("gimp-std-plugins", String)
# undef gettext
# define gettext(String) dgettext ("gimp-std-plugins", String)
# ifdef gettext_noop
# define N_(String) dgettext_noop ("gimp-std_plugins", String)
# else
# define N_(String) (String)
# endif
#else
/* Stubs that do something close enough. */
# define gettext(String) (String)
# define _(String) (String)
# define N_(String) (String)
#endif
#endif /* __LIBGIMP_INTL_H__ */
......@@ -31,9 +31,10 @@
#include "gimp.h"
#include "gimpcolorbutton.h"
#include "gimpintl.h"
#include "gimplimits.h"
#include "libgimp-intl.h"
/* DND -- remove as soon as gimpdnd is in libgimp */
#define DRAG_PREVIEW_SIZE 32
......
......@@ -32,7 +32,7 @@
#include "gimpfileselection.h"
#include "libgimp/gimpintl.h"
#include "libgimp-intl.h"
#include "pixmaps/yes.xpm"
#include "pixmaps/no.xpm"
......
......@@ -32,7 +32,7 @@
#include "gimpfileselection.h"
#include "libgimp/gimpintl.h"
#include "libgimp-intl.h"
#include "pixmaps/yes.xpm"
#include "pixmaps/no.xpm"
......
......@@ -24,7 +24,7 @@
#include "gimpdialog.h"
#include "gimpunitmenu.h"
#include "gimpintl.h"
#include "libgimp-intl.h"
/* private functions */
static const gchar * gimp_unit_menu_build_string (gchar *format,
......
......@@ -20,12 +20,14 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "gimphelpui.h"
#include "gimpunitmenu.h"
#include "gimpwidgets.h"
#include "gimpmath.h"
#include "gimpintl.h"
#include "libgimp-intl.h"
/*
* Forward declarations
......
Supports Markdown
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