summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/example2.c3
-rw-r--r--examples/input-russian.txt1
-rw-r--r--examples/rcc-gtk-config.c2
3 files changed, 6 insertions, 0 deletions
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 }
};