From 8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sat, 14 Apr 2007 22:20:10 +0000 Subject: DB4 & Postponed processing - New DB4 database type - Postponed processing in external module + User may allow external module to finish required processing before termination. This could be useful for translation services while using console applications (if network connection is slow, the external will never finish translation before program termination) - SKIP_PARRENT options are renamed to SKIP_PARENT --- examples/example2.c | 3 +++ examples/input-russian.txt | 1 + examples/rcc-gtk-config.c | 2 ++ 3 files changed, 6 insertions(+) (limited to 'examples') diff --git a/examples/example2.c b/examples/example2.c index 2083fcc..631fccf 100644 --- a/examples/example2.c +++ b/examples/example2.c @@ -25,6 +25,9 @@ int main(int argc, char *argv[]) { rccInitDefaultContext(NULL, 0, 0, classes, 0); rccInitDb4(NULL, "example", 0); rccSetOption(NULL, RCC_OPTION_TRANSLATE, RCC_OPTION_TRANSLATE_SKIP_PARRENT); + rccSetOption(NULL, RCC_OPTION_AUTODETECT_LANGUAGE, 1); +// rccSetOption(NULL, RCC_OPTION_TIMEOUT, 5000000); +// rccSetOption(NULL, RCC_OPTION_CONFIGURED_LANGUAGES_ONLY, 0); current_language_id = rccGetCurrentLanguage(NULL); english_language_id = rccGetLanguageByName(NULL, "en"); diff --git a/examples/input-russian.txt b/examples/input-russian.txt index aa60118..6e1ec74 100644 --- a/examples/input-russian.txt +++ b/examples/input-russian.txt @@ -4,4 +4,5 @@ привет Good Morning Guten Abend +Auf widersehen Çäîðîâåíüê³ Áóëè diff --git a/examples/rcc-gtk-config.c b/examples/rcc-gtk-config.c index da73608..179829c 100644 --- a/examples/rcc-gtk-config.c +++ b/examples/rcc-gtk-config.c @@ -11,11 +11,13 @@ static rcc_class classes[] = { { "pl", RCC_CLASS_STANDARD, "id3", NULL, "PlayList Title Encoding", 0}, { "plfs", RCC_CLASS_STANDARD, "pl", NULL, "PlayList File Encoding", 0 }, { "fs", RCC_CLASS_FS, "LC_CTYPE", NULL, "FileSystem Encoding", 0 }, + { "arc", RCC_CLASS_STANDARD, NULL, NULL, "Archives Encoding", 0 }, { "oem", RCC_CLASS_STANDARD, NULL, NULL, "Zip OEM Encoding", 0 }, { "iso", RCC_CLASS_STANDARD, NULL, NULL, "Zip ISO Encoding", 0 }, { "ftp", RCC_CLASS_STANDARD, NULL, NULL, "FTP Encoding", 0 }, { "http", RCC_CLASS_STANDARD, NULL, NULL, "HTTP Encoding", 0 }, { "ssh", RCC_CLASS_STANDARD, NULL, NULL, "SSH Encoding", 0 }, + { "in", RCC_CLASS_STANDARD, NULL, NULL, "Input Encoding", 0 }, { "out", RCC_CLASS_STANDARD, "LC_CTYPE", NULL, "Output Encoding", 0 }, { NULL } }; -- cgit v1.2.3