1d4d6bc7eefb6a710dd7007b7acbd4985b059f05
[supertux.git] / lib / app / gettext.h
1 /* 
2    This program is free software; you can redistribute it and/or modify it
3    under the terms of the GNU Library General Public License as published
4    by the Free Software Foundation; either version 2, or (at your option)
5    any later version.
6
7    This program is distributed in the hope that it will be useful,
8    but WITHOUT ANY WARRANTY; without even the implied warranty of
9    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10    Library 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
15    USA.  */
16
17 #ifndef _LIBGETTEXT_H
18 #define _LIBGETTEXT_H 1
19
20 #include "globals.h"
21
22 #define _(String) \
23   SuperTux::dictionary_manager.get_dictionary().translate(String).c_str()
24 #define N_(id, id2, num) \
25   SuperTux::dictionary_manager.get_dictionary().translate(id, di2, num).c_str()
26
27 #endif /* _LIBGETTEXT_H */