WPML is a popular plugin for translating the text within your website to various languages for your international customers. One of the benefits of the Table Rate shipping method is that you can define regions across the world and offer varying shipping costs for each. But that means customers speaking different languages, so you will want to ensure that your titles translate accordingly.
Before we get started, if you do not have a copy of WPML, you can purchase one here.
- WPML Multilingual CMS 3.1.5+
- String Translation 2.0+
- WooCommerce Multilingual
Install and activate the necessary WPML plugins (WPML Multilingual CMS, WPML String Translation, WPML Translation Management). Once these have been installed, you will also need to install WooCommerce Multilingual to manage the translations for your ecommerce shop.
Set up WPML from WPML->Languages. WPML has a simple three step process to guide you through installation, but if you need any further help, please see the WPML Getting Started Guide for a complete reference.
Translating Your Shipping Titles
After you submit the form to save your Table Rate settings, this plugin will scan through your table and find all unique Titles. During the process, it will register them with WPML so that they can be later translated. Because this information is not part of the post or page structure of WordPress, its translation settings can be found WPML->String Translation.
A complex site may contain many strings to translate. Using the display filter, at the top of the String Translation page, filter the Domain to display ‘be-table-ship’. Each unique shipping title in the table will have a Name in the following format: shipping-title-your-shipping-title-here
Click on the translations link to open the translation editor. Be sure to click on ‘translation is complete‘ after you translate. Incomplete translations will not appear in the site.
Deleting the Translation
Perhaps you not longer use a certain shipping title and wish to remove the strings associated with it. Simply select the strings you want to remove and click “Delete”.