summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbj <jbj>1998-09-27 20:17:31 +0000
committerjbj <jbj>1998-09-27 20:17:31 +0000
commit602fec8a61519d4271d8f6f73073e11fe9750fd8 (patch)
treebe73a9b7721645e072cfb3ca431e4a26bb812bc5
parenta2c82a005faa3d933d3102e5a618079a8b4c11ee (diff)
downloadlibpopt-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.c4
-rw-r--r--test1.c14
2 files changed, 10 insertions, 8 deletions
diff --git a/popt.c b/popt.c
index 0df3179..025d2d5 100644
--- a/popt.c
+++ b/popt.c
@@ -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);
}
}
diff --git a/test1.c b/test1.c
index 9ad4a29..3630f78 100644
--- a/test1.c
+++ b/test1.c
@@ -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;
}