Add README
[tilda-gobject.git] / translation.h
1 /*
2  * This is free software; you can redistribute it and/or modify it under
3  * the terms of the GNU Library General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful, but
8  * WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10  * General Public License for more details.
11  *
12  * You should have received a copy of the GNU Library General Public
13  * License along with this program; if not, write to the Free Software
14  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15  */
16
17 #ifndef TRANSLATION_H
18 #define TRANSLATION_H
19
20 G_BEGIN_DECLS
21
22 /* Things for translations */
23 #include "gettext.h"
24
25 #if HAVE_LOCALE_H
26         #include <locale.h>
27 #endif
28
29 #if ENABLE_NLS
30         #define _(STR) gettext(STR)
31         #define N_(STR) gettext_noop(STR)
32 #else
33         #define _(STR) STR
34         #define N_(STR) STR
35 #endif
36
37 G_END_DECLS
38
39 #endif /* TRANSLATION_H */
40
41 /* vim: set ts=4 sts=4 sw=4 noet tw=112: */