From 94ca629ceec7b0dc9f6f724b2e15923d3ec1d5b3 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Fri, 5 Aug 2005 03:06:50 +0000 Subject: Language AutoDetection Improvements - Fix: Loading/Saving range options. - Fix: Language AutoDetection. Using locale language instead of selected one. - Support for range options in GTK UI. - Option to control recoding timeout is provided. - LibRCC.h is updated (Translate, Spell, IConv). - Documentation is updated. - Add 'rcc-config' alias to 'rcc-gtk2-config' in spec. - Implemented concept of parrent languages + The concept is used in language autodetection. The string in considered language is permited to have words from all it's parrent languages. + English is assumed to be parrent for all other languages by default. + Russian is parrent language for Ukrainian and Belorussian. - No translation to english if translation between related (one of the languages is parrent for another one) languages is failed. --- ui/librccui.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'ui/librccui.c') diff --git a/ui/librccui.c b/ui/librccui.c index c4ac1c0..c38cb58 100644 --- a/ui/librccui.c +++ b/ui/librccui.c @@ -525,6 +525,30 @@ void rccUiFreeContext(rcc_ui_context ctx) { free(ctx); } +int rccUiHideOption(rcc_ui_context ctx, rcc_option option) { + unsigned int i; + if ((!ctx)||((option > RCC_MAX_OPTIONS)&&(option != RCC_OPTION_ALL))) return -1; + + if (option != RCC_OPTION_ALL) return rccUiMenuHide(ctx->options[option]); + + for (i=0;ioptions[i]); + + return 0; +} + +int rccUiUnHideOption(rcc_ui_context ctx, rcc_option option) { + unsigned int i; + if ((!ctx)||((option > RCC_MAX_OPTIONS)&&(option != RCC_OPTION_ALL))) return -1; + + if (option != RCC_OPTION_ALL) return rccUiMenuUnHide(ctx->options[option]); + + for (i=0;ioptions[i]); + + return 0; +} + int rccUiSetLanguageNames(rcc_ui_context ctx, rcc_name *names) { if (!ctx) return -1; -- cgit v1.2.3