From d7cdd0866495ad9605615bd18d09629880633e76 Mon Sep 17 00:00:00 2001 From: Tomer Shalev Date: Thu, 8 Oct 2009 22:40:38 +0000 Subject: RTL: Add support for DB init message git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23020 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 13 ++++++++++--- apps/root_menu.c | 16 +++++++++++++--- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/apps/main.c b/apps/main.c index a93231e036..58ff1381b7 100644 --- a/apps/main.c +++ b/apps/main.c @@ -265,9 +265,16 @@ static void init_tagcache(void) } #endif #ifdef HAVE_LCD_BITMAP - splashf(0, "%s [%d/%d]", - str(LANG_TAGCACHE_INIT), ret, - tagcache_get_max_commit_step()); + if (lang_is_rtl()) + { + splashf(0, "[%d/%d] %s", ret, tagcache_get_max_commit_step(), + str(LANG_TAGCACHE_INIT)); + } + else + { + splashf(0, "%s [%d/%d]", str(LANG_TAGCACHE_INIT), ret, + tagcache_get_max_commit_step()); + } #else lcd_double_height(false); snprintf(buf, sizeof(buf), " DB [%d/%d]", ret, diff --git a/apps/root_menu.c b/apps/root_menu.c index a06caba176..feff126e03 100644 --- a/apps/root_menu.c +++ b/apps/root_menu.c @@ -63,6 +63,7 @@ #ifdef HAVE_TAGCACHE #include "tagcache.h" #endif +#include "language.h" struct root_items { int (*function)(void* param); @@ -181,9 +182,18 @@ static int browser(void* param) } if (stat->commit_step > 0) { - splashf(0, "%s [%d/%d]", - str(LANG_TAGCACHE_INIT), stat->commit_step, - tagcache_get_max_commit_step()); + if (lang_is_rtl()) + { + splashf(0, "[%d/%d] %s", stat->commit_step, + tagcache_get_max_commit_step(), + str(LANG_TAGCACHE_INIT)); + } + else + { + splashf(0, "%s [%d/%d]", str(LANG_TAGCACHE_INIT), + stat->commit_step, + tagcache_get_max_commit_step()); + } } else { -- cgit v1.2.3