diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-16 08:13:10 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-16 08:13:10 +0000 |
commit | 56ac2b6a5d6eb829a7da8eecc04cbf5f9339e61b (patch) | |
tree | 5dc8009ac82abcfa8f22aa1ef38c85244af77a25 | |
parent | ae9ea0011da4ba01e5639611d61c442af8d42817 (diff) | |
download | gdbm-56ac2b6a5d6eb829a7da8eecc04cbf5f9339e61b.tar.gz gdbm-56ac2b6a5d6eb829a7da8eecc04cbf5f9339e61b.tar.bz2 |
Internationalization.
* Makefile.am (SUBDIRS): Add po.
(EXTRA_DIST): Add build-aux/config.rpath.
* configure.ac (AC_CONFIG_FILES): Add po/Makefile.in.
* bootstrap: New file.
* src/Makefile.am (AM_CPPFLAGS): Define LOCALEDIR
(noinst_HEADERS): Add gettext.h
(LIBADD): New variable.
* src/gettext.h: New file.
* po/.cvsignore: New file.
* po/Makevars: New file.
* po/POTFILES.in: New file.
* src/gdbmdefs.h: Define DEFAULT_TEXT_DOMAIN, _, N_
Include gettext.h
* src/bucket.c: Add NLS markers.
* src/falloc.c: Likewise.
* src/findkey.c: Likewise.
* src/gdbmerrno.c: Likewise.
* src/gdbmfetch.c: Likewise.
* src/gdbmseq.c: Likewise.
* src/gdbmstore.c: Likewise.
* src/update.c: Likewise.
* src/testgdbm.c: Add NLS markers.
(main): Initialize I18N.
-rw-r--r-- | .cvsignore | 1 | ||||
-rw-r--r-- | ChangeLog | 28 | ||||
-rw-r--r-- | Makefile.am | 4 | ||||
-rwxr-xr-x | bootstrap | 3 | ||||
-rw-r--r-- | configure.ac | 13 | ||||
-rw-r--r-- | po/.cvsignore | 20 | ||||
-rw-r--r-- | po/Makefile | 557 | ||||
-rw-r--r-- | po/Makevars | 60 | ||||
-rw-r--r-- | po/POTFILES.in | 23 | ||||
-rw-r--r-- | src/Makefile.am | 5 | ||||
-rw-r--r-- | src/bucket.c | 14 | ||||
-rw-r--r-- | src/falloc.c | 12 | ||||
-rw-r--r-- | src/findkey.c | 6 | ||||
-rw-r--r-- | src/gdbmdefs.h | 5 | ||||
-rw-r--r-- | src/gdbmerrno.c | 58 | ||||
-rw-r--r-- | src/gdbmfetch.c | 2 | ||||
-rw-r--r-- | src/gdbmseq.c | 2 | ||||
-rw-r--r-- | src/gdbmstore.c | 6 | ||||
-rw-r--r-- | src/gettext.h | 280 | ||||
-rw-r--r-- | src/testgdbm.c | 243 | ||||
-rw-r--r-- | src/update.c | 13 |
21 files changed, 1176 insertions, 179 deletions
@@ -1,5 +1,6 @@ | |||
1 | .emacs* | 1 | .emacs* |
2 | *.tar.* | 2 | *.tar.* |
3 | ABOUT-NLS | ||
3 | Makefile | 4 | Makefile |
4 | Makefile.in | 5 | Makefile.in |
5 | aclocal.m4 | 6 | aclocal.m4 |
@@ -1,3 +1,31 @@ | |||
1 | 2011-08-16 Sergey Poznyakoff <gray@gnu.org.ua> | ||
2 | |||
3 | Internationalization. | ||
4 | |||
5 | * Makefile.am (SUBDIRS): Add po. | ||
6 | (EXTRA_DIST): Add build-aux/config.rpath. | ||
7 | * configure.ac (AC_CONFIG_FILES): Add po/Makefile.in. | ||
8 | * bootstrap: New file. | ||
9 | * src/Makefile.am (AM_CPPFLAGS): Define LOCALEDIR | ||
10 | (noinst_HEADERS): Add gettext.h | ||
11 | (LIBADD): New variable. | ||
12 | * src/gettext.h: New file. | ||
13 | * po/.cvsignore: New file. | ||
14 | * po/Makevars: New file. | ||
15 | * po/POTFILES.in: New file. | ||
16 | * src/gdbmdefs.h: Define DEFAULT_TEXT_DOMAIN, _, N_ | ||
17 | Include gettext.h | ||
18 | * src/bucket.c: Add NLS markers. | ||
19 | * src/falloc.c: Likewise. | ||
20 | * src/findkey.c: Likewise. | ||
21 | * src/gdbmerrno.c: Likewise. | ||
22 | * src/gdbmfetch.c: Likewise. | ||
23 | * src/gdbmseq.c: Likewise. | ||
24 | * src/gdbmstore.c: Likewise. | ||
25 | * src/update.c: Likewise. | ||
26 | * src/testgdbm.c: Add NLS markers. | ||
27 | (main): Initialize I18N. | ||
28 | |||
1 | 2011-08-14 Sergey Poznyakoff <gray@gnu.org.ua> | 29 | 2011-08-14 Sergey Poznyakoff <gray@gnu.org.ua> |
2 | 30 | ||
3 | * compat/Makefile.am (libgdbm_compat_la_LIBADD): Link against | 31 | * compat/Makefile.am (libgdbm_compat_la_LIBADD): Link against |
diff --git a/Makefile.am b/Makefile.am index dfeb571..8768298 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -15,14 +15,14 @@ | |||
15 | # along with GDBM. If not, see <http://www.gnu.org/licenses/>. */ | 15 | # along with GDBM. If not, see <http://www.gnu.org/licenses/>. */ |
16 | 16 | ||
17 | ACLOCAL_AMFLAGS = -I m4 | 17 | ACLOCAL_AMFLAGS = -I m4 |
18 | EXTRA_DIST = NOTE-WARNING | 18 | EXTRA_DIST = build-aux/config.rpath NOTE-WARNING |
19 | if COMPAT_OPT | 19 | if COMPAT_OPT |
20 | MAYBE_COMPAT = compat | 20 | MAYBE_COMPAT = compat |
21 | endif | 21 | endif |
22 | if ENABLE_EXPORT | 22 | if ENABLE_EXPORT |
23 | MAYBE_EXPORT = export | 23 | MAYBE_EXPORT = export |
24 | endif | 24 | endif |
25 | SUBDIRS = src doc $(MAYBE_COMPAT) $(MAYBE_EXPORT) tests | 25 | SUBDIRS = po src doc $(MAYBE_COMPAT) $(MAYBE_EXPORT) tests |
26 | 26 | ||
27 | DISTCHECK_CONFIGURE_FLAGS = --enable-libgdbm-compat | 27 | DISTCHECK_CONFIGURE_FLAGS = --enable-libgdbm-compat |
28 | 28 | ||
diff --git a/bootstrap b/bootstrap new file mode 100755 index 0000000..edef987 --- /dev/null +++ b/bootstrap | |||
@@ -0,0 +1,3 @@ | |||
1 | #! /bin/sh | ||
2 | test -d m4 || mkdir m4 | ||
3 | autoreconf -f -i -s \ No newline at end of file | ||
diff --git a/configure.ac b/configure.ac index fe009d5..23da438 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -76,7 +76,8 @@ AC_ARG_WITH([gdbm183-includedir], | |||
76 | [Build gdbmexport with gdbm.h in the specified directory.]), | 76 | [Build gdbmexport with gdbm.h in the specified directory.]), |
77 | [GDBM183_INCLUDEDIR=$withval], | 77 | [GDBM183_INCLUDEDIR=$withval], |
78 | [GDBM183_INCLUDEDIR="/usr/local/include"]) | 78 | [GDBM183_INCLUDEDIR="/usr/local/include"]) |
79 | 79 | ||
80 | dnl Check for programs | ||
80 | AC_PROG_CC | 81 | AC_PROG_CC |
81 | AC_PROG_CPP | 82 | AC_PROG_CPP |
82 | AC_PROG_INSTALL | 83 | AC_PROG_INSTALL |
@@ -86,11 +87,15 @@ dnl AC_PROG_RANLIB | |||
86 | dnl AC_C_BIGENDIAN([]) | 87 | dnl AC_C_BIGENDIAN([]) |
87 | AC_C_CONST | 88 | AC_C_CONST |
88 | 89 | ||
89 | AC_CHECK_HEADERS([stdlib.h string.h sys/file.h unistd.h fcntl.h sys/types.h memory.h sys/termios.h]) | 90 | dnl Internationalization macros. |
91 | AM_GNU_GETTEXT([external], [need-ngettext]) | ||
92 | AM_GNU_GETTEXT_VERSION(0.18) | ||
93 | |||
94 | AC_CHECK_HEADERS([stdlib.h string.h sys/file.h unistd.h fcntl.h sys/types.h memory.h sys/termios.h locale.h]) | ||
90 | 95 | ||
91 | AC_CHECK_LIB(dbm, main) | 96 | AC_CHECK_LIB(dbm, main) |
92 | AC_CHECK_LIB(ndbm, main) | 97 | AC_CHECK_LIB(ndbm, main) |
93 | AC_CHECK_FUNCS([rename ftruncate flock lockf fsync]) | 98 | AC_CHECK_FUNCS([rename ftruncate flock lockf fsync setlocale]) |
94 | 99 | ||
95 | if test x$mapped_io = xyes | 100 | if test x$mapped_io = xyes |
96 | then | 101 | then |
@@ -109,7 +114,7 @@ AM_CONDITIONAL([ENABLE_EXPORT], [test "$want_export" = yes]) | |||
109 | 114 | ||
110 | # Initialize the test suite. | 115 | # Initialize the test suite. |
111 | AC_CONFIG_TESTDIR(tests) | 116 | AC_CONFIG_TESTDIR(tests) |
112 | AC_CONFIG_FILES([tests/Makefile tests/atlocal]) | 117 | AC_CONFIG_FILES([tests/Makefile tests/atlocal po/Makefile.in]) |
113 | AM_MISSING_PROG([AUTOM4TE], [autom4te]) | 118 | AM_MISSING_PROG([AUTOM4TE], [autom4te]) |
114 | 119 | ||
115 | AC_CONFIG_FILES([Makefile | 120 | AC_CONFIG_FILES([Makefile |
diff --git a/po/.cvsignore b/po/.cvsignore new file mode 100644 index 0000000..6c366a5 --- /dev/null +++ b/po/.cvsignore | |||
@@ -0,0 +1,20 @@ | |||
1 | *.gmo | ||
2 | *.mo | ||
3 | *.po | ||
4 | .reference | ||
5 | Makefile | ||
6 | Makefile.in | ||
7 | Makefile.in.in | ||
8 | Makevars.template | ||
9 | POTFILES | ||
10 | Rules-quot | ||
11 | boldquot.sed | ||
12 | gdbm.pot | ||
13 | en@boldquot.header | ||
14 | en@quot.header | ||
15 | insert-header.sed | ||
16 | insert-header.sin | ||
17 | quot.sed | ||
18 | remove-potcdate.sed | ||
19 | remove-potcdate.sin | ||
20 | stamp-po | ||
diff --git a/po/Makefile b/po/Makefile new file mode 100644 index 0000000..2a987f0 --- /dev/null +++ b/po/Makefile | |||
@@ -0,0 +1,557 @@ | |||
1 | # Makefile for PO directory in any package using GNU gettext. | ||
2 | # Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper <drepper@gnu.ai.mit.edu> | ||
3 | # | ||
4 | # This file can be copied and used freely without restrictions. It can | ||
5 | # be used in projects which are not available under the GNU General Public | ||
6 | # License but which still want to provide support for the GNU gettext | ||
7 | # functionality. | ||
8 | # Please note that the actual code of GNU gettext is covered by the GNU | ||
9 | # General Public License and is *not* in the public domain. | ||
10 | # | ||
11 | # Origin: gettext-0.18 | ||
12 | GETTEXT_MACRO_VERSION = 0.18 | ||
13 | |||
14 | PACKAGE = gdbm | ||
15 | VERSION = 1.9.1 | ||
16 | PACKAGE_BUGREPORT = bug-gdbm@gnu.org | ||
17 | |||
18 | SHELL = /bin/sh | ||
19 | |||
20 | |||
21 | srcdir = . | ||
22 | top_srcdir = .. | ||
23 | |||
24 | |||
25 | prefix = /home/gray/alpha | ||
26 | exec_prefix = ${prefix} | ||
27 | datarootdir = ${prefix}/share | ||
28 | datadir = ${datarootdir} | ||
29 | localedir = ${datarootdir}/locale | ||
30 | gettextsrcdir = $(datadir)/gettext/po | ||
31 | |||
32 | INSTALL = /usr/bin/ginstall -c | ||
33 | INSTALL_DATA = ${INSTALL} -m 644 | ||
34 | |||
35 | # We use $(mkdir_p). | ||
36 | # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as | ||
37 | # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, | ||
38 | # ${SHELL} /home/gray/gnu/gdbm/build-aux/install-sh does not start with $(SHELL), so we add it. | ||
39 | # In automake >= 1.10, /usr/bin/mkdir -p is derived from ${MKDIR_P}, which is defined | ||
40 | # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake | ||
41 | # versions, $(mkinstalldirs) and $(install_sh) are unused. | ||
42 | mkinstalldirs = $(SHELL) ${SHELL} /home/gray/gnu/gdbm/build-aux/install-sh -d | ||
43 | install_sh = $(SHELL) ${SHELL} /home/gray/gnu/gdbm/build-aux/install-sh | ||
44 | MKDIR_P = /usr/bin/mkdir -p | ||
45 | mkdir_p = /usr/bin/mkdir -p | ||
46 | |||
47 | GMSGFMT_ = /usr/bin/msgfmt | ||
48 | GMSGFMT_no = /usr/bin/msgfmt | ||
49 | GMSGFMT_yes = /usr/bin/msgfmt | ||
50 | GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) | ||
51 | MSGFMT_ = /usr/bin/msgfmt | ||
52 | MSGFMT_no = /usr/bin/msgfmt | ||
53 | MSGFMT_yes = /usr/bin/msgfmt | ||
54 | MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) | ||
55 | XGETTEXT_ = /usr/bin/xgettext | ||
56 | XGETTEXT_no = /usr/bin/xgettext | ||
57 | XGETTEXT_yes = /usr/bin/xgettext | ||
58 | XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) | ||
59 | MSGMERGE = msgmerge | ||
60 | MSGMERGE_UPDATE = /usr/bin/msgmerge --update | ||
61 | MSGINIT = msginit | ||
62 | MSGCONV = msgconv | ||
63 | MSGFILTER = msgfilter | ||
64 | |||
65 | POFILES = | ||
66 | GMOFILES = | ||
67 | UPDATEPOFILES = | ||
68 | DUMMYPOFILES = | ||
69 | DISTFILES.common = Makefile.in.in remove-potcdate.sin \ | ||
70 | $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) | ||
71 | DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ | ||
72 | $(POFILES) $(GMOFILES) \ | ||
73 | $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) | ||