stardict/patches/002-dont-need-hotkey-in-nanonote.patch |
6 | 6 | --- |
7 | 7 | |
8 | 8 | configure.in | 26 ++- |
| 9 | m4/nls.m4 | 31 ++++ |
9 | 10 | src/class_factory.cpp | 2 |
10 | 11 | src/conf.cpp | 6 - |
11 | 12 | src/mainwin.cpp | 9 + |
12 | 13 | src/stardict.cpp | 35 +++- |
13 | 14 | src/x11_iskeyspressed.cpp | 351 --------------------------------------------- |
14 | 15 | src/x11_iskeyspressed.hpp | 65 -------- |
15 | | 7 files changed, 44 insertions(+), 450 deletions(-) |
| 16 | 8 files changed, 75 insertions(+), 450 deletions(-) |
| 17 | create mode 100644 m4/nls.m4 |
16 | 18 | |
17 | 19 | |
18 | 20 | diff --git a/configure.in b/configure.in |
... | ... | |
54 | 56 | |
55 | 57 | AC_SUBST(STARDICT_LIBS) |
56 | 58 | AC_SUBST(STARDICT_CFLAGS) |
| 59 | diff --git a/m4/nls.m4 b/m4/nls.m4 |
| 60 | new file mode 100644 |
| 61 | index 0000000..7967cc2 |
| 62 | --- /dev/null |
| 63 | @@ -0,0 +1,31 @@ |
| 64 | +# nls.m4 serial 3 (gettext-0.15) |
| 65 | +dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. |
| 66 | +dnl This file is free software; the Free Software Foundation |
| 67 | +dnl gives unlimited permission to copy and/or distribute it, |
| 68 | +dnl with or without modifications, as long as this notice is preserved. |
| 69 | +dnl |
| 70 | +dnl This file can can be used in projects which are not available under |
| 71 | +dnl the GNU General Public License or the GNU Library General Public |
| 72 | +dnl License but which still want to provide support for the GNU gettext |
| 73 | +dnl functionality. |
| 74 | +dnl Please note that the actual code of the GNU gettext library is covered |
| 75 | +dnl by the GNU Library General Public License, and the rest of the GNU |
| 76 | +dnl gettext package package is covered by the GNU General Public License. |
| 77 | +dnl They are *not* in the public domain. |
| 78 | + |
| 79 | +dnl Authors: |
| 80 | +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
| 81 | +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
| 82 | + |
| 83 | +AC_PREREQ(2.50) |
| 84 | + |
| 85 | +AC_DEFUN([AM_NLS], |
| 86 | +[ |
| 87 | + AC_MSG_CHECKING([whether NLS is requested]) |
| 88 | + dnl Default is enabled NLS |
| 89 | + AC_ARG_ENABLE(nls, |
| 90 | + [ --disable-nls do not use Native Language Support], |
| 91 | + USE_NLS=$enableval, USE_NLS=yes) |
| 92 | + AC_MSG_RESULT($USE_NLS) |
| 93 | + AC_SUBST(USE_NLS) |
| 94 | +]) |
57 | 95 | diff --git a/src/class_factory.cpp b/src/class_factory.cpp |
58 | 96 | index 8bff538..d1dddc2 100644 |
59 | 97 | --- a/src/class_factory.cpp |