aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-15 14:37:59 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-15 14:37:59 -0700
commit9b9e36886c0b0d135a1640418566dca43ce16d96 (patch)
tree0c4ad40f4959b1c765f8440f40e8d77c4e5a34b4
parent0cee29121d3c4a9d7eaf94a61d6e7013910fddf0 (diff)
downloadsubsurface-9b9e36886c0b0d135a1640418566dca43ce16d96.tar.gz
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>
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index cdf95638a..3f43f4561 100644
--- a/main.c
+++ b/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]);
}
/*