GLT Premium now offers capability to edit translations – for those users who want full control over translated pages. All pages are stored inside of WordPress, and you have full capability to edit single words and phrases. You create translated pages in the same way as regular pages and posts.
How it works:
Our plugin requires you to copy content from your ORIGINAL pages/posts in your default language, then paste that content into NEW, translated pages (stored in a separate location inside of WordPress).
- Upon activating manual translation, a new menu labeled “Languages” appears the left WordPress menu.
- Translated pages must use the same PAGE SLUG as your original post or page.
- Permalinks might need to be flushed after creating your first translated page. Navigate to “Settings > Permalinks” and save your settings twice to ensure the settings are flushed and updated.
You can find the slug of your original post/page by visiting “Edit Screen” for that specific page or post. The page slug is located under the title, at the end of the Permalink. For example, if your website has a page named “Sample Page”, the page slug would be “sample-page” and is found at the end of the permalink (http://www.example.com/sample-page).
- DE-ACTIVATE auto-translation by removing check mark from AUTO-TRANSLATION settings page. ACTIVATE manual translation by placing check mark on the MANUAL TRANSLATION settings page.
- Activate a new language by placing a check mark in the language list
- Choose whether to show/hide the language switcher for translated pages
- Save settings
Notice the new menu “Languages” in the left menu. Under this menu you will see your chosen languages, and you will store all of your pages/posts under each language.
Create Your First Translated Page
- Navigate to an ORIGINAL post or page of your choice
- Make sure that you are displaying the “Visual” text editor. Copy the content inside of the text editor by highlighting it. You can copy your images and non-text content, but you will likely need to re-position them later. Just copy everything in the text editor for now.
- Take note of the PAGE SLUG for later use
- Navigate to the “Languages” menu and select your desired language in the sub-menu
- Add a new page and give it a title of your choice. Paste your copied content into the text editor (Visual).
- Click “Publish” to save the content.
- Click “Preview” to ensure that the new page is created on your website.
(Note: Your new web page may not yet look the way you want.)
At this point, if you have done everything correctly you should now have a NEW page created under the “Languages” menu, and it should contain the original content that you copied previously.
Translate Your Content
Under the text editor there is a box is a box labeled “Translation Workspace”. Notice that the content of your NEW page will display here.
- Notice the Google Translate widget. Use Google’s auto-translation tool to translate content into your new language
- Copy/paste the translated content into the text editor above.
- Click “Update” to save the new translated content.
- Click “Preview” to view the new translated content.
(Remember: you will need to manually adjust any non-text content (i.e. images, iframes, etc) so that it displays correctly on your new page.)
- You’re finished! Feel free to edit translations as needed!
Create a Custom Template for Translated Pages
GLT uses “single.php” from your current theme to display translated pages. You can override this template and modify it to suit your needs. You will need to create a new template file to do this.
To create a new template:
- Login to your hosting account or gain access to your website files via FTP.
- Navigate to your current theme folder and create a new folder named “translation”. For example, you will create a folder that appears like this: “http://yoursite.com/wp-content/themes/your-current-theme/translation”.
- Create a new file named “single.php”. For example, your file location should look like this: “http://yoursite.com/wp-content/themes/your-current-theme/translation/single.php”.
- Add code for your new page template. Start by copying the code from your theme’s “single.php” file, then paste it into the NEW “single.php” you just created. Feel free to modify the layout to suit your specific needs.
- GLT will now use this new file to display translated pages! If your page does not look correct, there might be some type of conflict with your website. WP Studio will be happy to help you resolve the issue and get you up and running! We are confident that manual translation will work on your site, although sometimes issues arise that require attention.
If you need assistance of any kind, please feel free to contact us here.