Convert directly into desired language rather showing english on off mode in yui editor
<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;head&gt;
        &lt;title&gt;
            PUNJABI Editor
        &lt;/title&gt;
    &lt;/head&gt; 
&lt;body&gt;
&lt;form name="form1" method="post" &gt;

&lt;table style="width: 100%"&gt;


&lt;tr&gt;
&lt;td&gt;
&lt;br /&gt;

&lt;style type="text/css"&gt;
/*Supplemental CSS for the YUI distribution*/
#custom-doc
{
width: 95%;
min-width: 950px;
}
#pagetitle
{
background-image: url(http://ajax.googleapis.com/ajax/libs...ts/bg_hd.gif);
}
&lt;/style&gt;
&lt;!-- Combo-handled YUI CSS files: --&gt;
&lt;link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.0r4/build/assets/skins/sam/skin.css" /&gt;
&lt;!-- Combo-handled YUI JS files: --&gt;

&lt;script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js&amp;2.8.0r4/build/container/container_core-min.js&amp;2.8.0r4/build/menu/menu-min.js&amp;2.8.0r4/build/element/element-min.js&amp;2.8.0r4/build/button/button-min.js&amp;2.8.0r4/build/editor/editor-min.js"&gt;&lt;/script&gt;

&lt;!--Script and CSS includes for YUI dependencies on this page--&gt;
&lt;link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/menu/assets/skins/sam/menu.css" /&gt;
&lt;link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/button/assets/skins/sam/button.css" /&gt;
&lt;link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/container/assets/skins/sam/container.css" /&gt;
&lt;link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/editor/assets/skins/sam/editor.css" /&gt;

&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/yuiloader/yuiloader-min.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/event/event-min.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/dom/dom-min.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/animation/animation-min.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/connection/connection-min.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/element/element-min.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/container/container-min.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/menu/menu-min.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/button/button-min.js"&gt;&lt;/script&gt;

&lt;!--&lt;script type="text/javascript" src="editor.js"&gt;&lt;/script&gt;--&gt;

&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/editor/editor-min.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript" src="http://www.google.com/jsapi"&gt;&lt;/script&gt;

&lt;script type="text/javascript"&gt;
/*
* How to setup a textarea that allows Transliteration from
English to Hindi.
*/
google.load("elements", "1", { packages: "transliteration" });
&lt;/script&gt;

&lt;script type="text/javascript" src="./punjabi.js"&gt;&lt;/script&gt;

&lt;!--there is no custom header content for this example--&gt;

&lt;script type="text/javascript"&gt;
//enable passthrough of errors from YUI Event:
if ((typeof YAHOO !== "undefined") &amp;&amp; (YAHOO.util) &amp;&amp;
(YAHOO.util.Event)) {
YAHOO.util.Event.throwErrors = true;
}

&lt;/script&gt;

&lt;!--BEGIN SOURCE CODE FOR EXAMPLE =============================== --&gt;
&lt;style type="text/css"&gt;
.yui-toolbar-group-insertitem
{ *width:auto;}
.style1
{
width: 210px;
}
&lt;/style&gt;

&lt;script type="text/javascript"&gt;
function alertText()
{
}
&lt;/script&gt;

&lt;div id="yahoo-com" class="yui-skin-sam"&gt;
    &lt;table cellpadding="0" cellspacing="0" width="100%"&gt;
        &lt;tr&gt;&lt;td&gt;
            &lt;div id="googTrans"&gt;

                &lt;textarea name="tbxEditor$yahoo" rows="2" cols="20" id="tbxEditor_yahoo" name="yahoo" style="height:230px;width:100%;"&gt;&lt;/textarea&gt;

                English and PUNJABI typing is possible. Press backspace after typing to see word suggestions. Press ctrl + G to change from English to PUNJABI and vice versa.
                Click to know more.

                &lt;input type="hidden" name="tbxEditor$hdnDefLang" id="tbxEditor_hdnDefLang" value="1" /&gt;
            &lt;/div&gt;
        &lt;/td&gt;&lt;/tr&gt;
    &lt;/table&gt;
&lt;/div&gt;

&lt;script type="text/javascript"&gt;
        (function() {
        var myConfig = {
        height: '200px',
        width: '100%',
        animate: true,
        limitCommands: false,
        extracss: 'body { font-size: 14px; font-family: Arial; }',
        insert: true,
        handleSubmit: true,
        toolbar: {
                titlebar: 'My Editor',
                buttons: [
                    { group: 'textstyle', label: 'Font Style',
                        buttons: [  
                            { type: 'push', label: 'Bold', value: 'bold' },
                            { type: 'push', label: 'Italic', value: 'italic' },
                            { type: 'push', label: 'Underline', value: 'underline' },
                            { type: 'separator' },
                            { type: 'select', label: 'Arial', value: 'fontname', disabled: true,
                                menu: [ 
                                    { text: 'Arial', checked: true },
                                    { text: 'Arial Black' },
                                    { text: 'Comic Sans MS' },
                                    { text: 'Courier New' },
                                    { text: 'Lucida Console' },
                                    { text: 'Tahoma' },
                                    { text: 'Times New Roman' },
                                    { text: 'Trebuchet MS' },
                                    { text: 'Verdana' }
                                ]
                            },
                            { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true },
                            { type: 'separator' },
                            { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
                            { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true },
                            { type: 'push', label: 'Punjabi Translate', value: 'inserticon' }
                        ]
                    }
                ]
            }
        };

YAHOO.log('Editor created..', 'info', 'example');
myEditor = new YAHOO.widget.Editor('tbxEditor_yahoo', myConfig);

var control = null;
var transliterateStatus;

myEditor.on('toolbarLoaded', function() {
myEditor.toolbar.on('inserticonClick', function(ev) {
transStatus = control.toggleTransliteration();
return false;
}, myEditor, true);
});

myEditor.render();

myEditor.on('afterRender', function() {
setTimeout(function() {
var content = document.getElementById('googTrans');
// Create the HTML for our text area
var boolTranslate = false;
var hdnDefLang = document.getElementById('tbxEditor_hdnDefLang').value;
var SecondaryLang ="PUNJABI";
if(hdnDefLang == "1")
{
SecondaryLang = google.elements.transliteration.LanguageCode.PUNJABI;
boolTranslate = true;
}
if(hdnDefLang == "3")
{
SecondaryLang =google.elements.transliteration.LanguageCode.HINDI;
boolTranslate = true;
}
if(hdnDefLang == "4")
{
SecondaryLang =google.elements.transliteration.LanguageCode.MARATHI;
boolTranslate = true;
}
var options = {
sourceLanguage:
google.elements.transliteration.LanguageCode.ENGLISH,
destinationLanguage:
[SecondaryLang],
shortcutKey: 'ctrl+g',
transliterationEnabled: boolTranslate
};
// Create an instance on TransliterationControl with the required
// options.
control = new google.elements.transliteration.TransliterationControl(options);
// Enable transliteration in the textbox with id
// 'transliterateTextarea'.

var id = 'tbxEditor_yahoo';
id = id +"_editor";
control.makeTransliteratable([id]);
}, 1000);
});
})();

&lt;/script&gt;


&lt;/td&gt;
&lt;/tr&gt;
  &lt;/table&gt;

&lt;script type="text/javascript"&gt;
//&lt;![CDATA[
var Page_Validators = new Array(document.getElementById("RequiredFieldValidator1"));
//]]&gt;
&lt;/script&gt;

&lt;script type="text/javascript"&gt;
//&lt;![CDATA[
    var RequiredFieldValidator1 = document.all ? document.all["RequiredFieldValidator1"] : document.getElementById("RequiredFieldValidator1");


    RequiredFieldValidator1.controltovalidate = "tbxSubject";
    RequiredFieldValidator1.focusOnError = "t";
    RequiredFieldValidator1.errormessage = "???? ??????? ??";
    RequiredFieldValidator1.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
    RequiredFieldValidator1.initialvalue = "";
//]]&gt;


&lt;/script&gt;


&lt;/form&gt;



    &lt;script&gt;
            function btnClick(getVal){  
                myEditor.execCommand('inserttext', getVal.value);
            }       
    &lt;/script&gt;

    &lt;input type="button" value="a" onclick="btnClick(this);"/&gt;

&lt;/body&gt;
&lt;/html&gt; 
</code></pre>

<p>i am working on yui editor and google transliteration works when it is on , i want when it is off , it should directly convert it into my desired language like Punjabi language rather than showing english alphabets.</p>
