diff options
author | Baptiste Jonglez <baptiste--git@jonglez.org> | 2012-05-25 13:17:37 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-05-25 13:28:26 +0200 |
commit | b5a911421fbacc0e937264919ad4718f2fc4de14 (patch) | |
tree | b8772667c35eaaed9bffe9dd26a1efd00401b929 /src/args.c | |
parent | 1019be7cced2c0dfb677336ee2fe1da8bfde5a22 (diff) | |
download | calcurse-b5a911421fbacc0e937264919ad4718f2fc4de14.zip |
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>
Diffstat (limited to 'src/args.c')
-rw-r--r-- | src/args.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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(); } |