Let’s say you have a business where you get reviews from people using multiple different languages. It can be beneficial to show these reviews together or separate them based on language. For example, if you have different language versions of your WordPress site (using WPML) you may want to only show reviews that match the current language. Below I’ll take you through the steps to accomplish this using my WP Review Slider Pro WordPress plugin. At the end I’ll even show you how you can translate your reviews in to another language.
For this example, I’ll be using Google reviews for the Eiffel Tower. Once I have them downloaded they will show in the Review List page like so…
First, I’ll need to add a language code to each review so the Plugin will know which reviews to show based on the language. Go to the Tools page in the plugin and run the Multi-Language Detector. It will assign a language code to each review. (Bonus tip: there is also a Language Translator tool if you would like to create copies of each review in different languages.)
After running the Language Detector on the reviews, go back to the Review List page and you should have the language code listed.
Now I can create a review template and filter by language code to only show the reviews I want based on language. Learn about other Filter options here.
Here is the language filter for the review template.
Notice that you can also use the current WPML site language if you use that plugin. Since I set the language code for the reviews to “en”, then my review template is only going to show English reviews…
Bonus Tip: You can also translate reviews to another language using the Google Translate API.
If you go back to the Tools page in the plugin and scroll down, you will notice the Language Translator tool. It works with the Google Translate API. Once you get an API Key from Google and enter it, then you can run the tool to translate your reviews in to the language of your choice. You can even set it to auto-translate new reviews.