Word converter

Discussion in 'JavaScript' started by Fry_watson, Jan 15, 2007.

  1. #1
    Is there a way to make a textbox like this

    <input type="text" name="#"><input type="submit" value="translate">

    and beable to type in Hi and when you push translate have it say Hola
     
    Fry_watson, Jan 15, 2007 IP
  2. Austars

    Austars Active Member

    Messages:
    1,437
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    95
    #2
    Yes, its called google translate :p
    But seriously, if you want to do it yourself, it takes a ton of processing power and database space I think, because the script would basically look up the translation in a digitized dictionary.
     
    Austars, Jan 15, 2007 IP
  3. Fry_watson

    Fry_watson Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Even if i only wanted to do a few words like 10 or 15 words or less
     
    Fry_watson, Jan 15, 2007 IP
  4. MattD

    MattD Peon

    Messages:
    161
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you only wanted to simply replace a few words with their Spanish equivalent then yeah this is really easy to do with javascript - just create an array with the words to swap and then just use replace().

    Doing a proper language translation though is HARD. It is not a trivial exercise by any stretch of the imagination!
     
    MattD, Jan 15, 2007 IP
  5. rafiqasad

    rafiqasad Member

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #5
    please explain ur question i fail to understand ur question
     
    rafiqasad, Jan 16, 2007 IP