primordial stew
Mar 08, 2008, 01:22 PM
I've finally started translating the RFRE text, and man is this boring! There *is* a better way, and that is writing a program to do all this mundane stuff for me ;)
I haven't done all the research yet, but it is possible to write a program which will translate your game text into other languages. There are perl modules for HTTP communication. The next step is to find some translator site which the script can communicate with. After that it's the simple task of extracting the existing English (for example) text from xml/text/*xml, sending it off to the web to be translated, and then stuffing the received data (after stripping the goo out) back into a similarly named xml file.
It's reasonably simple except for interacting with the web site doing the translation. That may turn out to be infeasible.
The target audience here is all those mods which are "English only" (eg RFRE :blush: ), or who have less than the 5 supported languages.
I haven't done all the research yet, but it is possible to write a program which will translate your game text into other languages. There are perl modules for HTTP communication. The next step is to find some translator site which the script can communicate with. After that it's the simple task of extracting the existing English (for example) text from xml/text/*xml, sending it off to the web to be translated, and then stuffing the received data (after stripping the goo out) back into a similarly named xml file.
It's reasonably simple except for interacting with the web site doing the translation. That may turn out to be infeasible.
The target audience here is all those mods which are "English only" (eg RFRE :blush: ), or who have less than the 5 supported languages.