From ec0f4b40442fc9b150ea06f11c94638e4c76acb7 Mon Sep 17 00:00:00 2001 From: Tomer Shalev Date: Sun, 15 Nov 2009 21:39:39 +0000 Subject: 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 --- apps/gui/skin_engine/skin_tokens.c | 4 ++++ 1 file changed, 4 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 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; } -- cgit v1.2.3