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:
committed by
Lukas Fleischer
parent
1019be7cce
commit
b5a911421f
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user