1 /*
2 * Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation
3 * All rights reserved.
4 *
5 * This file is part of the Gnome Devtools Library.
6 *
7 * The Gnome Devtools Library is free software; you can redistribute
8 * it and/or modify it under the terms of the GNU Library General
9 * Public License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * The Gnome Devtools Library is distributed in the hope that it will
13 * be useful, but WITHOUT ANY WARRANTY; without even the implied
14 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 * See the GNU Library General Public License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public
18 * License along with the Gnome Library; see the file COPYING.LIB. If not,
19 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
21 */
23 #ifdef HAVE_CONFIG_H
24 #include "config.h"
25 #endif
27 #include "gdl-i18n.h"
29 char *
30 gdl_gettext (const char *msgid)
31 {
32 static gboolean initialized = FALSE;
34 if (!initialized) {
35 /* bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); */
36 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
37 initialized = TRUE;
38 }
40 return dgettext (GETTEXT_PACKAGE, msgid);
41 }