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 /src/pacman/util.c | |
parent | 3d3a29a80849f2aaa0baff93c1ae4478276e2b54 (diff) | |
download | pacman-bb787e26ee01f961c76fbe4e568275a66e80009f.tar.gz pacman-bb787e26ee01f961c76fbe4e568275a66e80009f.tar.xz |
first stage of i18n stuff from VMiklos
Diffstat (limited to 'src/pacman/util.c')
-rw-r--r-- | src/pacman/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c index ef6c0f82..aefdea9b 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -30,6 +30,7 @@ #include <dirent.h> #include <unistd.h> #include <regex.h> +#include <libintl.h> #ifdef CYGWIN #include <limits.h> /* PATH_MAX */ #endif @@ -168,7 +169,7 @@ char *buildstring(list_t *strlist) } str = (char *)malloc(size); if(str == NULL) { - ERR(NL, "failed to allocated %d bytes\n", size); + ERR(NL, _("failed to allocated %d bytes\n"), size); } str[0] = '\0'; for(lp = strlist; lp; lp = lp->next) { @@ -222,7 +223,7 @@ int reg_match(char *string, char *pattern) regex_t reg; if(regcomp(®, pattern, REG_EXTENDED | REG_NOSUB | REG_ICASE) != 0) { - ERR(NL, "%s is not a valid regular expression.\n", pattern); + ERR(NL, _("%s is not a valid regular expression.\n"), pattern); return(-1); } result = regexec(®, string, 0, 0, 0); |