1 |
/* wptNLS.h - NLS headerfile |
2 |
* Copyright (C) 2001, 2002, 200, 2009 Timo Schulz |
3 |
* |
4 |
* This file is part of WinPT. |
5 |
* |
6 |
* WinPT 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. |
10 |
* |
11 |
* WinPT 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 GNU |
14 |
* General Public License for more details. |
15 |
*/ |
16 |
|
17 |
#ifndef WPT_NLS_H |
18 |
#define WPT_NLS_H |
19 |
|
20 |
#define _(a) gettext (a) |
21 |
#define N_(a) (a) |
22 |
|
23 |
struct lang_table_s { |
24 |
const char *id; |
25 |
const char *name; |
26 |
int langid; |
27 |
}; |
28 |
|
29 |
struct gettext_tab_s { |
30 |
int ctlid; |
31 |
const char *trans; |
32 |
}; |
33 |
typedef gettext_tab_s *gettext_tab_t; |
34 |
|
35 |
extern struct lang_table_s lang_list[]; |
36 |
|
37 |
const char* gettext (const char * msgid); |
38 |
const char* gettext_get_langid (void); |
39 |
char* get_locale_name(const char *file); |
40 |
void gettext_localize_dialog (HWND dlg, gettext_tab_t tab, const char *title); |
41 |
int gettext_domain_needs_refresh (void); |
42 |
void gettext_set_user_domain (void); |
43 |
void gettext_free_current_domain (void); |
44 |
|
45 |
#endif /* WPT_NLS_H */ |