Debian Codegraph @

src/lisp/translation.hpp

raw symbols SCIP
1 // $Id: translation.hpp 848 2006-10-29 02:14:04Z coz $
2 //
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License
5 // as published by the Free Software Foundation; either version 2
6 // of the License, or (at your option) any later version.
7 //
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 #ifndef __TRANSLATION_H__
17 #define __TRANSLATION_H__
18
19 /** This is not a header providing functional translation support. It just
20 * exists to allow using the lisp parser code from SuperTuxKart without
21 * changes.
22 */
23
24 #ifdef HAS_GETTEXT
25 # include <libintl.h>
26 # define _(String) gettext(String)
27 # define gettext_noop(String) String
28 # define N_(String) gettext_noop (String)
29 #else
30 # define _(String) (String)
31 # define gettext_noop(String) String
32 # define N_(String) String
33 # define textdomain(Domain)
34 # define bindtextdomain(Package, Directory)
35 #endif
36
37 namespace lisp
38 {
39 static const int MAX_ERROR_MESSAGE_LENGTH = 512;
40
41 }
42 #endif
43