diff options
author | Tomer Shalev <shalev.tomer@gmail.com> | 2009-10-08 22:40:38 +0000 |
---|---|---|
committer | Tomer Shalev <shalev.tomer@gmail.com> | 2009-10-08 22:40:38 +0000 |
commit | d7cdd0866495ad9605615bd18d09629880633e76 (patch) | |
tree | 92983a575e1a9708e2d4b0817cc2a6a3f7856bc1 | |
parent | 694ea7e7344e5242ac5ca662cc2f120f02e324af (diff) | |
download | rockbox-d7cdd0866495ad9605615bd18d09629880633e76.tar.gz rockbox-d7cdd0866495ad9605615bd18d09629880633e76.zip |
RTL: Add support for DB init message
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23020 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/main.c | 13 | ||||
-rw-r--r-- | 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) | |||
265 | } | 265 | } |
266 | #endif | 266 | #endif |
267 | #ifdef HAVE_LCD_BITMAP | 267 | #ifdef HAVE_LCD_BITMAP |
268 | splashf(0, "%s [%d/%d]", | 268 | if (lang_is_rtl()) |
269 | str(LANG_TAGCACHE_INIT), ret, | 269 | { |
270 | tagcache_get_max_commit_step()); | 270 | splashf(0, "[%d/%d] %s", ret, tagcache_get_max_commit_step(), |
271 | str(LANG_TAGCACHE_INIT)); | ||
272 | } | ||
273 | else | ||
274 | { | ||
275 | splashf(0, "%s [%d/%d]", str(LANG_TAGCACHE_INIT), ret, | ||
276 | tagcache_get_max_commit_step()); | ||
277 | } | ||
271 | #else | 278 | #else |
272 | lcd_double_height(false); | 279 | lcd_double_height(false); |
273 | snprintf(buf, sizeof(buf), " DB [%d/%d]", ret, | 280 | 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 @@ | |||
63 | #ifdef HAVE_TAGCACHE | 63 | #ifdef HAVE_TAGCACHE |
64 | #include "tagcache.h" | 64 | #include "tagcache.h" |
65 | #endif | 65 | #endif |
66 | #include "language.h" | ||
66 | 67 | ||
67 | struct root_items { | 68 | struct root_items { |
68 | int (*function)(void* param); | 69 | int (*function)(void* param); |
@@ -181,9 +182,18 @@ static int browser(void* param) | |||
181 | } | 182 | } |
182 | if (stat->commit_step > 0) | 183 | if (stat->commit_step > 0) |
183 | { | 184 | { |
184 | splashf(0, "%s [%d/%d]", | 185 | if (lang_is_rtl()) |
185 | str(LANG_TAGCACHE_INIT), stat->commit_step, | 186 | { |
186 | tagcache_get_max_commit_step()); | 187 | splashf(0, "[%d/%d] %s", stat->commit_step, |
188 | tagcache_get_max_commit_step(), | ||
189 | str(LANG_TAGCACHE_INIT)); | ||
190 | } | ||
191 | else | ||
192 | { | ||
193 | splashf(0, "%s [%d/%d]", str(LANG_TAGCACHE_INIT), | ||
194 | stat->commit_step, | ||
195 | tagcache_get_max_commit_step()); | ||
196 | } | ||
187 | } | 197 | } |
188 | else | 198 | else |
189 | { | 199 | { |