To implement the Localization in any web application, we need to take different approaches based on the technologies and project architecture. We need to take care of so many things in our code also. What ever may be the approaches [Resource files/Databases]; we need to create the different versions of Resource files/Databases (Table Entry) based on different languages which is a very hectic and difficult job to do. Until now no good tool is present to convert the resource file from one language to another. YES we can create our own tool to do this using Google Translator API but even then we have to do a lot of work.
Using Google website translator gadget , we can give options to end users for automatic translations of their pages. This may be an alternative/replacement of our technology based implementation of Localization . Please go through links at the bottom of this tip for more information on this.
If you are using Google Translator Widget, you don't need to write any code for the translation. Just add the following code snippet your web site !! :))
<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');
}
</script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>