Skip to content

Commit

Permalink
turn i18n back on: should fix issue #8
Browse files Browse the repository at this point in the history
  • Loading branch information
bbidulock committed Aug 3, 2014
1 parent eb98744 commit 04dc06e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 8 deletions.
32 changes: 28 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([icewm], [1.3.8.76], [http://github.com/bbidulock/icewm])
AC_INIT([icewm], [1.3.8.81], [http://github.com/bbidulock/icewm])
AC_CONFIG_SRCDIR([src/ysmapp.cc])
AC_CONFIG_AUX_DIR([scripts])
AC_CONFIG_MACRO_DIR([m4])
Expand All @@ -19,11 +22,13 @@ AC_USE_SYSTEM_EXTENSIONS
# Checks for programs.
AC_LANG_CPLUSPLUS
AC_PROG_CXX
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_MKDIR_P
AC_PROG_INSTALL
AC_ARG_VAR([LD], [Linker loader command])

AC_ARG_VAR([MKFONTDIR],[mkfontdir command. @<:@default=mkfontdir@:>@])
Expand All @@ -35,11 +40,23 @@ LT_INIT([dlopen])
LT_LANG([C++])
AC_SUBST([LIBTOOL_DEPS])

AM_GNU_GETTEXT_VERSION([0.19.1])
AM_GNU_GETTEXT_VERSION([0.19.2])
AM_GNU_GETTEXT([external])

PKG_PROG_PKG_CONFIG
AC_ARG_ENABLE([i18n],
AC_HELP_STRING([--disable-i18n],[Disable internationalization.]))
if test x$enable_i18n != xno; then
AC_DEFINE([CONFIG_I18N], [1], [Define to enable internationalization.])
features="$features i18n"
fi

AC_ARG_WITH([unicode-set],
AC_HELP_STRING([--with-unicode-set=CODESET],[Your iconv unicode set in
machine endian encoding (e.g. WCHAR_T, UCS-4-INTERNAL, UCS-4LE,
UCS-4BE)]),
[AC_DEFINE_UNQUOTED([CONFIG_UNICODE_SET],"$with_unicode_set",[Preferred unicode set.])])

PKG_PROG_PKG_CONFIG

# Checks for libraries.

Expand Down Expand Up @@ -181,6 +198,13 @@ else
fi
fi

AC_ARG_ENABLE([pda],
AC_HELP_STRING([--enable-pda],[Enable PDA operation (disables window hiding).]))
if test x$enable_pda = xyes; then
AC_DEFINE([CONFIG_PDA],[1],[Define to enable PDA operation (no window hiding).])
features="${features} pda"
fi

AC_ARG_ENABLE([guievents],
AC_HELP_STRING([--enable-guievents],[Enable GUI events (experimental).]))
AC_ARG_WITH([icesound],
Expand Down
3 changes: 1 addition & 2 deletions src/wmtaskbar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,11 @@ TaskBar::~TaskBar() {
taskbuttonPixmap = null;
taskbuttonactivePixmap = null;
taskbuttonminimizedPixmap = null;
#ifdef CONFIG_GRADIENT
#ifdef CONFIG_GRADIENTS
taskbackPixbuf = null;
taskbuttonPixbuf = null;
taskbuttonactivePixbuf = null;
taskbuttonminimizedPixbuf = null;
delete fGradient;
#endif
startImage = null;
windowsImage = null;
Expand Down
10 changes: 8 additions & 2 deletions src/ylocale.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,17 @@ YLocale::YLocale(char const * localeName) {
"Falling back to 'C' locale'."));
fLocaleName = setlocale(LC_ALL, "C");
}
#warning "P1 should always use multibyte/fontset if I18N"
// #warning "P1 should always use multibyte/fontset if I18N"
multiByte = (MB_CUR_MAX > 1);

char const * codeset = NULL;
int const codesetItems[] = { CONFIG_NL_CODESETS };
int const codesetItems[] = {
#ifdef CONFIG_NL_CODESETS
CONFIG_NL_CODESETS
#else
CODESET, _NL_CTYPE_CODESET_NAME, 0
#endif
};

for (unsigned int i = 0;
i < sizeof(codesetItems)/sizeof(int) - 1
Expand Down

0 comments on commit 04dc06e

Please sign in to comment.