summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_tokens.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-09-26 00:58:32 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-09-26 00:58:32 +0000
commit340f32356ae39ba0b2e6fb1a2a7967f2d02e1777 (patch)
tree9165593d0c818ed8bcd637fd8c36cfe68f7f8446 /apps/gui/skin_engine/skin_tokens.c
parentba8fbb0b9bb8db9f654b0120809e343516c02531 (diff)
downloadrockbox-340f32356ae39ba0b2e6fb1a2a7967f2d02e1777.tar.gz
rockbox-340f32356ae39ba0b2e6fb1a2a7967f2d02e1777.zip
new skin tag: %Sx|<english>| will display the current languages translation of the "<english>" string.
the <english> 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|<setting>| can be accepted for the theme site git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22837 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r--apps/gui/skin_engine/skin_tokens.c3
1 files changed, 3 insertions, 0 deletions
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,
170 170
171 case WPS_TOKEN_STRING: 171 case WPS_TOKEN_STRING:
172 return (char*)token->value.data; 172 return (char*)token->value.data;
173
174 case WPS_TOKEN_TRANSLATEDSTRING:
175 return (char*)P2STR(ID2P(token->value.i));
173 176
174 case WPS_TOKEN_TRACK_TIME_ELAPSED: 177 case WPS_TOKEN_TRACK_TIME_ELAPSED:
175 format_time(buf, buf_size, 178 format_time(buf, buf_size,