Fix incorrect i18n usage for some strings

Some strings are initialized without wrapping them in _(); instead,
_() is applied on the variable when it is used.

This is incorrect, since these strings don't get added to the catalog.
Fix that by applying _() only once, when the string is declared.

Signed-off-by: Baptiste Jonglez <baptiste--git@jonglez.org>
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Baptiste Jonglez
2012-05-25 13:17:37 +02:00
committed by Lukas Fleischer
parent 1019be7cce
commit b5a911421f
6 changed files with 22 additions and 22 deletions

View File

@@ -483,9 +483,9 @@ date_arg(const char *ddate, int add_line, const char *fmt_apt,
char outstr[BUFSIZ];
fputs(_("Argument to the '-d' flag is not valid\n"), stderr);
snprintf(outstr, BUFSIZ,
"Possible argument format are: '%s' or 'n'\n",
_("Possible argument format are: '%s' or 'n'\n"),
DATEFMT_DESC(conf.input_datefmt));
fputs(_(outstr), stdout);
fputs(outstr, stdout);
more_info();
}
}
@@ -539,9 +539,9 @@ date_arg_extended(const char *startday, const char *range, int add_line,
char outstr[BUFSIZ];
fputs(_("Argument is not valid\n"), stderr);
snprintf(outstr, BUFSIZ,
"Argument format for -s and --startday is: '%s'\n",
_("Argument format for -s and --startday is: '%s'\n"),
DATEFMT_DESC(conf.input_datefmt));
fputs(_(outstr), stdout);
fputs(outstr, stdout);
fputs(_("Argument format for -r and --range is: 'n'\n"), stdout);
more_info();
}