diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/example2.c | 4 | ||||
-rw-r--r-- | examples/rcc-example.xml | 4 | ||||
-rw-r--r-- | examples/rcc.xml | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/examples/example2.c b/examples/example2.c index 5ef3efb..2083fcc 100644 --- a/examples/example2.c +++ b/examples/example2.c @@ -15,7 +15,7 @@ int main(int argc, char *argv[]) { rcc_class classes[] = { { "input", RCC_CLASS_STANDARD, NULL, NULL, "Input Encoding", 0 }, - { "output", RCC_CLASS_STANDARD, "LC_CTYPE", NULL, "Output Encoding", 0 }, + { "output", RCC_CLASS_TRANSLATE_LOCALE, "LC_CTYPE", NULL, "Output Encoding", 0 }, { NULL } }; @@ -24,7 +24,7 @@ int main(int argc, char *argv[]) { rccInit(); rccInitDefaultContext(NULL, 0, 0, classes, 0); rccInitDb4(NULL, "example", 0); - rccSetOption(NULL, RCC_OPTION_TRANSLATE, RCC_OPTION_TRANSLATE_FULL); + rccSetOption(NULL, RCC_OPTION_TRANSLATE, RCC_OPTION_TRANSLATE_SKIP_PARRENT); current_language_id = rccGetCurrentLanguage(NULL); english_language_id = rccGetLanguageByName(NULL, "en"); diff --git a/examples/rcc-example.xml b/examples/rcc-example.xml index 6bad1f3..8dc068c 100644 --- a/examples/rcc-example.xml +++ b/examples/rcc-example.xml @@ -11,7 +11,7 @@ <FullName>Russian</FullName> <FullName locale="ru">Русский</FullName> <Engines> - <Engine>russian</Engine> + <Engine>librcd</Engine> </Engines> <Charsets> <Charset>UTF-8</Charset> @@ -25,7 +25,7 @@ <Language name="uk"> <FullName>Ukrainian</FullName> <Engines> - <Engine>russian</Engine> + <Engine>librcd</Engine> </Engines> <Charsets> <Charset>UTF-8</Charset> diff --git a/examples/rcc.xml b/examples/rcc.xml index 50d2ee2..562f38a 100644 --- a/examples/rcc.xml +++ b/examples/rcc.xml @@ -13,6 +13,7 @@ <Language name="de"> <FullName>German</FullName> <Charsets> + <Charset>ISO8859-1</Charset> <Charset>UTF-8</Charset> </Charsets> <Engines> @@ -22,6 +23,7 @@ <Language name="fr"> <FullName>French</FullName> <Charsets> + <Charset>ISO8859-1</Charset> <Charset>UTF-8</Charset> </Charsets> <Engines> |