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

Per Post Language

外掛說明

你是否使用不同語言撰寫網站內容?
你是否想要網站佈景主題的語言屬性標記值與你撰寫的文章或頁面有著相同的設定?

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

使用者評論

2023 年 2 月 24 日
This plugin provides a small way to solve multilingual websites, specify different language tags on different pages or articles, and it can also work normally on WordPress 6.1.1
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.
閱讀全部 9 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Per Post Language〉的開發相關工作。

參與者

〈Per Post Language〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈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.