Translate WordPress with Google Translate multilanguage plugin using AI translation. Complete multilingual SEO...
Theme and plugin translation using Polylang for WordPress. Extension for Polylang plugin.
Theme and Plugin Translation for Polylang (TTfP) is a WordPress plugin designed to facilitate the translation of themes and plugins using the Polylang extension. It automatically searches through the files of WordPress themes and plugins for translatable texts, specifically targeting files with certain extensions like .php, .inc, and .twig.
The plugin integrates with the Timber library, allowing for the translation of Twig templates. Users can select which themes and plugins to scan for texts, and the results can be managed through the admin dashboard, making it suitable for developers and site owners looking to create multilingual WordPress sites.
Best for: This plugin is best for WordPress developers and site owners who need to manage translations for themes and plugins using Polylang.
What it does well
Where it falls short
Theme and Plugin Translation for Polylang offers a straightforward solution for translating WordPress themes and plugins. It is a useful tool for those looking to enhance their multilingual website capabilities.
Marcin Kazmierski's own description of Theme and plugin translation for Polylang, lightly tidied.
Extension for Polylang plugin (Polylang is an extension to make multilingual WordPress websites.).
Plugin is needed to translate the WordPress themes and plugins by Polylang.
Select themes and plugins to find texts for translation by Polylang.
In admin dashboard:
Languages -> TTfP Settings
“Theme and plugin translation for Polylang” automatically searches all files of WordPress themes and plugins. It chooses from this file only those files with extensions:
In addition, is implemented the integration with Timber library (read more: http://timber.upstatement.com) – which allows to translate twig’s skins in simple way.
Plugin in searched skins or plugins chooses texts from Polylang functions, such as:
In your function.php, themes or plugins.
For example:
<p><?php pll_e('My text'); ?></p>
<p><?php _e('My another text', 'my_theme'); ?></p>
On the timber context declare this functions like:
$context['pll_e'] = TimberHelper::function_wrapper('pll_e');
$context['pll_'] = TimberHelper::function_wrapper('pll_');
See more on: https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/
These functions are defined by Polylang plugin for printing translations.
Thanks “Theme and plugin translation for Polylang” you can find these strings to translate and add to Polylang register on very simple way.
And then you can translate these texts from the admin dashboard.
The scan result can be seen on the tab with translations:
Other plugins for running multilingual.
Translate WordPress with Google Translate multilanguage plugin using AI translation. Complete multilingual SEO...
Translate WordPress plugins and themes directly in your browser. Versatile PO file editor with integrated AI t...
Translate your site visually, directly from the front-end. Go multilingual in minutes using automatic AI trans...
Convert Non-Latin characters in post, page and term slugs to Latin characters.
Integrate WhatsApp experience directly into your WordPress website.
OneTap is a multilingual WordPress plugin designed for seamless website accessibility.