diff options
author | jbj <jbj> | 1998-09-27 20:17:31 +0000 |
---|---|---|
committer | jbj <jbj> | 1998-09-27 20:17:31 +0000 |
commit | 602fec8a61519d4271d8f6f73073e11fe9750fd8 (patch) | |
tree | be73a9b7721645e072cfb3ca431e4a26bb812bc5 | |
parent | a2c82a005faa3d933d3102e5a618079a8b4c11ee (diff) | |
download | libpopt-r2-5-4.tar.gz |
add Slovak translation (Stanislav Meduna <stano@trillian.eunet.sk>)r2-5-4
gettextify rpmMessage/rpmError/fprintf messages.
-rw-r--r-- | popt.c | 4 | ||||
-rw-r--r-- | test1.c | 14 |
2 files changed, 10 insertions, 8 deletions
@@ -363,7 +363,9 @@ int poptGetNextOpt(poptContext con) { break; default: - printf("option type not implemented in popt\n"); + /* XXX I18N? */ + fprintf(stdout, "option type (%d) not implemented in popt\n", + opt->argInfo); exit(1); } } @@ -5,7 +5,7 @@ void option_callback(poptContext con, const struct poptOption * opt, char * arg, void * data) { - printf("callback: %c %s %s ", opt->val, (char *) data, arg); + fprintf(stdout, "callback: %c %s %s ", opt->val, (char *) data, arg); } int main(int argc, char ** argv) { @@ -59,23 +59,23 @@ int main(int argc, char ** argv) { return 0; } - printf("arg1: %d arg2: %s", arg1, arg2); + fprintf(stdout, "arg1: %d arg2: %s", arg1, arg2); if (arg3) - printf(" arg3: %d", arg3); + fprintf(stdout, " arg3: %d", arg3); if (inc) - printf(" inc: %d", inc); + fprintf(stdout, " inc: %d", inc); rest = poptGetArgs(optCon); if (rest) { - printf(" rest:"); + fprintf(stdout, " rest:"); while (*rest) { - printf(" %s", *rest); + fprintf(stdout, " %s", *rest); rest++; } } - printf("\n"); + fprintf(stdout, "\n"); return 0; } |