Gtranslate - User Guide

Gtranslate - User Guide

For pricing and how to add to your website see at the bottom of the page.

Now you can run Setup Wizard on your User Dashboard to configure GTranslate.

1. Choose URL structure

You can use sub-domain URL structure (http://es.example.com) or sub-directory URL structure (http://example.com/fr/) with your subscription. If you have Enterprise subscription and want to host your language on a top level country domain name (http://example.fr), please contact us.

Note: For Shopify shops you can only use sub-domain URL structure.

Configuring sub-directory URLs

WordPressIf you are using WordPress install GTranslate plugin and turn on "Sub-directory URL structure" option from GTranslate Settings page. Go to step 3.

You will need to have PHP and Apache on your server to use this option. If you have other than Apache web-server, please contact us.

  1. Download GTranslate URL add-on and unzip it
  2. Edit gtranslate/config.php file to set correct main_lang language code
  3. Upload gtranslate folder into www root directory
  4. Edit/create .htaccess file in www root directory and add the following into the top of the file:
    # gtranslate config
    RewriteRule ^(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)/(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)/(.*)$ /$1/$3 [R=301,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)/(.*)$ /gtranslate/gtranslate.php?glang=$1&gurl=$2 [L,QSA]
    RewriteRule ^(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)$ /$1/ [R=301,L]
    
    

 

Configuring sub-domain URLs

To have sub-domain URLs you just need to add DNS CNAME records for each language. You will receive the list of CNAME records in the instructions email after you complete your order. After they are added your translations will be live in a couple of minutes. Go to step 2.

2. Add language selector

Download and add our GTranslate Free language selector to your website and use Sub-Domain or Sub-Directory URL structure option depending on your choice.

3. Final checks

If you have URL Translation feature available in your subscription and would like to turn it on, please follow Enable URL Translation instructions.

If you are using sub-domain URL structure and you have SSL on your website, let us know, so we can generate Let's Encrypt certificate for you or send us your wildcard SSL certificate and RSA private key files to be installed on our servers.

Note: Do not do both sub-directory and sub-domain configurations at the same time.

If you are having any issues, we can make the configuration for you, please contact us.

Enable URL Translation

WordPressTurn on "URL Translation" option from GTranslate plugin Settings page.

ShopifyTurn on "URL Translation" option from GTranslate app Settings page.

Joomla, Drupal and Other platforms:

To enable URL translation feature for your website you need to add the following code into the head tag of your pages.

<meta name="uri-translation" content="on" />

Make sure it is on top of other tags inside head tag.

Editing Translations

In order to edit the translations you need to go to the language you want to edit and then add ?language_edit=1 to the URL. If you already have ? in the URL you need to add &language_edit=1 to the URL. For example to edit a text on home page in Spanish language you need to go to http://es.example.com/?language_edit=1 | http://example.com/es/?language_edit=1 which will open the edit interface.



You will be able to visually see the difference of already edited texts and automatically translated texts in edit mode. The texts with the red pencil icons are edited texts. Automatically translated texts are with the green pencil icons.

With the arrow icon you can edit the translated URLs.

Overview and pricing of this feature. Click here

Troubleshooting this feature? Click here


    • Related Articles

    • Gtranslate - Troubleshooting Guide

      Can't see any Troubleshooting Guides on this page? This means we don't have any, please raise a ticket here if you have an issue and help us build out our guides! Overview and pricing of this feature. Click here Looking for the user guide for this ...
    • Translate Press - Feature

      View Guide Links at the bottom of the page Installation 1 CRU CREDIT Setup (optional) 1 CRU CREDIT Ease Of Use Easy Want this feature? Request Here Purchase CREDITS Here WordPress translation plugin that anyone can use A better way of translating ...
    • Translate Press - User Guide

      For pricing and how to add to your website see at the bottom of the page. Settings You can access the TranslatePress plugin settings in the administrator area in the menu under Settings -> TranslatePress. It can also be accessed both from the ...
    • AutomateWoo - User Guide

      For pricing and how to add to your website see at the bottom of the page. AutomateWoo is a marketing automation plugin which integrates directly with your WooCommerce store. Using automated marketing campaigns and a unique set of tools, AutomateWoo ...
    • Basic Wordpress - User Guide

      Permalinks Overview Permalink is short for “permanent link.” Permalinks are permanent URL structures used to help organise the content of your website (pages, posts, products, etc.) so it can be efficiently navigated, shared, and referenced by users ...