1 |
werner |
37 |
/* wptNLS.h - NLS headerfile |
2 |
twoaday |
329 |
* Copyright (C) 2001, 2002, 200, 2009 Timo Schulz |
3 |
werner |
37 |
* |
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 |
twoaday |
192 |
#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 |
twoaday |
176 |
struct gettext_tab_s { |
30 |
|
|
int ctlid; |
31 |
|
|
const char *trans; |
32 |
|
|
}; |
33 |
twoaday |
373 |
typedef gettext_tab_s *gettext_tab_t; |
34 |
twoaday |
176 |
|
35 |
twoaday |
192 |
extern struct lang_table_s lang_list[]; |
36 |
werner |
37 |
|
37 |
twoaday |
373 |
const char* gettext (const char * msgid); |
38 |
|
|
const char* gettext_get_langid (void); |
39 |
twoaday |
329 |
char* get_locale_name(const char *file); |
40 |
twoaday |
373 |
void gettext_localize_dialog (HWND dlg, gettext_tab_t tab, const char *title); |
41 |
twoaday |
329 |
int gettext_domain_needs_refresh (void); |
42 |
twoaday |
373 |
void gettext_set_user_domain (void); |
43 |
twoaday |
329 |
void gettext_free_current_domain (void); |
44 |
werner |
37 |
|
45 |
|
|
#endif /* WPT_NLS_H */ |