View Full Version : how much interest is there in an XML language translator/expander?


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.

esnaz
Mar 08, 2008, 01:34 PM
Well, there was one available (http://forums.civfanatics.com/showpost.php?p=3385984&postcount=1), but when I downloaded it, it didn't work. If you or someone else could get one out there, that would be amazing.

Shiggs713
Mar 09, 2008, 08:41 AM
Well this would certainly be useful for many mods. Really not sure how many "non english" audience there is out there, but probably enough to be worth doing.