diff options
Diffstat (limited to 'builtins/evalfile.c')
-rw-r--r-- | builtins/evalfile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/builtins/evalfile.c b/builtins/evalfile.c index 850acbd6..c17e547b 100644 --- a/builtins/evalfile.c +++ b/builtins/evalfile.c @@ -31,6 +31,7 @@ #include <errno.h> #include "../bashansi.h" +#include "../bashintl.h" #include "../shell.h" #include "../jobs.h" @@ -124,12 +125,12 @@ file_error_and_exit: if (S_ISDIR (finfo.st_mode)) { - (*errfunc) ("%s: is a directory", filename); + (*errfunc) (_("%s: is a directory"), filename); return ((flags & FEVAL_BUILTIN) ? EXECUTION_FAILURE : -1); } else if ((flags & FEVAL_REGFILE) && S_ISREG (finfo.st_mode) == 0) { - (*errfunc) ("%s: not a regular file", filename); + (*errfunc) (_("%s: not a regular file"), filename); return ((flags & FEVAL_BUILTIN) ? EXECUTION_FAILURE : -1); } @@ -137,7 +138,7 @@ file_error_and_exit: /* Check for overflow with large files. */ if (file_size != finfo.st_size || file_size + 1 < file_size) { - (*errfunc) ("%s: file is too large", filename); + (*errfunc) (_("%s: file is too large"), filename); return ((flags & FEVAL_BUILTIN) ? EXECUTION_FAILURE : -1); } |