Aji's patch to enable localized date.
SVN revision: 33474
This commit is contained in:
parent
505b02b243
commit
dcc44baa1d
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue