[WordPress] 外掛分享: Calendar Translation

首頁外掛目錄 › Calendar Translation
10+
安裝啟用
尚無評分
5315 天前
最後更新
問題解決
WordPress 3.1+ v0.2 上架:2011-03-22

內容簡介

這個外掛可讓你翻譯時間和日期,並在你的佈景主題中使用 the_time、get_the_time、the_date 和 get_the_date 。例如:如果你的 WordPress 安裝是在英語中,你可以將日期和時間翻譯成巴西葡萄牙語。

在配置文件 configuration.php 中,你可以設置語言環境、字符集和日期/時間格式。格式鍵必須遵循 strftime 格式參數 (http://php.net/manual/en/function.strftime.php)。

你必須在 The Loop 中的你的佈景主題中調用 the_time、get_the_time、the_date 或 get_the_date 。參數將被忽略。

此外掛使用 set_locale 函数,如果你的服務器上沒有所需的語言環境/字符集,它將會失敗。詳細信息,請參閱手冊(http://php.net/manual/en/function.setlocale.php)。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Calendar Translation」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

With this plugin you can translate date and time, using the_time, get_the_time, the_date and get_the_date in your themes. For example: If your WordPress installation is in English, you can translate just date and time to Brazilian Portuguese.
In the file configuration.php you can set the locale, charset, and date / time format. The format key must follow the strftime format parameter (http://php.net/manual/en/function.strftime.php).
You must call the_time, get_the_time, the_date or get_the_date in you theme, within The Loop. Parameters are going to be ignored.
This plugin uses set_locale function and it will fail if you don’t have the desired locale/charset installed on your server. For more information, please read the manual (http://php.net/manual/en/function.setlocale.php).

延伸相關外掛

文章
Filter
Apply Filters
Mastodon