Forgot to localize names of months and weekdays

We marked the strings for translation, but then didn't actually call the
translation function on them.

Our dates are still not truely localized as we have hand written code for
the date / time handling that constructs the dates according to US fashion
as [Weekday], [Month] [Day of Month], [Year] [hh:mm]

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2012-10-15 14:37:59 -07:00
parent 0cee29121d
commit 9b9e36886c

4
main.c
View file

@ -36,7 +36,7 @@ const char *weekday(int wday)
/*++GETTEXT: these are three letter days - we allow up to six code bytes */
N_("Sun"), N_("Mon"), N_("Tue"), N_("Wed"), N_("Thu"), N_("Fri"), N_("Sat")
};
return wday_array[wday];
return _(wday_array[wday]);
}
const char *monthname(int mon)
@ -46,7 +46,7 @@ const char *monthname(int mon)
N_("Jan"), N_("Feb"), N_("Mar"), N_("Apr"), N_("May"), N_("Jun"),
N_("Jul"), N_("Aug"), N_("Sep"), N_("Oct"), N_("Nov"), N_("Dec"),
};
return month_array[mon];
return _(month_array[mon]);
}
/*