summaryrefslogtreecommitdiffstats
path: root/src/rccstring.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2005-08-02 04:43:01 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2005-08-02 04:43:01 +0000
commit8b75f9bb6a09d54d634ff661655659951378aa2c (patch)
tree611f800f33ca919d37c724957fcc8c2b2bccb342 /src/rccstring.c
parente3f702e83a26468ee44f3f342a7a40a252f4603c (diff)
downloadlibrcc-8b75f9bb6a09d54d634ff661655659951378aa2c.tar.gz
librcc-8b75f9bb6a09d54d634ff661655659951378aa2c.tar.bz2
librcc-8b75f9bb6a09d54d634ff661655659951378aa2c.tar.xz
librcc-8b75f9bb6a09d54d634ff661655659951378aa2c.zip
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
Diffstat (limited to 'src/rccstring.c')
-rw-r--r--src/rccstring.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rccstring.c b/src/rccstring.c
index d6c6805..9c4c19f 100644
--- a/src/rccstring.c
+++ b/src/rccstring.c
@@ -58,6 +58,14 @@ int rccStringFixID(rcc_string string, rcc_context ctx) {
return 0;
}
+int rccStringChangeID(rcc_string string, rcc_language_id language_id) {
+ if ((!string)&&(language_id != (rcc_language_id)-1)) return -1;
+
+ ((rcc_string_header*)string)->language_id = language_id;
+ return 0;
+}
+
+
void rccStringFree(rcc_string str) {
if (str) free(str);
}