PHPackages                             motivast/polylang-string-extractor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. motivast/polylang-string-extractor

ActiveWordpress-plugin[Localization &amp; i18n](/categories/localization)

motivast/polylang-string-extractor
==================================

Polylang String Extractor is a plugin provided for extract translatable strings from WordPress functions to Polylang.

10147[1 issues](https://github.com/motivast/polylang-string-extractor/issues)PHP

Since Apr 23Pushed 6y ago2 watchersCompare

[ Source](https://github.com/motivast/polylang-string-extractor)[ Packagist](https://packagist.org/packages/motivast/polylang-string-extractor)[ RSS](/packages/motivast-polylang-string-extractor/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Polylang String Extractor 🌍
===========================

[](#polylang-string-extractor-earth_africa)

[![plugin](https://camo.githubusercontent.com/5073f0e88a4ab6933a7c6bf96638e6c2b13aa3d19b141422705b8891dd93814e/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f706c7567696e2f762f706f6c796c616e672d737472696e672d657874726163746f722e737667)](https://wordpress.org/plugins/polylang-string-extractor/) [![downloads](https://camo.githubusercontent.com/18ccd5056b06c832153ba6f3441f0438c452ea82d9f4dc89019472dd7be23d5a/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f706c7567696e2f64742f706f6c796c616e672d737472696e672d657874726163746f722e737667)](https://wordpress.org/plugins/polylang-string-extractor/advanced/) [![rating](https://camo.githubusercontent.com/3fb29a584edd74aae4b7d3b699f0ad72e5522819ea92f1d0957642dc4d66e2b2/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f706c7567696e2f722f706f6c796c616e672d737472696e672d657874726163746f722e737667)](https://wordpress.org/support/plugin/polylang-string-extractor/reviews/) [![php support](https://camo.githubusercontent.com/5319a686c5c8cde98453c1914f4985223825d22ababed96a064dc3239052889a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706870253230737570706f72742d352e36253243253230372e30253243253230372e31253243253230372e322d3838393242462e737667)](https://camo.githubusercontent.com/5319a686c5c8cde98453c1914f4985223825d22ababed96a064dc3239052889a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706870253230737570706f72742d352e36253243253230372e30253243253230372e31253243253230372e322d3838393242462e737667)

[![travis](https://camo.githubusercontent.com/0291aa0f7879a262f2e3ccee3e75bf0d4a2a4bb190282bb93f44e9aa0ae7ca11/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d6f7469766173742f706f6c796c616e672d737472696e672d657874726163746f722e737667)](https://travis-ci.org/motivast/polylang-string-extractor/) [![coverage](https://camo.githubusercontent.com/8719618b92463a0aea1e7c9513adf01788bbab5ebc8cc591450cf85f2201e0a8/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f6d6f7469766173742f706f6c796c616e672d737472696e672d657874726163746f722e737667)](https://camo.githubusercontent.com/8719618b92463a0aea1e7c9513adf01788bbab5ebc8cc591450cf85f2201e0a8/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f6d6f7469766173742f706f6c796c616e672d737472696e672d657874726163746f722e737667) [![maintainability](https://camo.githubusercontent.com/f4e2940adb549d03908f9573e1ca6cf0e5deb965daaac2672dc2ef0775f74e84/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6d6f7469766173742f706f6c796c616e672d737472696e672d657874726163746f722e737667)](https://camo.githubusercontent.com/f4e2940adb549d03908f9573e1ca6cf0e5deb965daaac2672dc2ef0775f74e84/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6d6f7469766173742f706f6c796c616e672d737472696e672d657874726163746f722e737667)

Polylang String Extractor is a plugin provided for extract translatable strings from WordPress native translation functions like `__()` or `_e()` to Polylang "Strings translations" table.

Why? ☝️
-------

[](#why-point_up)

Polylang is great plugin to translate WordPress. It provide ease way to translate pages, posts, custom post types and strings. Strings however must be translated with `pll__` or `pll_e` functions and registered with `pll_register_string` to display in "Strings translations" table. It can be very time consuming to adjust your theme or plugin to be compatible with Polylang string translations functionality.

This plugin will scan themes and plugins and search for native WordPress translations functions like `__()` or `_e()`, extract strings from them and add to "Strings translations" table in Polylang.

Installation 📦
--------------

[](#installation-package)

1. Visit Plugins &gt; Add New
2. Search for “Polylang String Extractor”
3. Install and activate “Polylang String Extractor"

or

1. Download plugin from wordpres.org repository or [release section](https://github.com/motivast/polylang-string-extractor/releases/latest).
2. Upload the polylang-string-extractor directory to your /wp-content/plugins/ directory
3. Activate the plugin through the"‘Plugins" menu in WordPress

Usage 🔥
-------

[](#usage-fire)

After plugin activation Polylang String Extractor will automaticly scan your theme and plugins loooking for WordPress translation functions. To rescan theme and plugins again you can go to "Strings Translations" of the "Polylang" plugin and click "Scan for translations" button.

Supported functions:

- `__()`
- `_e()`
- `_x()`
- `_ex()`
- `esc_attr__()`
- `esc_html__()`
- `esc_attr_e()`
- `esc_html_e()`
- `esc_attr_x()`
- `esc_html_x()`
- `_n()`
- `_nx()`
- `_n_noop()`
- `_nx_noop()`

Polylang String Extractor has support for functions which translate plurals like `_n()` but Polylang itself do not has such a functionality. Translating this kind of strings may cause unexpected results.

Contribute ✋
------------

[](#contribute-hand)

Please make sure to read the [Contribution guide](https://github.com/motivast/polylang-string-extractor/blob/master/CONTRIBUTING.md) before making a pull request.

Thank you to all the people who already contributed to Polylang String Extractor!

License 📖
---------

[](#license-book)

The project is licensed under the [GNU GPLv2 (or later)](https://github.com/motivast/polylang-string-extractor/blob/master/LICENSE).

Copyright (c) 2018-present, Motivast

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e61b64feaf64a3242ded3e06fb8734a63f953215af358b796c29e1c7e29f2bae?d=identicon)[kierzniak](/maintainers/kierzniak)

---

Top Contributors

[![kierzniak](https://avatars.githubusercontent.com/u/590020?v=4)](https://github.com/kierzniak "kierzniak (23 commits)")

---

Tags

polylangpolylang-stringswordpresswordpress-plugin

### Embed Badge

![Health badge](/badges/motivast-polylang-string-extractor/health.svg)

```
[![Health](https://phpackages.com/badges/motivast-polylang-string-extractor/health.svg)](https://phpackages.com/packages/motivast-polylang-string-extractor)
```

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
