stdplugins-intl.h 1.45 KB
Newer Older
1 2
/* LIBGIMP - The GIMP Library
 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
3
 *
4
 * stdplugins-intl.h
5
 *
6
 * This library is free software: you can redistribute it and/or
7 8
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
9
 * version 3 of the License, or (at your option) any later version.
10
 *
11 12 13
 * 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
14 15 16
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
17
 * License along with this library.  If not, see
18
 * <https://www.gnu.org/licenses/>.
19
 */
20

Manish Singh's avatar
Manish Singh committed
21 22
#ifndef __STDPLUGINS_INTL_H__
#define __STDPLUGINS_INTL_H__
23

24 25 26
#ifndef GETTEXT_PACKAGE
#error "config.h must be included prior to stdplugins-intl.h"
#endif
27

28
#include <glib/gi18n.h>
29 30 31 32

#ifndef HAVE_BIND_TEXTDOMAIN_CODESET
#    define bind_textdomain_codeset(Domain, Codeset) (Domain)
#endif
33

Jehan's avatar
Jehan committed
34
#define INIT_I18N()     G_STMT_START{                                \
35 36
  bindtextdomain (GETTEXT_PACKAGE"-std-plug-ins",                    \
                  gimp_locale_directory ());                         \
37
  bind_textdomain_codeset (GETTEXT_PACKAGE"-std-plug-ins", "UTF-8"); \
Jehan's avatar
Jehan committed
38
  textdomain (GETTEXT_PACKAGE"-std-plug-ins");                       \
39
}G_STMT_END
40

41

Manish Singh's avatar
Manish Singh committed
42
#endif /* __STDPLUGINS_INTL_H__ */