script-fu-intl.h 1.42 KB
Newer Older
1
/* GIMP - The GNU Image Manipulation Program
2 3 4 5
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 *
 * script-fu-intl.h
 *
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 14 15 16
 * 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
17 18
 * License along with this library.  If not, see
 * <http://www.gnu.org/licenses/>.
19
 */
20

21 22 23
#ifndef __SCRIPT_FU_INTL_H__
#define __SCRIPT_FU_INTL_H__

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

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


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

35
#define INIT_I18N()	G_STMT_START{			          \
36 37
  bindtextdomain (GETTEXT_PACKAGE"-script-fu",                    \
                  gimp_locale_directory ());                      \
38
  bind_textdomain_codeset (GETTEXT_PACKAGE"-script-fu", "UTF-8"); \
39
  textdomain (GETTEXT_PACKAGE"-script-fu");                       \
40
}G_STMT_END
41

42

43
#endif /* __SCRIPT_FU_INTL_H__ */