GTranslate is a leading website translation services provider since 2008. It uses Google Translate automatic translation service to translate wordpress site and make it multilingual. It provides 103 languages for your site users to choose from. Web masters can simply choose many combination of language options to allow users to select.
Table of Contents
Install GTraslate plugin
Settings
After the activation click on setting link under the plugin name.
Or select GTraslate from settings menu.
Select languages which are expected to be used by users.
Select options. Flags with language name displays languages in flat style with flags and language names.
Add to widget
It is required to add the translation tool to menu, widget, or somewhere you like. The widget title is optional.
Styling the language selection panel
<style type="text/css" for="gtranslate">
.widget_gtranslate div.title{ margin:0 10px 0 0 !important; }
.widget_gtranslate div.title:after{ background-color:#fff !important; }
.widget_gtranslate select{ border:solid 1px #ccc; }
a.glink img { width:25px !important; }
a.glink { width:103px !important; display:inline-block; }
</style>
Translate language names in order to display in their own language.
<script type="text/javascript" id="gtranslate">
$(document).ready(function(){
$('.widget_gtranslate span').each(function(index, obj){
obj.innerText=obj.innerText.replace('Chinese (Simplified)','简体中文');
obj.innerText=obj.innerText.replace('Chinese (Traditional)','繁体中文');
obj.innerText=obj.innerText.replace('French','Français');
obj.innerText=obj.innerText.replace('German','Deutsche');
obj.innerText=obj.innerText.replace('Japanese','日本語');
obj.innerText=obj.innerText.replace('Korean','한국어');
obj.innerText=obj.innerText.replace('Russian','русский');
});
});
</script>
Display result on web page
On the website, once a user selects a language the browser remembers the selection, whenever the user navigates to any other page it will translate the contents to the selected language automatically.
Comments