Server Side Language Translation Tool?

Discussion in 'PHP' started by scottmweaver, Jan 30, 2007.

  1. #1
    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
     
    scottmweaver, Jan 30, 2007 IP
  2. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    rays, Jan 30, 2007 IP
  3. scottmweaver

    scottmweaver Peon

    Messages:
    1,181
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    scottmweaver, Jan 31, 2007 IP
  4. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #4
    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
     
    rays, Jan 31, 2007 IP
  5. scottmweaver

    scottmweaver Peon

    Messages:
    1,181
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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. :D
     
    scottmweaver, Jan 31, 2007 IP
  6. linkstraffic

    linkstraffic Well-Known Member

    Messages:
    388
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    133
    #6
    Well good luck then as you will need to implement a whole dictionnary for each language, have you heard about memodata?
     
    linkstraffic, Jan 31, 2007 IP
  7. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #7
    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
     
    rays, Feb 1, 2007 IP
  8. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #8
    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.
     
    wmtips, Feb 1, 2007 IP
  9. scottmweaver

    scottmweaver Peon

    Messages:
    1,181
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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:

    1. Querying another server at all
    2. 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. :D

    I do believe this is worth some money now!
     
    scottmweaver, Feb 1, 2007 IP
  10. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #10
    A random proxy ? Will you have to input new proxies all the time ? and check them ?
     
    login, Feb 1, 2007 IP
  11. scottmweaver

    scottmweaver Peon

    Messages:
    1,181
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    0
    #11
    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.
     
    scottmweaver, Feb 1, 2007 IP
  12. javamazon

    javamazon Active Member

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    66
    #12
    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)
     
    javamazon, Mar 4, 2013 IP