summaryrefslogtreecommitdiff
path: root/src/args.c
diff options
context:
space:
mode:
authorBaptiste Jonglez <baptiste--git@jonglez.org>2012-05-25 13:17:37 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-05-25 13:28:26 +0200
commitb5a911421fbacc0e937264919ad4718f2fc4de14 (patch)
treeb8772667c35eaaed9bffe9dd26a1efd00401b929 /src/args.c
parent1019be7cced2c0dfb677336ee2fe1da8bfde5a22 (diff)
downloadcalcurse-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/args.c b/src/args.c
index 99c468f..a569e2a 100644
--- a/src/args.c
+++ b/src/args.c
@@ -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();
}