[WordPress] 外掛分享: Quick Translate POT/PO/MO

首頁外掛目錄 › Quick Translate POT/PO/MO
WordPress 外掛 Quick Translate POT/PO/MO 的封面圖片
20+
安裝啟用
尚無評分
9 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v2.8.1 上架:2025-10-02

內容簡介

Quick Translate POT/PO/MO 是一款用於生成和修改 WordPress 外掛翻譯檔案的工具。它能即時顯示變更效果,並簡化翻譯過程,讓使用者能輕鬆管理翻譯檔案。

【主要功能】
• 生成 POT 檔案:從外掛原始碼提取可翻譯字串
• 生成和更新 PO 檔案:根據 POT 檔案創建或更新翻譯檔
• 編輯 PO 檔案:直接編輯現有 PO 檔案中的翻譯字串
• 生成 MO 檔案:自動創建 WordPress 使用的二進位 MO 檔案
• 自動翻譯工具:使用 Google Translation 或 DeepL 自動翻譯未翻譯部分
• 下載檔案:可下載 POT、PO 和 MO 檔案到本地

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.8.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Quick Translate POT/PO/MO」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Quick Translate POT/PO/MO Plugin Manual
1. Introduction
“Quick Translate POT/PO/MO” is a tool for generating and modifying WordPress plugin translation files.
It allows you to instantly see the effects of your changes and complete the following tasks directly in your browser.

Generate POT files (Translation Template): Extract translatable strings from a plugin’s source code to create a template file.
Generate and Update PO files (Translation File): Create a new PO file for a specific language based on a POT file, or update an existing one.
Edit PO Files: Directly edit translation strings in an existing PO file.
Generate MO Files (Binary File): Automatically create the binary MO file that WordPress uses when you save your PO file edits.
PO File Automatic Translation Tool: It automatically translates the untranslated parts of a PO file using Google Translation or DeepL.
Download POT, PO, and MO Files: Download each POT, PO, and MO file to your local directory.
Delete MO Files: Remove unnecessary MO files.

2. How to Use
Step 1: Generating a POT File

Go to the “1. Generate POT file” section.
Select the target plugin from the “Select a Plugin” dropdown.
Click the “Generate POT” button.
If a POT file already exists, a confirmation pop-up will appear.

➡ This will create a [text-domain].pot file in the plugin’s languages directory.
Step 2: Generating and Updating a PO File

Go to the “2. Generate / Update PO file from POT” section.
Select the target plugin from the “Select a Plugin” dropdown.
Click the “Generate / Update PO” button.

➡ This will generate a PO file (e.g., ja.po) based on your WordPress language settings.
➡ If the PO file already exists, the existing translations (msgstr) corresponding to the strings (msgid) in the POT file will be preserved in the updated PO file.
Step 3: Editing a PO File and Generating an MO File

Go to the “3. Edit PO file & Generate MO file” section.
Select the target plugin from the “Select a Plugin” dropdown.
Click “Load PO” to display the PO file contents in a table.
Edit translations directly in the “msgstr” column.
Click “Save Changes and Generate MO” to save changes and create the MO file.

➡ Changes in the editor are saved to the PO file and the MO file is generated simultaneously only when you click the “Save Changes and Generate MO” button.
For more effective translation work:
Step 2.5: Automatically Translate a PO File

Click the “Go to PO Auto Fill Tool” button.
Select the target plugin from the “Select a Plugin” dropdown.
Choose either Google API or DeepL API.
Enter the corresponding API key.
Click the “Preview Translation” button.
Click the “Save” button to save the results to the PO file.
Click the “Back to Quick Translate POT/PO/MO” button to edit the saved PO file.

➡ To use this tool for automatic translation, you need to register with Google Translation or DeepL and obtain an API key. Both services can be used within their free usage limits.
Table Operations

msgid (Source String): Original string (not editable).
msgstr (Translation): Editable translation string.

Download A POT File

Click the “Download POT” button to download the current POT file.

Download A PO File

Click the “Download PO” button to download the current PO file.

Download A MO File

Click the “Download MO” button to download the current MO file.

Deleting an MO File

Click the “Delete MO” button to remove the current MO file.

延伸相關外掛

文章
Filter
Mastodon