Skip to content

Commit

Permalink
gettext 적용
Browse files Browse the repository at this point in the history
git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@251 8f00fcd2-89fc-0310-932e-b01be5b65e01
  • Loading branch information
choehwanjin committed Dec 29, 2010
1 parent ef97f53 commit 1a24fd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions tools/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
bin_PROGRAMS = hangul

hangul_SOURCES = hangul.c
hangul_CFLAGS = -DLOCALEDIR=\"$(localedir)\"
hangul_LDADD = ../hangul/libhangul.la
7 changes: 5 additions & 2 deletions tools/hangul.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1a24fd5

Please sign in to comment.