add: alert(menuItemLabel); 
context: function onTranslatePopup(){	// Get the selected text	var focusedWindow = document.commandDispatcher.focusedWindow;	var selection = focusedWindow.__proto__.getSelection.call(focusedWindow);              // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + ...    if (selection!="")    {    	var selectedText = selection.toString()        if (selectedText.length > 15)        {            selectedText = selectedText.substr(0,15) + "...";            //selectedText = "true" + selectedText;        }        var menuText;        var item;        var sep;             item = document.getElementById("translate-context");            sep = document.getElementById("translateSeparator");                var lang = 2;                                              var menuPopupElement = document.createElement("menupopup");    for(var i = 1; i < languagePairs[lang].length ; i++)    {	    	    	var languagePair = languagePairs[lang][i] + "_" + languagePairs[lang][0];    	    	var menuItemLabel = "&translate.context.menu." + languagePair + ".label;";    			var menuItemTooltiptext = "&translate." + languagePair + ".tooltip;" ;    			var menuItemOncommand = "translateSelection('" + languagePair + "');";    			var menuItemElement = document.createElement("menuitem");    	    	   	    	    	menuItemElement.setAttribute("label",menuItemLabel);    	menuItemElement.setAttribute("tooltiptext",menuItemTooltiptext);    	menuItemElement.setAttribute("oncommand",menuItemOncommand);    	    			menuPopupElement.appendChild(menuItemElement);    	    	    }                item.appendChild(menuPopupElement);                                        item = document.getElementById("translate-context");            sep = document.getElementById("translateSeparator");                sep.hidden = false;        item.hidden = false;                        menuText = "Translate " + "\"" + selectedText + "\"";        item.setAttribute("label", menuText);                                            }    else    {        item = document.getElementById("translate-context");        sep = document.getElementById("translateSeparator");                sep.hidden = true;        item.hidden = true;    }                document.getElementById("translateSeparator");.appendChild(menuItemElement);   }
meta: 9817	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9817/47783ca3f4c72f882cdedcf96d187fc6f5466a5c/translate.js/clean/branch/options/chrome/content/translate.js