svnno****@sourc*****
svnno****@sourc*****
Mon Apr 16 10:51:20 JST 2007
Revision: 3199 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3199 Author: kous Date: 2007-04-16 10:51:20 +0900 (Mon, 16 Apr 2007) Log Message: ----------- * configure.ac: defined GETTEXT_PACKAGE. * src/main.c: used GETTEXT_PACKAGE instead of PACKAGE for gettext. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/configure.ac kazehakase/trunk/src/main.c Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2007-04-15 12:42:36 UTC (rev 3198) +++ kazehakase/trunk/ChangeLog 2007-04-16 01:51:20 UTC (rev 3199) @@ -1,3 +1,9 @@ +2007-04-16 Kouhei Sutou <kou****@cozmi*****> + + * configure.ac: defined GETTEXT_PACKAGE. + + * src/main.c: used GETTEXT_PACKAGE instead of PACKAGE for gettext. + 2007-04-15 Kouhei Sutou <kou****@cozmi*****> * src/net/kz-http.c (cb_http_connect): don't add ":PORT" to "Host" Modified: kazehakase/trunk/configure.ac =================================================================== --- kazehakase/trunk/configure.ac 2007-04-15 12:42:36 UTC (rev 3198) +++ kazehakase/trunk/configure.ac 2007-04-16 01:51:20 UTC (rev 3199) @@ -203,6 +203,7 @@ GETTEXT_PACKAGE=kazehakase AC_SUBST(GETTEXT_PACKAGE) +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [The gettext domain]) dnl ************************************************************** dnl Checks for programs. Modified: kazehakase/trunk/src/main.c =================================================================== --- kazehakase/trunk/src/main.c 2007-04-15 12:42:36 UTC (rev 3198) +++ kazehakase/trunk/src/main.c 2007-04-16 01:51:20 UTC (rev 3199) @@ -431,14 +431,14 @@ gchar *locale_dir; locale_dir = g_build_filename(kz_win32_base_path(), "share", "locale", NULL); - bindtextdomain(PACKAGE, locale_dir); + bindtextdomain(GETTEXT_PACKAGE, locale_dir); g_free(locale_dir); } #else - bindtextdomain(PACKAGE, LOCALEDIR); + bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); #endif - bind_textdomain_codeset(PACKAGE, "UTF-8"); - textdomain(PACKAGE); + bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); + textdomain(GETTEXT_PACKAGE); if (!g_thread_supported()) g_thread_init(NULL);