From 340f32356ae39ba0b2e6fb1a2a7967f2d02e1777 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sat, 26 Sep 2009 00:58:32 +0000 Subject: new skin tag: %Sx|| will display the current languages translation of the "" string. the is the Source: bit in the .lang files. (must be exactly as it is there...) checkwps cannot verify that the string is correct so make sure to use the sim to verify the string is acurate. Also "fix" checkwps so %St|| can be accepted for the theme site git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22837 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_tokens.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/gui/skin_engine/skin_tokens.c') diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index 94d8eb4dc6..758a8c1b04 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c @@ -170,6 +170,9 @@ const char *get_token_value(struct gui_wps *gwps, case WPS_TOKEN_STRING: return (char*)token->value.data; + + case WPS_TOKEN_TRANSLATEDSTRING: + return (char*)P2STR(ID2P(token->value.i)); case WPS_TOKEN_TRACK_TIME_ELAPSED: format_time(buf, buf_size, -- cgit v1.2.3