Line | Count | Source |
1 | ||
2 | #include "gettext.h" | |
3 | ||
4 | #if ENABLE_NLS | |
5 | ||
6 | #include "lock.hpp" | |
7 | ||
8 | static acommon::Mutex lock; | |
9 | ||
10 | static bool did_init = false; | |
11 | ||
12 | extern "C" void aspell_gettext_init() | |
13 | { | |
14 | { | |
15 | acommon::Lock l(&lock); | |
16 | if (did_init) return; | |
17 | did_init = true; | |
18 | } | |
19 | bindtextdomain("aspell", LOCALEDIR); | |
20 | } | |
21 | ||
22 | #else | |
23 | ||
24 | extern "C" void aspell_gettext_init() | |
25 | 3.50k | { |
26 | 3.50k | } |
27 | ||
28 | #endif |