X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=client-src%2Fversionsuffix.c;h=d9e2ecbe7715f5519f0a785b4d7d1758098b6bb0;hb=94a044f90357edefa6f4ae9f0b1d5885b0e34aee;hp=91d070000c3d443e56157c87137d0b0355267dd9;hpb=12179dea039515c06168c0037d048566a3f623de;p=debian%2Famanda diff --git a/client-src/versionsuffix.c b/client-src/versionsuffix.c index 91d0700..d9e2ecb 100644 --- a/client-src/versionsuffix.c +++ b/client-src/versionsuffix.c @@ -30,18 +30,31 @@ */ #include "amanda.h" #include "version.h" +#include "util.h" int main(int argc, char **argv); -int main(int argc, char **argv) +int +main( + int argc, + char ** argv) { - safe_fd(-1, 0); - (void)argc; /* Quiet unused parameter warning */ (void)argv; /* Quiet unused parameter warning */ + /* + * Configure program for internationalization: + * 1) Only set the message locale for now. + * 2) Set textdomain for all amanda related programs to "amanda" + * We don't want to be forced to support dozens of message catalogs. + */ + setlocale(LC_MESSAGES, "C"); + textdomain("amanda"); + + safe_fd(-1, 0); + set_pname("versionsuffix"); - printf("%s\n", versionsuffix()); + g_printf("%s\n", versionsuffix()); return 0; }