diff options
author | Judd Vinet <judd@archlinux.org> | 2006-05-15 04:19:57 +0200 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2006-05-15 04:19:57 +0200 |
commit | bb787e26ee01f961c76fbe4e568275a66e80009f (patch) | |
tree | 6b16de3f1d21f018ea1f2a0e53fc38562c4e89b1 /lib/libalpm/be_files.c | |
parent | 3d3a29a80849f2aaa0baff93c1ae4478276e2b54 (diff) | |
download | pacman-bb787e26ee01f961c76fbe4e568275a66e80009f.tar.gz pacman-bb787e26ee01f961c76fbe4e568275a66e80009f.tar.xz |
first stage of i18n stuff from VMiklos
Diffstat (limited to 'lib/libalpm/be_files.c')
-rw-r--r-- | lib/libalpm/be_files.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index 0a648223..1f18d71a 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -27,6 +27,7 @@ #include <string.h> #include <sys/stat.h> #include <dirent.h> +#include <libintl.h> #ifdef CYGWIN #include <limits.h> /* PATH_MAX */ #endif @@ -138,7 +139,7 @@ pmpkg_t *_alpm_db_scan(pmdb_t *db, char *target, unsigned int inforeq) return(NULL); } if(_alpm_pkg_splitname(ent->d_name, pkg->name, pkg->version) == -1) { - _alpm_log(PM_LOG_ERROR, "invalid name for dabatase entry '%s'", ent->d_name); + _alpm_log(PM_LOG_ERROR, _("invalid name for dabatase entry '%s'"), ent->d_name); return(NULL); } if(_alpm_db_read(db, inforeq, pkg) == -1) { @@ -375,7 +376,7 @@ int _alpm_db_write(pmdb_t *db, pmpkg_t *info, unsigned int inforeq) if(inforeq & INFRQ_DESC) { snprintf(path, PATH_MAX, "%s/%s-%s/desc", db->path, info->name, info->version); if((fp = fopen(path, "w")) == NULL) { - _alpm_log(PM_LOG_ERROR, "db_write: could not open file %s/desc", db->treename); + _alpm_log(PM_LOG_ERROR, _("db_write: could not open file %s/desc"), db->treename); retval = 1; goto cleanup; } @@ -446,7 +447,7 @@ int _alpm_db_write(pmdb_t *db, pmpkg_t *info, unsigned int inforeq) if(local && (inforeq & INFRQ_FILES)) { snprintf(path, PATH_MAX, "%s/%s-%s/files", db->path, info->name, info->version); if((fp = fopen(path, "w")) == NULL) { - _alpm_log(PM_LOG_ERROR, "db_write: could not open file %s/files", db->treename); + _alpm_log(PM_LOG_ERROR, _("db_write: could not open file %s/files"), db->treename); retval = -1; goto cleanup; } @@ -472,7 +473,7 @@ int _alpm_db_write(pmdb_t *db, pmpkg_t *info, unsigned int inforeq) if(inforeq & INFRQ_DEPENDS) { snprintf(path, PATH_MAX, "%s/%s-%s/depends", db->path, info->name, info->version); if((fp = fopen(path, "w")) == NULL) { - _alpm_log(PM_LOG_ERROR, "db_write: could not open file %s/depends", db->treename); + _alpm_log(PM_LOG_ERROR, _("db_write: could not open file %s/depends"), db->treename); retval = -1; goto cleanup; } |