diff options
Diffstat (limited to 'tools/hangul.c')
-rw-r--r-- | tools/hangul.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/hangul.c b/tools/hangul.c index 699ec28..9fe6bf3 100644 --- a/tools/hangul.c +++ b/tools/hangul.c @@ -14,8 +14,7 @@ #include <iconv.h> #include "../hangul/hangul.h" - -#define _(x) (x) +#include "../hangul/hangul-gettext.h" #ifdef WORDS_BIGENDIAN #define UCS4 "UCS-4BE" @@ -260,6 +259,10 @@ main(int argc, char *argv[]) HangulInputContext* ic; bool strict_order = false; +#ifdef ENABLE_NLS + bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); +#endif + setlocale(LC_ALL, ""); res = EXIT_SUCCESS; |