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

Per Post Language

描述

Do you write posts in different languages?
Would you like your blog theme language to be the same as the language in which your wrote your post or page?

With this plugin you can set the language of your blog per post and also per page, that is if your blog is in English and you wrote a post or a page in Spanish or Arabic you can set the language of your blog to match that post’s or page’s language, so when your visitors open that post or page they will see your blog in that language. You don’t have to translate your theme and plugins if they come with translations and even it will change the direction of the view to RTL (Right-to-Left) if your language is RTL based.

  • The plugin does not provide any translations, it only changes the themes and plugins translation language if they provide there own translations.
  • The available languages are only the languages that WordPress already recognizes and supports.
  • The plugin only works for posts and pages, the front page will show in the blog default language.

螢幕截圖

  • The settings page of the plugin where you add needed languages.
  • The "Post Language" box is used to set the post language from the post edit page.
  • The home page shows in the blog default language.
  • Example of a post in Dutch (Deutsch)
  • Example of a post in Azerbaijan (گؤنئی آذربایجان)
  • Example of a post in Arabic (عربي)
  • Example of a post in Brazilian Portuguese (Português do Brasil)
  • Example of a post in Spanish (Español)

安裝

  1. Search for the plugin from within the blog plugin admin page, or manually upload the plugin folder to the /wp-content/plugins/ directory.
  2. Install and Activate the plugin.
  3. Go to Settings -> “Per Post Language” and add your languages.

To use it simply go to the post edit page and select the language from the “Post Language” box.

IMPORTANT: If you use server caching or have a caching plugin, you might need to delete all caches after installing or updating this plugin.

常見問題

Q: I installed this plugin but my theme or plugin still shows in the default blog language, why?

Check if your theme or plugin has support for your language. Also if switching to RTL language make sure your theme has RTL support. (All WordPress default themes has support for LTR & RTL and translations for many languages)

Q: I use a plugin which has support for my language but that plugin still shows in the default language?

Some plugins are developed to load the translations very early and before the post is loaded so they only see the default language. Contact the plugin developers or create a support ticket and ask them to delay the loading of the translations, also send them this link: http://geertdedeckere.be/article/loading-wordpress-language-files-the-right-way

評價

2018年7月17日
Although the plugin has not been updated for two years, I gave it a try. It is exactly what I needed to get the Google Charts displaying the right thousands separator on a website with pages in either Dutch or English 12.000,00 in Europe 12,000.00 in English notation The plugin changed the tag <html lang="en-US"> which is something that not can be done by adding extra meta tags in the header section.
2017年9月16日
Really great plugin. Have my blog with recipes for my and nearby countries. This plugin is just the one I needed to support foreign language nested into my whole blog in my local language. https://vegcook.net/ Also I wrote my own theme detecting post language and displaying flags depending on a post language (please see flags before the titles on main front page). All my recommendations!
2017年7月4日
This plugin does a great job when all you want is to have a page in a different language. Since it changes the WordPress locale, it affects the HTML language attributes, the language attributes, generated by SEO/OpenGraph/sharing plugins, etc. which is great. I was just researching the proper action hook to use to switch the locale per post or page, when I found out it has been already done and packaged in plugin. It saved me an hour or two developing my own solution.
2017年2月12日
Works! But sometimes the PO file does not contain all translated words and you keep thinking this plugin is faulty!
閱讀全部8個評價

貢獻者及開發者

“Per Post Language” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Per Post Language 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.3

  • Set the language direction of the editing page for posts and pages if your language is RTL, that can be done by setting the direction of your language from settings page. The direction only effect the title and the post body, the rest follows the main default blog language direction.

1.2

  • Now you can set the language for Pages also.
  • Language translation fix to be compatible with WordPress translation service
  • A visual notifications for language download status.

1.1

  • Bug fix, make the plugin react only on posts and not pages.

1.0

  • Initial release.