WooCommerce Mr. Tailor Theme Traditional Chinese (Taiwan) Translation
WooCommerce Mr. Tailor 佈景主題 繁體中文翻譯檔
Mr. Tailor 是由 getbowtied 所製作發佈的 WooCommerce 收費佈景主題. 中文化翻譯檔由 Arthur C. Kao 編譯, 免費發佈.
- WooCommerce 版本 2.3.11 或以上, 安裝於相容之 WordPress 系統上.
- Mr. Tailor Theme 版本 1.5 或以上
- 啟用 Mr. Tailor Child Theme. 如果不知道什麼是Child Theme(子佈景主題), 請參考本教學.
- 下載並解壓縮檔案
- 用Poedit開啟
zh_TW.po
, 再直接儲存檔案. Poedit 會自動在同一個資料夾生成zh_TW.mo
. - 把
zh_TW.po
及zh_TW.mo
上傳到wp-content/themes/mrtailor-child/
目錄. - 複製下方的程式碼貼在
wp-content/themes/mrtailor-child/functions.php
/**
* load mr tailor child theme translation file (zh_TW.mo)
*/
add_action( 'after_setup_theme', 'my_child_theme_setup' );
function my_child_theme_setup() {
load_child_theme_textdomain( 'mr_tailor' );
}
- 搞定
使用 Poedit 開啟目前使用的翻譯檔, ie. zh_TW.po
.
點選 Catalog > Update from POT File > 選取對應的更新版翻譯檔 > 存檔
請編輯zh_TW.po
後以github pull request 通知作者.
MIT