diff options
author | ewt <devnull@localhost> | 1998-10-22 18:32:50 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1998-10-22 18:32:50 +0000 |
commit | 1bf1381215c951dbfb69abde35e4c719feef95c5 (patch) | |
tree | 26b82604d86baff8873d4069fb4de61a11757a49 /popt/popt.c | |
parent | c272e2a2fc6316e79ce715ddb4c2994bea675cd9 (diff) | |
download | librpm-tizen-1bf1381215c951dbfb69abde35e4c719feef95c5.tar.gz librpm-tizen-1bf1381215c951dbfb69abde35e4c719feef95c5.tar.bz2 librpm-tizen-1bf1381215c951dbfb69abde35e4c719feef95c5.zip |
added i18n support
CVS patchset: 2477
CVS date: 1998/10/22 18:32:50
Diffstat (limited to 'popt/popt.c')
-rw-r--r-- | popt/popt.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/popt/popt.c b/popt/popt.c index ec29c5f17..47f0d008a 100644 --- a/popt/popt.c +++ b/popt/popt.c @@ -31,7 +31,7 @@ static char * strerror(int errno) { if ((0 <= errno) && (errno < sys_nerr)) return sys_errlist[errno]; else - return "unknown errno"; + return POPT_("unknown errno"); } #endif @@ -404,8 +404,7 @@ int poptGetNextOpt(poptContext con) { break; default: - /* XXX I18N? */ - fprintf(stdout, "option type (%d) not implemented in popt\n", + fprintf(stdout, POPT_("option type (%d) not implemented in popt\n"), opt->argInfo & POPT_ARG_MASK); exit(1); } @@ -529,21 +528,21 @@ char * poptBadOption(poptContext con, int flags) { const char * poptStrerror(const int error) { switch (error) { case POPT_ERROR_NOARG: - return "missing argument"; + return POPT_("missing argument"); case POPT_ERROR_BADOPT: - return "unknown option"; + return POPT_("unknown option"); case POPT_ERROR_OPTSTOODEEP: - return "aliases nested too deeply"; + return POPT_("aliases nested too deeply"); case POPT_ERROR_BADQUOTE: - return "error in paramter quoting"; + return POPT_("error in paramter quoting"); case POPT_ERROR_BADNUMBER: - return "invalid numeric value"; + return POPT_("invalid numeric value"); case POPT_ERROR_OVERFLOW: - return "number too large or too small"; + return POPT_("number too large or too small"); case POPT_ERROR_ERRNO: return strerror(errno); default: - return "unknown error"; + return POPT_("unknown error"); } } |