how to add google translate into actionbar

edited November 2016 in Other
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>



this is my google translate code.

I want to put google translate into the actionbar.

Now I put into here:


If I put into here:


Or do you have other best way to solve it?
thank you.

Comments

Sign In or Register to comment.