Set up multi-language website with GTranslate
How to set up multi-language website
GTranslate is a third-party tool that you can use to set up multiple languages on your Easol website. For a full list of supported languages, please refer to GTranslate's FAQ.
1. Connect your domain to Easol
Before configuring your setup on GTranslate, make sure your domain name is connected to Easol.
2. Create your GTranslate account
Go to GTranslate, choose a pricing plan that fits your needs (number of languages, requirements for URL translations etc.) and click Subscribe or Try Now.
Once you have chosen a subscription level, complete the signup process – you will receive an email with your login details.
Note: Translations are created automatically using Google and Bing but you can edit these further in your GTranslate dashboard. A free plan is available however this is limited to machine translation only.
3. Configure your GTranslate account
Sign into GTranslate and click Setup Wizard. Next, select Other for Platform and Sub-domain for URL Structure.
4. Update your DNS records
Log into your DNS provider (e.g. GoDaddy, Namecheap, Cloudflare) and select your domain name. Using your domain's DNS settings or DNS management, create a CNAME record for each of the languages you want to offer your website in. You can find the exact CNAME configuration details for each language under URL Structure in GTranslate's Setup WizardBack in GTranslate.
For more information, please refer to GTranslate's CNAME guide.
5. Configure your language selector
Next, configure how you would like the language selector to look on your website. Choose which languages you would like to include and whether you would like to show flags and/or a dropdown menu.
When you have finished configuring the language selector, copy the widget code from the Widget Code box. It will look something like this:
<!-- GTranslate: https://gtranslate.io/ -->
<a href="#" onclick="doGTranslate('en|ru');return false;" title="Russian" class="gflag nturl" style="background-position:-500px -200px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Russian" /></a>
<style type="text/css">
<!--
a.gflag {vertical-align:middle;font-size:16px;padding:1px 0;background-repeat:no-repeat;background-image:url(//gtranslate.net/flags/16.png);}
a.gflag img {border:0;}
a.gflag:hover {background-image:url(//gtranslate.net/flags/16a.png);}
-->
</style>
<br /><select onchange="doGTranslate(this);"><option value="">Select Language</option><option value="en|ru">Russian</option></select>
<script type="text/javascript">
/* <![CDATA[ */
function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(lang_pair=='')return;var lang=lang_pair.split('|')[1];var plang=location.hostname.split('.')[0];if(plang.length !=2 && plang.toLowerCase() != 'zh-cn' && plang.toLowerCase() != 'zh-tw')plang='en';location.href=location.protocol+'//'+(lang == 'en' ? '' : lang+'.')+location.hostname.replace('www.', '').replace(RegExp('^' + plang + '\\.'), '')+location.pathname+location.search;}
/* ]]> */
</script>
Email this code to support@easol.com to get the language selector added to your website.
6. Complete setup
Proceed to Final Checks, where GTranslate will verify that your domain is configured correctly. You can then edit the machine-generated translations by following GTranslate's guide here.
Comments
0 comments
Article is closed for comments.