To Google translate, or not to translate?
If you’re a webmaster , the number of subscribers and visitors to your blog will increase everyday (I’m hoping that), and that means that you will probably get visitors from another lifetime entirely. If your blog/site is in English, for example, you would get visitors that speak, say, Neanderthal (different from the language of the Netherlands since the Netherlands speak Dutch). That means that you would want them to have the same experience as readers of your writing language, right?
You need a translator – and the easiest I believe is out there is Google Translate. How then do we embed this functionality?
Many plugins surely can be of help, but plugins have their downsides. The more plugins you install, the less secure your website. And moreover, newer versions of your content management system (CMS) e.g. wordpress, Joomla or Drupal, may not support that wonderful plugin you installed (more especially if peradventure the developer drops dead or something unfortunate happens to the plugin, whatever)
There are many downsides to using plugins, important as they are, but what if we could achieve what we want without the risks of plugins and with just a few copy and paste? Wouldn’t it be just great?
Ok! let’s do this!
- Visit the Google Translate Website Manager (opens in another tab)
- Fill in your website name and proceed to the next page
- This is where you can customize many options like setting your desired translation options, display mode and more advanced options. You can also add the option to track your translation using Google Analytics (which is really cool), but you must have your Google Analytics Web Property ID to do this.
- Proceed by clicking on “Get code”. The next page displays a set of codes you need to copy and paste in your header and in a widget you shall create later in this tutorial
- The first code you shall copy is the meta tag. This is to be pasted on the header of your website. If you don’t know how to do this, you can get the plugin called “Insert Headers and Footers” which can be downloaded here. Download and install, then in your dashboard (if it is wordpress or blogger) you can navigate to Settings>>Insert Headers and Footers and paste the meta tag into the header field
- Create a Text widget anywhere you want the translation option to appear on your site. Paste the second code from your Google website translator in it, save and close
- As My Oga at the Top will say, that’s all (or better still, dahzall).
What are your thoughts? Please leave a comment below.