diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-08-08 19:23:28 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-08-08 19:23:28 +0000 |
commit | 41a53d2c1c536d20823f357af887c9ff74991efd (patch) | |
tree | 365987aa7fdada4786fc280b50319d0cb1bb2acb /apps/settings_menu.c | |
parent | 1874a33298f6b639893e4bc8e556fd71e2c068d3 (diff) |
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
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r-- | apps/settings_menu.c | 14 |
1 files changed, 14 insertions, 0 deletions
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" @@ -279,6 +280,18 @@ static bool invert_cursor(void) } /** + * 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 */ static bool battery_display(void) @@ -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 }; |