2003-12-05 07:55:15 -08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
2000-01-27 11:26:00 -08:00
|
|
|
*
|
2000-02-25 19:41:06 -08:00
|
|
|
* stdplugins-intl.h
|
2000-01-27 11:26:00 -08:00
|
|
|
*
|
2009-01-17 14:28:01 -08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2000-01-27 11:26:00 -08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-17 14:28:01 -08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2003-12-05 07:55:15 -08:00
|
|
|
*
|
2000-02-25 19:41:06 -08:00
|
|
|
* 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
|
2000-01-27 11:26:00 -08:00
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-17 14:28:01 -08:00
|
|
|
* License along with this library. If not, see
|
2018-07-11 14:27:07 -07:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
2000-01-27 11:26:00 -08:00
|
|
|
*/
|
2000-05-30 16:38:46 -07:00
|
|
|
|
2025-08-13 15:21:42 -07:00
|
|
|
#ifndef __STDPLUGINS_INTL_H__
|
|
|
|
|
#define __STDPLUGINS_INTL_H__
|
1999-09-24 18:59:43 -07:00
|
|
|
|
2003-03-25 08:38:19 -08:00
|
|
|
#ifndef GETTEXT_PACKAGE
|
|
|
|
|
#error "config.h must be included prior to stdplugins-intl.h"
|
|
|
|
|
#endif
|
1999-09-24 18:59:43 -07:00
|
|
|
|
2006-06-27 00:55:41 -07:00
|
|
|
#include <glib/gi18n.h>
|
2003-03-25 08:38:19 -08:00
|
|
|
|
2000-05-30 16:38:46 -07:00
|
|
|
|
2022-05-25 15:59:36 -07:00
|
|
|
#define DEFINE_STD_SET_I18N \
|
|
|
|
|
static gboolean \
|
|
|
|
|
set_i18n (GimpPlugIn *plug_in, \
|
|
|
|
|
const gchar *procedure_name, \
|
|
|
|
|
gchar **gettext_domain, \
|
|
|
|
|
gchar **catalog_dir) \
|
|
|
|
|
{ \
|
|
|
|
|
*gettext_domain = g_strdup (GETTEXT_PACKAGE"-std-plug-ins"); \
|
|
|
|
|
return TRUE; \
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#define STD_SET_I18N set_i18n
|
2025-08-13 15:21:42 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __STDPLUGINS_INTL_H__ */
|