Archive for the ‘language translator’ Category

Can JavaScript be used to program a human language translator?

July 8, 2010 - 4:00 pm 3 Comments

I’m trying to think up ideas for projects. I was wondering if JavaScript could be used to create a human language translator? For example: If I were to type Hello and click a button to have it converted to spanish…the program would output: Hola.

Is this possible with this language? I’m not looking to do it in a different language. If it is possible, any suggestions,links, etc…that would help get me started?

Use the Google Translate API:

http://code.google.com/apis/ajaxlanguage/documentation/

Here’s a sample…

googleTranslationTest.html
~~~~~~~~~~~~~~~~~~~~~~~~~~
<html>
<head>
<meta http-equiv = "content-type" content = "text/html; charset=utf-8" />
<script type = "text/javascript" src = "http://www.google.com/jsapi"></script>
<script type = "text/javascript" src = "googleTranslationController.js"></script>
</head>
<body>
<form>
Enter text in any language, pick a language to <br >
which to translate, and click "translate."<br /><br />
<textarea id="text" cols="60" rows="5"></textarea><br />
<select id="toLang">
<option value="en" selected="true" >English</option>
<option value="fr" >Français</option>
<option value="de" >Deutsch</option>
<option value="fi" >Suomen</option>
<option value="it" >Italiano</option>
<option value="pt" >Português</option>
<option value="ru" >Русский</option>
<option value="zh-CN" >漢語</option>
</select>
<input type = "button" value = "translate" onclick = "doTranslate();" />
</form>
<div id = "gBranding"></div>
<p id = "translation"></p>
</body>
</html>

googleTranslationController.js
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// depends on pre-inclusion of http://www.google.com/jsapi
google.load("language", "1");// load language API (version 1) to page
function get(eid) {return document.getElementById( eid );} // convenience function
;
function doTranslate(){
var text = get( ‘text’ ).value;// get text to be translated
// detect source language of text – send result to translate() for handling
google.language.detect( text, translate );
}
;
function translate( r ) {
if (r.error) {// if from language detection failed, error property exists
showTranslatedText( r );// send response with error to display handler
return;// exit immediately
}
//…otherwise, attempt translation – implicit {else} of preceding {if}
var fromLang = r.language;// source language determined by API
var toLang = get( ‘toLang’ ).value;// get language to which to translate
var text = get( ‘text’ ).value;// get text to be translated
// attempt translation – send result to function showTranslatedText()
google.language.translate( text, fromLang, toLang, showTranslatedText );
}
;
function showTranslatedText( r ) {
// if error, replace translation test with error message
if (r.error) r.translation = ‘translation error: ‘ + r.error.message;
var t = get( ‘translation’ );// get reference to target display element
t.innerHTML = r.translation;// insert translated text or error message
}
;
window.onload = function() { google.language.getBranding( ‘gBranding’ ); };

Where can I find a good Language Translator for Zulu or Niger-Congo?

July 2, 2010 - 6:56 pm 1 Comment

I am re-doing the Tokens classic song "the Lion Sleeps tonight" and I figured since Lions are a mainstay of Africa that I would add a verse that is in partial Africans dialect. The two most popular being Niger-Congo and the other being Zulu. However, I can’t seem to find any translators that will translate english to one of these languages!!!! HELP PLEASE!!!

The best English- Zulu one that I have seen is http://isizulu.net/ so you could try that. It might also help to get a dictionary from the library as well as a grammar book, as online translators are never fully accurate.

What Language Translator do I buy?

June 18, 2010 - 9:36 am 1 Comment

I am planning a Europe Trip next year for about 5 weeks. I will be in Portugal, Spain, Italy, France, and Croatia. So… I would like a translator that catches all of those. I know there are a lot of 6 language translators out there and Portuguese, so I may be ok having that taken out.

I was thinking of getting a talking one, but don’t want to spend over $50. Got any favorites or recommendations?

I would recommend you not to left out Portuguese. Just make sure you get one with Portugal’s Portuguese. Picture this: if you are talking to someone Portuguese with a Brazilian accent and your Brazilian accent is not good, we’ll (I’m Portuguese) probably won’t be able to understand you… Same for Spanish, make sure it is Spain’s Spanish.

I don’t know what Spanish and Portuguese this one has and it doesn’t have Croatian: http://www.amazon.com/Palm-Speaking-Language-Translator-P10936U/dp/B0000E5SFF

You can search for more here: http://www.dealtime.com/-electronic+language+translator

This one doesn’t have Croatian, but it says it is European (so I’m guessing it has the right Spanish and Portuguese): http://www.amazon.com/Franklin-Language-European-Translator-FR-TJS12/dp/B002IT2ZWC/ref=dp_cp_ob_e_title_3

Does anyone know of a free language translator?

June 15, 2010 - 1:34 pm 9 Comments

I have tried babelfish. It is next to useless. I am just looking for a simple drop-down translator – I know there are many to choose from, I also know they can be loaded with malware, so I really would appreciate any suggestions :)

I agree with David. There is no such thing as a trustworthy language translator. A person should only use one of those if they already have some familiarity with the language and they can recognise when something is wrong! Most people who use them here and put up the results don’t realise how far out they are.

How to translate informal things in a language translator?

April 8, 2010 - 6:37 pm 1 Comment

I want to say informal things in German, but the online translators I try always put it into formal. Does anyone know how to change this?

learn to take the formal and conjugate it to informal. for example, in japanese (i speak), if i put "I eat" into say google translator, it will give me "Watashi wa tabemasu." But I want to say that informally. So i would just change tabemasu (to eat formal) to taberu (to eat informal). or, buy a more complex translator. tho they are expensive. hope that helps ;)

what is the web address for a language translator that speaks the phrase that needs translating?

April 6, 2010 - 9:13 pm 1 Comment

I lost my web address for an online language translator that takes text in english and translates to french, spanish etc. and has a male or female icon speak the phrase. thanks

http://www.oddcast.com/home/demos/tts/tts_example.php?sitepal
http://www.acapela-group.com/text-to-speech-interactive-demo.html

Where can I find a language translator online to where I can type in ENGLISH and it comes out another language?

March 1, 2010 - 8:12 pm 12 Comments

I am trying to find a free translator and so that when I also receive a message in another language I can translate it into English.

Thanks
Trenton

http://translate.google.com/

Hope it helps :)

English Language Translator for 50+ page electronic document?

February 25, 2010 - 11:17 pm 3 Comments

I need an online or freeware english language translation program for 50+ page electronic document. I want to translate the document as a file not in 150 character or word chunks. ANy help is greatly appreciated.

You can use the babylon for this purpose. It’s the best translator in my opinion: http://babylon.gnds.info/?l=us

Language translator on website wont translate flash banner?

February 22, 2010 - 3:10 am 2 Comments

I had a language translator for spanish put on my website and it wont translate items that I add from my content manager. Its an auction website. So when I add items I have to put in the spanish title and description myself. It also wont translate the flash banner I have on the site. It translates all the other static words on the site. Is this normal?

Of course. A program can’t read graphics.

Best language translator to put on my website?

February 20, 2010 - 12:34 am 3 Comments

I just had a language translator put onto my website and there are some parts of it doesnt translate like the description of the item. www.bidserk.com what is a program that can be downloaded that will translate everything?

There are none that will properly translate languages. The best are REAL humans who speal the languages.

Ron