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 /src/bucket.c | |
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.
Diffstat (limited to 'src/bucket.c')
-rw-r--r-- | src/bucket.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bucket.c b/src/bucket.c index f8c48b9..cda2389 100644 --- a/src/bucket.c +++ b/src/bucket.c @@ -64,7 +64,7 @@ _gdbm_get_bucket (GDBM_FILE dbf, int dir_index) if (dbf->bucket_cache == NULL) { if(_gdbm_init_cache(dbf, DEFAULT_CACHESIZE) == -1) - _gdbm_fatal(dbf, "couldn't init cache"); + _gdbm_fatal(dbf, _("couldn't init cache")); } /* Is that one is not already current, we must find it. */ @@ -94,11 +94,11 @@ _gdbm_get_bucket (GDBM_FILE dbf, int dir_index) /* Read the bucket. */ file_pos = __lseek (dbf, bucket_adr, L_SET); if (file_pos != bucket_adr) - _gdbm_fatal (dbf, "lseek error"); + _gdbm_fatal (dbf, _("lseek error")); num_bytes = __read (dbf, dbf->bucket, dbf->header->bucket_size); if (num_bytes != dbf->header->bucket_size) - _gdbm_fatal (dbf, "read error"); + _gdbm_fatal (dbf, _("read error")); } return; @@ -145,7 +145,7 @@ _gdbm_split_bucket (GDBM_FILE dbf, int next_insert) if (dbf->bucket_cache == NULL) { if(_gdbm_init_cache(dbf, DEFAULT_CACHESIZE) == -1) - _gdbm_fatal(dbf, "couldn't init cache"); + _gdbm_fatal(dbf, _("couldn't init cache")); } while (dbf->bucket->count == dbf->header->bucket_elems) @@ -185,7 +185,7 @@ _gdbm_split_bucket (GDBM_FILE dbf, int next_insert) dir_size = dbf->header->dir_size * 2; dir_adr = _gdbm_alloc (dbf, dir_size); new_dir = (off_t *) malloc (dir_size); - if (new_dir == NULL) _gdbm_fatal (dbf, "malloc error"); + if (new_dir == NULL) _gdbm_fatal (dbf, _("malloc error")); for (index = 0; index < dbf->header->dir_size/sizeof (off_t); index++) { @@ -308,10 +308,10 @@ _gdbm_write_bucket (GDBM_FILE dbf, cache_elem *ca_entry) file_pos = __lseek (dbf, ca_entry->ca_adr, L_SET); if (file_pos != ca_entry->ca_adr) - _gdbm_fatal (dbf, "lseek error"); + _gdbm_fatal (dbf, _("lseek error")); num_bytes = __write (dbf, ca_entry->ca_bucket, dbf->header->bucket_size); if (num_bytes != dbf->header->bucket_size) - _gdbm_fatal (dbf, "write error"); + _gdbm_fatal (dbf, _("write error")); ca_entry->ca_changed = FALSE; ca_entry->ca_data.hash_val = -1; ca_entry->ca_data.elem_loc = -1; |