Hey guys, Has anyone heard of a server-side language translation tool? I'd like something that will take a couple of paragraphs and translate it from, say, english to french, or french to english, or french to spanish, etc. Preferrably, it would operate like: trans en-sp "I had a tiny turtle, his name was tiny tim. I put him in the bath tub to see if he could swim." Output: TenÃa una tortuga minúscula, su nombre era tim minúsculo. Lo puse en la tina del baño para ver si él podrÃa nadar. Can anyone recommend software that is either free or not too expensive to get this job done, so I can run it from PHP? Thanks, Scott
you want to develop something like ? http://www.altavista.com/help/free/free_searchbox_transl not sure about your requirement .... I hope this will help you
Well, sort of. I dig the altavista and google translators, but I would like something more along the lines of a server side translation app. This way, I can have instant translation of dynamic webpages for anyone who doesn't speak english.
ok ... need to check whether bable and google are providing any sort of api's for them ... as the translation algorithm is really too complicated in case of multiple languages .. if your have few specific languages in mind for your site it can be done but with some traditional and conventional kinda workaround using language files or database .... Anyways best of luck for finding some similar algorithms and API's
Thanks. I could interface with them but I'm afraid that, given too many requests, the service could ban my server and then.. poof-- no more translation. :| So, to avoid that, I'd like my own engine.
Well good luck then as you will need to implement a whole dictionnary for each language, have you heard about memodata?
wish you good luck for the same mate, but i will suggest to have a language files for different languages which will really help you ... rather than doing translation on the fly ... www.runtroc.com for multi language support
It is possible, I've implemented it in the past. Sorry cannot provide any code, algo as follows: 1. Find the translated file in the {lang} directory. If not exists or filedate < filedate(original) then continue, else output it. 2. Grab the babelfish or google translate output for the original page for the necessary language 3. Convert urls and strip comments 4. Save to the disk (! without caching your IP could be banned soon) There are many issues with quality of automatic translation, so it is better to provide note "This text was automatically translated" for your visitors on autotranslated pages.
That's almost exactly what I did last night, but I appreciate your answering the question. I ended up directly querying google and I made a function to grab exactly what I need with Regexp. Originally, I wanted to avoid two things: Querying another server at all Getting banned from that server I guess I'll have to live with #1, but I don't have to live with #2. So now I'm building in a random proxy. I do believe this is worth some money now!
Nah.. I figure as long as I don't use this tool more than say like .. 10,000 times. I only have to use about 15 proxies that I randomly use.
Would be better if you consider server-side processing and use languages in web development: ASP, JSP, and PHP.Use XML processing techniques with short code or you can use machine translation packages like : Joshua (Java)