WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Marcin Kazmierski v3.4.9

Theme and plugin translation for Polylang

Theme and plugin translation using Polylang for WordPress. Extension for Polylang plugin.

Theme and plugin translation for Polylang

The facts

Rating
4.7★ from 35
Active installs
10k+
Price
Free
Last updated
15 Mar 2025
Added
Feb 2016
Requires WP
5.7
Tested up to
WP 6.6.7
Requires PHP
7.0
Downloads
284,933

Our analysis

AI-assisted

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

  • Free to use from the WordPress.org directory
  • Integrates with the Timber library for Twig template translations
  • Automatically scans files for translatable texts
  • Supports multiple file types for translation
  • Easy management through the admin dashboard

Where it falls short

  • Limited information on specific configuration options
  • No details on user support or documentation quality

Verdict

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.

From the developer

Marcin Kazmierski's own description of Theme and plugin translation for Polylang, lightly tidied.

What is “Theme and plugin translation for Polylang”?

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.

How to configure it?

Select themes and plugins to find texts for translation by Polylang.
In admin dashboard:

Languages -> TTfP Settings

How it is work?

“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:

  • php
  • inc
  • twig

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:

  • _e(string $text, string $domain = ‘default’);
  • __(string $text, string $domain = ‘default’);
  • _x(string $text, string $context, string $domain = ‘default’);
  • pll_e(string $text);
  • pll__(string $text);
  • esc_html(string $text);
  • esc_html_e(string $text, string $domain = ‘default’);
  • esc_html__(string $text, string $domain = ‘default’);
  • _n(string $single, string $plural, int $number, string $domain = ‘default’);
  • esc_attr_e(string $text, string $domain = ‘default’);
  • esc_attr__(string $text, string $domain = ‘default’);

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:

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for running multilingual.

Translate WordPress with GTranslate

Translate WordPress with Google Translate multilanguage plugin using AI translation. Complete multilingual SEO...

Free 900k+ installs 4.9★ (4,950)
Loco Translate

Translate WordPress plugins and themes directly in your browser. Versatile PO file editor with integrated AI t...

Free 1M+ installs 4.8★ (452)
TranslatePress

Translate your site visually, directly from the front-end. Go multilingual in minutes using automatic AI trans...

Free 400k+ installs 4.7★ (1,653)
Cyr-To-Lat

Convert Non-Latin characters in post, page and term slugs to Latin characters.

Free 300k+ installs 4.7★ (98)
WP Chat App

Integrate WhatsApp experience directly into your WordPress website.

Free 100k+ installs 4.9★ (219)