From fda41b892eba8a72cdf221ff32608656a1c036cc Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Wed, 24 Oct 2007 15:34:36 +0000 Subject: Try and save some bytes, seeing as we already assumed LANG_ constants for month and weekday names are contiguous. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15289 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/gui') diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index a2f1aa6..fec13d5 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -1160,12 +1160,12 @@ static char *get_token_value(struct gui_wps *gwps, case WPS_TOKEN_RTC_WEEKDAY_NAME: /* a: abbreviated weekday name (Sun..Sat) */ - snprintf(buf, buf_size, "%s",str(dayname[tm->tm_wday])); + snprintf(buf, buf_size, "%s",str(LANG_WEEKDAY_SUNDAY + tm->tm_wday)); return buf; case WPS_TOKEN_RTC_MONTH_NAME: /* b: abbreviated month name (Jan..Dec) */ - snprintf(buf, buf_size, "%s",str(monthname[tm->tm_mon])); + snprintf(buf, buf_size, "%s",str(LANG_MONTH_JANUARY + tm->tm_mon)); return buf; case WPS_TOKEN_RTC_DAY_OF_WEEK_START_MON: -- cgit v1.1