From 8b75f9bb6a09d54d634ff661655659951378aa2c Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 2 Aug 2005 04:43:01 +0000 Subject: Language autodetection - rccConfigRecode function's are added - Language autodetection using aspell is added - Translation in 3 modes: "To English Language", "Skip English Translation", "Full" - Example2 to demonstrate translation possibilities --- src/rcctranslate.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/rcctranslate.c') diff --git a/src/rcctranslate.c b/src/rcctranslate.c index 3bbd916..d7bb4e4 100644 --- a/src/rcctranslate.c +++ b/src/rcctranslate.c @@ -66,18 +66,22 @@ int rccTranslateSetTimeout(rcc_translate translate, unsigned long us) { char *rccTranslate(rcc_translate translate, const char *buf) { #ifdef HAVE_LIBTRANSLATE - size_t i; rcc_external_command_s resp; size_t err, len; char *buffer; - - if ((!translate)||(!buf)) return NULL; +/* + size_t i; +*/ + if ((!translate)||(!buf)) return NULL; + +/* if (!strcmp(translate->prefix.to, "en")) { for (i=0;buf[i];i++) if ((unsigned char)buf[i]>0x7F) break; if (!buf[i]) return NULL; } +*/ if (translate->sock == -1) { translate->sock = rccExternalConnect(RCC_EXTERNAL_MODULE_LIBRTRANSLATE); -- cgit v1.2.3