mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
0cee29121d
commit
9b9e36886c
1 changed files with 2 additions and 2 deletions
4
main.c
4
main.c
|
@ -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]);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue