X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fconf.c;h=ed6037011d117868f5ce9a27bd06a75f893a5718;hp=4431ccf6a6efefc3224a01da0e2369a745df5f2e;hb=9fd02ffcb0cacf3de26e876de5f30510bff137a3;hpb=61e71ab74ad9b5edb044b84ccf1111a33eb468cb diff --git a/src/conf.c b/src/conf.c index 4431ccf6..ed603701 100644 --- a/src/conf.c +++ b/src/conf.c @@ -35,6 +35,8 @@ #include "conf.h" #include "netutl.h" /* for strtoip */ +#include "system.h" + config_t *config; int debug_lvl = 0; int timeout = 0; /* seconds before timeout */ @@ -150,14 +152,14 @@ readconfig(const char *fname, FILE *fp) if(!hazahaza[i].name) { - fprintf(stderr, "%s: %d: Invalid variable name `%s'.\n", + fprintf(stderr, _("%s: %d: Invalid variable name `%s'.\n"), fname, lineno, p); return -1; } if(((q = strtok(NULL, "\t\n\r =")) == NULL) || q[0] == '#') { - fprintf(stderr, "%s: %d: No value given for `%s'.\n", + fprintf(stderr, _("%s: %d: No value given for `%s'.\n"), fname, lineno, hazahaza[i].name); return -1; } @@ -165,7 +167,7 @@ readconfig(const char *fname, FILE *fp) cfg = add_config_val(&config, hazahaza[i].argtype, q); if(cfg == NULL) { - fprintf(stderr, "%s: %d: Invalid value `%s' for variable `%s'.\n", + fprintf(stderr, _("%s: %d: Invalid value `%s' for variable `%s'.\n"), fname, lineno, q, hazahaza[i].name); return -1; } @@ -186,7 +188,7 @@ read_config_file(const char *fname) if((fp = fopen (fname, "r")) == NULL) { - fprintf(stderr, "Could not open %s: %s\n", fname, sys_errlist[errno]); + fprintf(stderr, _("Could not open %s: %s\n"), fname, sys_errlist[errno]); return 1; }