From 41a53d2c1c536d20823f357af887c9ff74991efd Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 8 Aug 2005 19:23:28 +0000 Subject: Patch #783877 by Gadi Cohen updated by Naftali Goldstein - Bidirectional text support for Hebrew and Arabic git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7292 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings_menu.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'apps/settings_menu.c') diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 50f139637c..54267e99c0 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -38,6 +38,7 @@ #include "fat.h" /* For dotfile settings */ #include "sleeptimer.h" #include "powermgmt.h" +#include "bidi.h" #include "rtc.h" #include "ata.h" #include "tree.h" @@ -278,6 +279,18 @@ static bool invert_cursor(void) NULL); } +/** + * Menu to reverse Hebrew and Arabic text according to BiDi algorythm + */ +static bool bidi_support(void) +{ + return set_bool_options( str(LANG_BIDI_SUPPORT), + &global_settings.bidi_support, + STR(LANG_SET_BOOL_YES), + STR(LANG_SET_BOOL_NO), + set_bidi_support); +} + /** * Menu to configure the battery display on status bar */ @@ -1421,6 +1434,7 @@ static bool lcd_settings_menu(void) { ID2P(LANG_INVERT), invert }, { ID2P(LANG_FLIP_DISPLAY), flip_display }, { ID2P(LANG_INVERT_CURSOR), invert_cursor }, + { ID2P(LANG_BIDI_SUPPORT), bidi_support }, #endif }; -- cgit v1.2.3