Title: Polylang Theme Strings
Author: Modeewine
Published: <strong>2015 年 5 月 29 日</strong>
Last modified: 2018 年 8 月 15 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/polylang-theme-strings/assets/icon-256x256.png?rev=1428148)

# Polylang Theme Strings

 由 [Modeewine](https://profiles.wordpress.org/modeewine/) 開發

[下載](https://downloads.wordpress.org/plugin/polylang-theme-strings.4.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/polylang-theme-strings/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/polylang-theme-strings/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/polylang-theme-strings/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/polylang-theme-strings/#developers)

 [技術支援](https://wordpress.org/support/plugin/polylang-theme-strings/)

## 外掛說明

#### What is «Polylang Theme Strings» and what for is it?

This plugin gives additional features to the plugin Polylang. It automatically scans
all templates files and scripts of the active WP theme (and all plugins) for available
strings that can be translated. For example:

 * `pll__('...');`
 * `pll_e('...');`

and adds them to the Polylang registery, after what you can manage the translation
of finded strings using the administration panel. It will make your life easier 
for the development of multilanguage’s projects, because you will not need to enter
the needed strings to translate manually – the plugin will do all the work for you.

Don’t forget that in the example are described the PHP-function calls, that is why
they have to be inside of PHP-tags.

#### How works «Polylang Theme Strings»?

You have to install the plugins «Polylang» and «Polylang Theme Strings» on your 
multilanguage WordPress CMS project and they must be both active. When you are in
the settings of plugin (Polylang) in the tab «Strings translation» the «Polylang
Theme Strings» scans automatically the active theme of your project, find all the
code strings that needed to be translated, adds them to the register, displays them
on that page and gives to user the ability to translate these strings.

Like you can see, the «Polylang Theme Strings» is perfectly integrate with the «
Polylang» plugin and works in automatically mode – it is comfortable, simple, and
useful!

From version 4.0 «Polylang Theme Strings» got settings page where you can configure
the search strings-translations more deeply.

Learn more in [http://modeewine.com/en-polylang-theme-strings](http://modeewine.com/en-polylang-theme-strings).

## 螢幕擷圖

 * [[
 * Screen of «Polylang» strings translate page settings and when «Polylang Theme
   Strings» in action.
 * [[
 * [[
 * [[

## 安裝方式

 1. Make sure you are using WordPress 3.8 or later and that your server is running 
    PHP 5.0 or later.
 2. Install multilingual plugin «Polylang».
 3. Install the plugin «Polylang Theme Strings».
 4. Activate both plugins via the ‘Plugins’ menu in WordPress administration panel.
 5. Go to the languages (Polylang) settings page.
 6. When you are in «Strings translation» tab of plugin settings (Polylang) – «Polylang
    Theme Strings» starts scan the active theme of your project automatically, it finds
    all the code strings that needed to be translated, adds them to the register, displays
    them on that page and gives to user the ability to translate these strings.
 7. Learn more in [http://modeewine.com/en-polylang-theme-strings](http://modeewine.com/en-polylang-theme-strings).

## 常見問題集

  Installation Instructions

 1. Make sure you are using WordPress 3.8 or later and that your server is running 
    PHP 5.0 or later.
 2. Install multilingual plugin «Polylang».
 3. Install the plugin «Polylang Theme Strings».
 4. Activate both plugins via the ‘Plugins’ menu in WordPress administration panel.
 5. Go to the languages (Polylang) settings page.
 6. When you are in «Strings translation» tab of plugin settings (Polylang) – «Polylang
    Theme Strings» starts scan the active theme of your project automatically, it finds
    all the code strings that needed to be translated, adds them to the register, displays
    them on that page and gives to user the ability to translate these strings.
 7. Learn more in [http://modeewine.com/en-polylang-theme-strings](http://modeewine.com/en-polylang-theme-strings).

## 使用者評論

![](https://secure.gravatar.com/avatar/e6f0019261584c0dca22df0d8a9dab572a9473cf2e3ccb37891821d794e024e5?
s=60&d=retro&r=g)

### 󠀁[Needs to be updated](https://wordpress.org/support/topic/needs-to-be-updated-12/)󠁿

 [tfbbbbb](https://profiles.wordpress.org/tfbbbbb/) 2022 年 1 月 26 日

A) It gives errors in the debug logs. B) It fucks up the woocommerce default translations.
Adding .po and .mo files in wp-content/languages/ etc wont help, because this plugin
overrides this somehow. Deactivating this plugin brings forth the translations. 
Used loco translate to try to fix this, but without results. Deactivating this plugin
is the key – It needs to be fixed.

![](https://secure.gravatar.com/avatar/c5a4408b69e41652c7d56a930861935064ed672600a6bd46770c419ff9a8cde3?
s=60&d=retro&r=g)

### 󠀁[very good](https://wordpress.org/support/topic/very-good-5739/)󠁿

 [tiagopmartins](https://profiles.wordpress.org/tiagopmartins/) 2021 年 5 月 31 
日

what I needed to translate, I got it with this free Plugin.

![](https://secure.gravatar.com/avatar/f2949e1420c186ba7fe9eafb8f5c406b6b29ddebb639e7c7da6f93d39b784643?
s=60&d=retro&r=g)

### 󠀁[Creates a strange language mixture](https://wordpress.org/support/topic/creates-a-strange-language-mixture/)󠁿

 [Martin Sauter](https://profiles.wordpress.org/martinsauter/) 2019 年 10 月 17 
日

I used Polylang Theme Strings in a WordPress 5.2.4 installation with two languages(
EN & DE) and the Job Board Manager plugin. As long as Polylang Theme Strings was
activated, most German translations did not show up correctly in the frontend although
a complete German language pack was present. Even in the WP backend parts of the
interface was mixed (i.e. under the “Seiten” menu there was a “All Pages” submenu
instead of “Alle Seiten”).

![](https://secure.gravatar.com/avatar/7fc7f6b28f8193439390a2bf3874ec920add1ddaafbe8b49d32653749bfe3722?
s=60&d=retro&r=g)

### 󠀁[Was good, now it’s too buggy](https://wordpress.org/support/topic/was-good-now-its-too-buggy/)󠁿

 [kozakr](https://profiles.wordpress.org/kozakr/) 2019 年 6 月 19 日

The plugin is changing the site language to English. And it somehow stopped registering
new strings.

![](https://secure.gravatar.com/avatar/540479e6a24e0199dd3dc07e944e6eb8fddd82878ea5ad749b9d29362990a918?
s=60&d=retro&r=g)

### 󠀁[Better than WPML… and free](https://wordpress.org/support/topic/better-than-wpml-and-free/)󠁿

 [Mariela Zárate](https://profiles.wordpress.org/marielazarate/) 2019 年 5 月 14
日

You are awesome! Thanks!

![](https://secure.gravatar.com/avatar/f206f9496ce477efe6417a7eb63ffd476b1d58fe00411090be7abbf9296dbcf7?
s=60&d=retro&r=g)

### 󠀁[Works great most of the time](https://wordpress.org/support/topic/works-great-most-of-the-time/)󠁿

 [](https://profiles.wordpress.org/alarch/) 2019 年 4 月 5 日

Great plugin – but it only detects plugin strings on some websites and not others.
The following on the Settings page states: “Include the search for plugins of WordPress
It may be required additional system resources” What exactly does this mean? Are
their server settings that can be altered that may help the plugin find the strings
from other plugins?

 [ 閱讀全部 37 則使用者評論 ](https://wordpress.org/support/plugin/polylang-theme-strings/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Polylang Theme Strings〉的開發相關工作。

參與者

 *   [ Modeewine ](https://profiles.wordpress.org/modeewine/)

[將〈Polylang Theme Strings〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/polylang-theme-strings)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/polylang-theme-strings/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/polylang-theme-strings/)，或
透過 [RSS](https://plugins.trac.wordpress.org/log/polylang-theme-strings/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/polylang-theme-strings/)。

## 變更記錄

#### 4.0 (2018-08-15)

 * Integrated new feature: include the search for native string functions of WordPress(
   configurable on setting page).
 * Integrated new feature: include the search of strings-translation for WordPress
   plugins (configurable on setting page).
 * Merged the menu of «Polylang» and «Polylang Theme Strings».
 * Own plugin settings page.
 * Fixed small bug in the theme-files search-system.
 * Tested and optimized compatibility up to WordPress 4.9.8.
 * Tested and optimized compatibility up to Polylang 2.3.9.
 * Improved code.

#### 3.5 (2017-09-11)

 * Tested and optimized compatibility up to WordPress 4.8.1.
 * Tested and optimized compatibility up to Polylang 2.2.1.
 * Improved code.

#### 3.4 (2017-05-17)

 * Fixed small bug in the search-engine of strings-translation.
 * Added file size limit in the theme-files search-system.

#### 3.3.2 (2017-01-25)

 * Added compatibility with Polylang 2.1 (Thanks to Mike Ambukadze for the report).

#### 3.3.1 (2017-01-24)

 * Fixed small bug in the theme-files search-system (Thanks to einicher).

#### 3.3 (2017-01-20)

 * Added compatibility for strings with special characters.
 * Tested and optimized compatibility with WordPress 4.7.
 * Tested and optimized compatibility with Polylang 2.

#### 3.2.1 (2016-07-21)

 * Fixed small bug (Thanks to Peter Bowyer).

#### 3.2 (2016-06-28)

 * Improved search-engine of strings-translation.

#### 3.1 (2016-06-01)

 * Improved code.
 * Tested and optimized compatibility with PHP 7.

#### 3.0 (2016-03-23)

 * Added new info area in strings-translations page (Polylang settings).
 * Improved code and scanning strings engine.
 * Tested and optimized compatibility with WordPress 4.5.

#### 2.2.1 (2016-03-09)

 * Fixed small bug in search strings-translation.

#### 2.2 (2016-01-25)

 * Optimized compatibility with Polylang 1.8.
 * Improved code.

#### 2.1.1 (2015-12-17)

 * Tested and optimized compatibility with WordPress 4.4.

#### 2.1 (2015-09-01)

 * Absolute compatibility with WordPress 4.3.
 * Partially improved code.

#### 2.0 (2015-06-21)

 * Completely remade the search strings-translations logic in the themes.
 * In the languages (Polylang) settings page: the search is performed on all themes
   in your project.
 * Optimized initialization strings-translations for the active theme.
 * Improved code.

#### 1.1 (2015-06-12)

 * Fixed bug when removing the plugin from the admin panel.
 * Improved code.

#### 1.0 (2015-05-29)

 * First release.

## 中繼資料

 *  版本 **4.0**
 *  最後更新 **8 年前**
 *  啟用安裝數 **6,000+**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.9.29**
 *  語言
 * [English (US)](https://wordpress.org/plugins/polylang-theme-strings/)
 * 標籤:
 * [extension](https://tw.wordpress.org/plugins/tags/extension/)[multilingual](https://tw.wordpress.org/plugins/tags/multilingual/)
   [polylang](https://tw.wordpress.org/plugins/tags/polylang/)[translate](https://tw.wordpress.org/plugins/tags/translate/)
   [translation](https://tw.wordpress.org/plugins/tags/translation/)
 *  [進階檢視](https://tw.wordpress.org/plugins/polylang-theme-strings/advanced/)

## 評分

 4 星，滿分為 5 星

 *  [  24 個 5 星使用者評論     ](https://wordpress.org/support/plugin/polylang-theme-strings/reviews/?filter=5)
 *  [  1 個 4 星使用者評論     ](https://wordpress.org/support/plugin/polylang-theme-strings/reviews/?filter=4)
 *  [  4 個 3 星使用者評論     ](https://wordpress.org/support/plugin/polylang-theme-strings/reviews/?filter=3)
 *  [  3 個 2 星使用者評論     ](https://wordpress.org/support/plugin/polylang-theme-strings/reviews/?filter=2)
 *  [  5 個 1 星使用者評論     ](https://wordpress.org/support/plugin/polylang-theme-strings/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/polylang-theme-strings/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/polylang-theme-strings/reviews/)

## 參與者

 *   [ Modeewine ](https://profiles.wordpress.org/modeewine/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/polylang-theme-strings/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://modeewine.com/en-donation)