diff options
author | Tomer Shalev <shalev.tomer@gmail.com> | 2009-11-15 21:39:39 +0000 |
---|---|---|
committer | Tomer Shalev <shalev.tomer@gmail.com> | 2009-11-15 21:39:39 +0000 |
commit | ec0f4b40442fc9b150ea06f11c94638e4c76acb7 (patch) | |
tree | 6aa602041fb1a12ade92e62a5b51d88b05a7a538 /apps/gui/skin_engine/skin_tokens.c | |
parent | ca39b27dd498145eed13d7fab991ca6dee9786be (diff) |
FS#10783 - WPS translation
- Use the %Sx skin tag in WPS to translate 'Next Track', 'Next', and 'of' (X of Y tracks)
- New conditional skin token 'Sr' which checks whether the currently loaded language is an RTL language (Hebrew/Arabic). It uses lang_is_rtl().
- Added Hebrew translation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23638 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index d4adfa8c85..9622e127a7 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c @@ -59,6 +59,7 @@ #include "recording.h" #include "pcm_record.h" #endif +#include "language.h" static char* get_codectype(const struct mp3entry* id3) { @@ -1174,6 +1175,9 @@ const char *get_token_value(struct gui_wps *gwps, return buf; } + case WPS_TOKEN_LANG_IS_RTL: + return lang_is_rtl() ? "r" : NULL; + default: return NULL; } |