From b5a911421fbacc0e937264919ad4718f2fc4de14 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Fri, 25 May 2012 13:17:37 +0200 Subject: 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 Signed-off-by: Lukas Fleischer --- src/calendar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/calendar.c') diff --git a/src/calendar.c b/src/calendar.c index 7328718..be39f38 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -582,11 +582,11 @@ void calendar_change_day(int datefmt) _("The day you entered is not valid " "(should be between 01/01/1902 and 12/31/2037)"); const char *mesg_line2 = _("Press [ENTER] to continue"); - const char *request_date = "Enter the day to go to [ENTER for today] : %s"; + const char *request_date = _("Enter the day to go to [ENTER for today] : %s"); while (wrong_day) { snprintf(outstr, BUFSIZ, request_date, DATEFMT_DESC(datefmt)); - status_mesg(_(outstr), ""); + status_mesg(outstr, ""); if (getstring(win[STA].p, selected_day, LDAY, 0, 1) == GETSTRING_ESC) return; else { -- cgit v1.2.3-54-g00ecf