Fix high-score saving.
[neverball] / share / i18n.h
1 /*
2  * Copyright (C) 2006 Jean Privat
3  *
4  * this file is  free software; you can redistribute  it and/or modify
5  * it under the  terms of the GNU General  Public License as published
6  * by the Free  Software Foundation; either version 2  of the License,
7  * or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT  ANY  WARRANTY;  without   even  the  implied  warranty  of
11  * MERCHANTABILITY or  FITNESS FOR A PARTICULAR PURPOSE.   See the GNU
12  * General Public License for more details.
13  */
14
15 #ifndef LANGUAGE_H
16 #define LANGUAGE_H
17
18 #ifndef POSIX
19 #       include <libintl.h>
20 #       define _(String)            gettext(String)
21 #else
22 #       define _(String)            (String)
23 #endif
24
25 #define N_(String)           (String)
26
27 /*---------------------------------------------------------------------------*/
28
29 const char * gettextdbg(const char *);
30
31 const char * sgettext(const char *);
32
33 /*---------------------------------------------------------------------------*/
34
35 void language_init(const char * domain, const char * locale_dir);
36 void language_set(int id);
37
38 /*---------------------------------------------------------------------------*/
39
40 int language_count();
41 int language_from_code(const char * code);
42 const char * language_get_name(int id);
43 const char * language_get_code(int id);
44
45 /*---------------------------------------------------------------------------*/
46
47 #endif