Julie Indi Posted February 21, 2006 Share Posted February 21, 2006 I've managed to find a code to create a basic one-word translator for a language I created, but I'm trying to figure out a way to translate paragraphs .. is there any way that I can do this, using a simple translation code? I tried searching on Google and even looking at source code for translation sites, and I'm confused. I'm not that great with JavaScript; I can manipulate it to my liking, but I can't code it .. help? ; Thanks in advance. Link to comment Share on other sites More sharing options...
Julie Indi Posted February 26, 2006 Author Share Posted February 26, 2006 Help? x_X;;This is the code I have currently, I just need to know how to change it from one word at a time to paragraphs, without having exact paragraphs -- <script language="JavaScript"><!--;function asd(word){document.f1.sWord.value= word}function translate(){var e= document.f1.eWord.value;e= new String(e);e= e.toLowerCase();switch (e) .. . . please? @_@ Link to comment Share on other sites More sharing options...
Julie Indi Posted March 11, 2006 Author Share Posted March 11, 2006 ._.; . . no one can help me? Link to comment Share on other sites More sharing options...
Webworldx Posted March 11, 2006 Share Posted March 11, 2006 I'm slightly confused on what you're looking for. Is it, say you've got a paragraph:"Some text in here needs to be translated"and all the words would be individually converted to the new language? If so, the simple way to do it would be a myArray = theString.split(/ /gi)then pass all the values of myArray through your function. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now