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
@@ -253,7 +253,7 @@ status_ask_simplechoice(const char *prefix, const char *choice[], int nb_choice)
|
||||
|
||||
for (i = 0; i < nb_choice; i++) {
|
||||
snprintf(tmp, BUFSIZ, ((i + 1) == nb_choice) ? "(%d) %s?" : "(%d) %s, ",
|
||||
(i + 1), _(choice[i]));
|
||||
(i + 1), choice[i]);
|
||||
strcat(choicestr, tmp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user