diff options
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | hangul/hangulkeyboard.c | 2 | ||||
-rw-r--r-- | tools/hangul.c | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index e527084..7cf9656 100644 --- a/configure.ac +++ b/configure.ac @@ -59,6 +59,9 @@ GETTEXT_PACKAGE="$PACKAGE" AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", gettext package name) AM_ICONV +if test x$USE_NLS = xyes; then + AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if translation of program messages is requested.]) +fi # Checks for pkgconfig PKG_PROG_PKG_CONFIG diff --git a/hangul/hangulkeyboard.c b/hangul/hangulkeyboard.c index 9ebaca6..53b9d74 100644 --- a/hangul/hangulkeyboard.c +++ b/hangul/hangulkeyboard.c @@ -881,7 +881,7 @@ hangul_builtin_keyboard_list_get_keyboard_name(unsigned index_) if (keyboard == NULL) return NULL; - return keyboard->name; + return _(keyboard->name); } static const HangulKeyboard* diff --git a/tools/hangul.c b/tools/hangul.c index 507af4e..cd62ae6 100644 --- a/tools/hangul.c +++ b/tools/hangul.c @@ -137,7 +137,7 @@ list_keyboards() // bind_textdomain_codeset() 함수가 불린후 다시 설정하도록 한다. const char* codeset = nl_langinfo(CODESET); if (codeset != NULL) { - hangul_ic_get_keyboard_name(0); + hangul_keyboard_list_get_keyboard_name(0); bind_textdomain_codeset(GETTEXT_PACKAGE, codeset); } } |