Gift cards are a popular and versatile tool for enhancing customer engagement and boosting sales in your WooCommerce store. WebToffee WooCommerce Gift Cards is the best solution for adding a gift card purchase option to your store. However, if your store caters to a global audience, providing multilingual support is crucial for a seamless shopping experience. This is where WPML (WordPress Multilingual Plugin) comes into play.
In this article, we’ll guide you through configuring WebToffee WooCommerce Gift Cards with WPML, ensuring that your gift cards are accessible and functional across multiple languages.
Prerequisites
- WebToffee WooCommerce gift cards plugin: Install and activate the WebToffee WooCommerce Gift Cards plugin on your WordPress site.
- Create the necessary gift card products for your store. These products will be translated later.
- Set up your gift card products correctly in your WooCommerce store. These products will be the ones you translate to make them accessible in multiple languages.
>>How to add a Gift Card as a product to a WooCommerce store
- WPML plugin:
- Install and activate the WPML core plugin.
- Install and activate the WPML String Translation add-on. Ensure that the WPML String Translation add-on is properly installed and activated. This add-on is essential for translating the various strings used in the WebToffee WooCommerce Gift Cards plugin.
>> Installing and activating the WPML string translation
Translate WooCommerce gift card products
To translate your gift card products using WPML, follow these steps:
- Select items for translation:
- From the WordPress dashboard, navigate to WPML > Translation Management.
- Scroll down to the Select items for translation section.
- Here, you will find a list of all the available products in the store. Use the search bar to locate the gift card product you intend to translate.
- Choose translation options:
- After selecting the desired product, choose the translation options. Select the languages you want to translate the product into. If you don’t want the product translated into a specific language, choose “do nothing” for that option.
- Under How do you want to translate?, choose Translate automatically to have the product translated automatically. Alternatively, to gain full control over the translation, you can choose Translate myself.
- Start the translation:
- If you chose Translate automatically, click on Start translation. This adds the translation to the queue, and you will be notified once it is completed.
- If you chose Translate myself, click Add to translation queue. Adding the task to the queue does not automatically translate it. You will have to translate it manually.
- Access the translation queue:
- In the translation queue, you will see a translation task for each language you selected. For example, if you choose four languages, the system will add four translation tasks to the list.
- Click on Translate next to any language to start the translation process.
- Translate product strings:
- Clicking Translate will direct you to the WPML website. The left side lists all the available strings inside the product, including the product title and description for a gift card.
- Click on the ‘+‘ icon for every string to add the translation.
- Enter the corresponding translation in the text area on the right side.
- Click on the tick mark on the top right corner to confirm your input.
- Repeat the process for all available strings.
- Complete the translation:
- Once you have translated all the strings, click on Complete Translation.
- A new product will be added to your store in the translated language. Switch your site language to see the product in your store.
A new product in the translated language will be added to your store. Switch your site language to see the product on your store.
Following these steps, you can ensure that your WooCommerce gift cards are fully functional and accessible in multiple languages, providing a seamless shopping experience for your global audience.
Translating strings available in the plugin
To translate all the available strings within the WebToffee gift card plugin using the WPML string translation tool, follow these steps:
Step 1: Scan the plugin for strings:
- From the WordPress dashboard, navigate to WPML > Theme and Plugins Localization.
- Scroll down to the Strings in the plugins section.
- Find the WebToffee WooCommerce Gift Cards plugin from the list and check the box next to its name.
- Scroll down to the bottom of the screen and click on the Scan selected plugins for strings button. This will scan all the strings present in the plugin.
Step 2:Translate the strings:
- Navigate to WPML > String Translation.
- In the String Translation page, use the In domain dropdown menu to select the plugin domain (
wt-gift-cards-woocommerce
). - Click Search to list all available strings in the plugin.
- Search or scroll through the page to locate the strings you want to translate.
- Once you find a string, click on the ‘+‘ icon under the desired language (languages are listed with their respective country flags).
- Enter the translation in the dialogue box that appears and save it by pressing the Enter key or clicking anywhere outside the translation window. Use the Tab key to switch between languages.
- Repeat these steps for all the strings that need translation.
Other Methods for Translating Strings
>> Translate multiple strings at once with WPML : This method allows you to select and translate multiple strings simultaneously, saving time and effort.
>> Translate strings by sending them to the translators: You can send the strings to professional translators if you prefer not to handle the translation yourself.
>> Perform automatic translation of strings: WPML offers an automatic translation feature that can translate strings quickly, although manual verification is recommended to ensure accuracy.