summaryrefslogtreecommitdiffabout
path: root/src/gdbmstore.c
authorSergey Poznyakoff <gray@gnu.org.ua>2011-08-16 08:13:10 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-08-16 08:13:10 (GMT)
commit56ac2b6a5d6eb829a7da8eecc04cbf5f9339e61b (patch) (side-by-side diff)
tree5dc8009ac82abcfa8f22aa1ef38c85244af77a25 /src/gdbmstore.c
parentae9ea0011da4ba01e5639611d61c442af8d42817 (diff)
downloadgdbm-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.
Diffstat (limited to 'src/gdbmstore.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/gdbmstore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gdbmstore.c b/src/gdbmstore.c
index 35a6863..5f1bb67 100644
--- a/src/gdbmstore.c
+++ b/src/gdbmstore.c
@@ -135,17 +135,17 @@ gdbm_store (GDBM_FILE dbf, datum key, datum content, int flags)
dbf->bucket->h_table[elem_loc].data_pointer = file_adr;
dbf->bucket->h_table[elem_loc].key_size = key.dsize;
dbf->bucket->h_table[elem_loc].data_size = content.dsize;
/* Write the data to the file. */
file_pos = __lseek (dbf, file_adr, L_SET);
- if (file_pos != file_adr) _gdbm_fatal (dbf, "lseek error");
+ if (file_pos != file_adr) _gdbm_fatal (dbf, _("lseek error"));
num_bytes = __write (dbf, key.dptr, key.dsize);
- if (num_bytes != key.dsize) _gdbm_fatal (dbf, "write error");
+ if (num_bytes != key.dsize) _gdbm_fatal (dbf, _("write error"));
num_bytes = __write (dbf, content.dptr, content.dsize);
- if (num_bytes != content.dsize) _gdbm_fatal (dbf, "write error");
+ if (num_bytes != content.dsize) _gdbm_fatal (dbf, _("write error"));
/* Current bucket has changed. */
dbf->cache_entry->ca_changed = TRUE;
dbf->bucket_changed = TRUE;
/* Write everything that is needed to the disk. */

Return to:

Send suggestions and report system problems to the System administrator.