[msgwin] Reset compiler/messages treeview width at start of build/search (#3816)
[geany-mirror.git] / src / support.h
blobf63f36bc942f11e4b4b021ef2bb21b05a27d28c6
1 /*
2 * support.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2006 The Geany contributors
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 /**
22 * @file support.h
23 * Defines internationalization macros.
24 * @see GLib's @c gi18n-lib.h.
25 **/
27 #ifndef GEANY_SUPPORT_H
28 #define GEANY_SUPPORT_H 1
30 #include <glib.h>
32 G_BEGIN_DECLS
34 #ifdef GETTEXT_PACKAGE
35 # include <glib/gi18n-lib.h>
36 #else
37 # define GETTEXT_PACKAGE NULL
38 # define textdomain(String) (String)
39 # define bind_textdomain_codeset(Domain,Codeset) (Codeset)
40 # define bindtextdomain(Domain,Dir) (Dir)
41 # define ngettext(String,PluralString,Number) (((Number) == 1) ? (String) : (PluralString))
42 # define _(String) String
43 # define N_(String) String
44 # define C_(Context,String) (String)
45 #endif
47 G_END_DECLS
49 #endif /* GEANY_SUPPORT_H */