Aji's patch to enable localized date.

SVN revision: 33474
This commit is contained in:
lok 2008-01-13 21:34:55 +00:00 committed by lok
parent 505b02b243
commit dcc44baa1d
2 changed files with 7 additions and 1 deletions

View File

@ -17,7 +17,7 @@ AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_HEADER_TIME
AC_CHECK_HEADERS(sys/time.h)
AC_CHECK_HEADERS(sys/time.h locale.h)
AC_C_CONST
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl

View File

@ -10,6 +10,9 @@
# include <time.h>
# endif
#endif
#if HAVE_LOCALE_H
# include <locale.h>
#endif
/* Func Proto Requirements for Gadcon */
static E_Gadcon_Client *_gc_init (E_Gadcon *gc, const char *name, const char *id, const char *style);
@ -449,6 +452,9 @@ e_modapi_init (E_Module * m)
{
char buf[4096];
#if HAVE_LOCALE_H
setlocale(LC_ALL, "");
#endif
snprintf (buf, sizeof (buf), "%s/locale", e_module_dir_get (m));
bindtextdomain (PACKAGE, buf);
bind_textdomain_codeset (PACKAGE, "UTF-8");