Are you looking for a WordPress theme translation plugin? Loco Translate is definitely the best right now. Indeed, it is a plugin that offers the translation of WordPress themes and plugins. If you have translated your website and notice that part of the website is not translated, you must surely validate if the texts are not in the codes. During the development process of WordPress websites, sometimes the developer finds it necessary to put some of the content in the code. And, this is done with specific functions like __()
and _e().
In this article, we will see together how to use loco translate for WordPress theme and plugin translation.
You can only use the WordPress theme translation plugin if your template uses the text domain. Indeed, WordPress uses the concept of text domain (or text domain in English) with functions such as _e or __ to manage content in codes. Therefore, during the development process, developers must be sure to use these functions to facilitate translation. For exemple; If I want to include the text “Click to learn more” in the code, we could have:
<?php _e("Click to learn more", "prositeweb"); ?>
Or
<?php echo __("Click to learn more", "prositeweb"); ?>
If, however, in the codes we have:
<?php echo "Click to learn more"; ?>
Loco translate will not be able to consider. Even less any other alternatives to Loco translate.
Some strings may not be ready for translation if the theme or plugin has not been properly internationalized. In these cases, you may need to adjust the source code or use a child theme to add missing text domains. This ensures that all parts of your site can be translated and remain up to date after updates to the main theme.
With Loco Translate, translating your WordPress site becomes a simple and accessible task, even without in-depth technical skills. However, the quality of the translation strongly depends on the good preparation of your theme or plugin. Make sure everything is set up correctly to get the most out of this powerful localization tool. For more practical details, please see the tutorial video linked to this article, which will guide you through each step of the process. Contact us if you need assistance.