aboutsummaryrefslogtreecommitdiffstats
path: root/src/recur.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/recur.c
parent1019be7cced2c0dfb677336ee2fe1da8bfde5a22 (diff)
downloadcalcurse-b5a911421fbacc0e937264919ad4718f2fc4de14.tar.gz
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/recur.c')
-rw-r--r--src/recur.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/recur.c b/src/recur.c
index dad9c25..e8ddffc 100644
--- a/src/recur.c
+++ b/src/recur.c
@@ -867,7 +867,7 @@ void recur_repeat_item(void)
while (!date_entered) {
snprintf(outstr, BUFSIZ, mesg_until_1, DATEFMT_DESC(conf.input_datefmt));
- status_mesg(_(outstr), "");
+ status_mesg(outstr, "");
if (getstring(win[STA].p, user_input, BUFSIZ, 0, 1) == GETSTRING_VALID) {
if (strlen(user_input) == 1 && strcmp(user_input, "0") == 0) {
until = 0;
@@ -891,7 +891,7 @@ void recur_repeat_item(void)
} else {
snprintf(outstr, BUFSIZ, mesg_wrong_2,
DATEFMT_DESC(conf.input_datefmt));
- status_mesg(mesg_wrong_1, _(outstr));
+ status_mesg(mesg_wrong_1, outstr);
wgetch(win[STA].p);
date_entered = 0;
}