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

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

內容簡介

```html
<!DOCTYPE html>
<html>
<head>
<title>Quick Translate POT/PO/MO Plugin Manual</title>
</head>
<body>

<h3>摘要:</h3>
<p>「Quick Translate POT/PO/MO」是一個可檢查和修改WordPress外掛程式翻譯檔案的工具。使用這個工具可以即時看到變更的效果,並直接在瀏覽器中完成以下任務:</p>
<ul>
<li>產生POT檔案(翻譯模板)</li>
<li>產生和更新PO檔案(翻譯檔案)</li>
<li>編輯PO檔案</li>
<li>產生MO檔案(二進制檔案)</li>
<li>下載POT、PO和MO檔案</li>
<li>刪除MO檔案</li>
</ul>

<h3>問題與答案:</h3>
<ol>
<li>
<strong>如何產生POT檔案?</strong>
<ul>
<li>前往「1. 產生POT檔案」區段。</li>
<li>從「目標外掛程式」下拉選單中選擇所需的外掛程式。</li>
<li>點擊「產生POT」按鈕。</li>
<li>如果POT檔案已經存在,將出現確認彈出窗口。</li>
<li>這將在外掛程式的語言目錄中創建一個[text-domain].pot檔案。</li>
</ul>
</li>
<br>
<li>
<strong>如何產生和更新PO檔案?</strong>
<ul>
<li>前往「2. 從POT檔案產生/更新PO檔案」區段。</li>
<li>從「目標外掛程式」下拉選單中選擇目標外掛程式。</li>
<li>點擊「產生/更新PO」按鈕。</li>
<li>將根據您的WordPress語言設定生成一個PO檔案(例如ja.po)。</li>
<li>如果PO檔案已經存在,原始POT檔案中的現有翻譯(msgstr)將在更新的PO檔案中被保留。</li>
</ul>
</li>
<br>
<li>
<strong>如何編輯PO檔案和產生MO檔案?</strong>
<ul>
<li>前往「3. 編輯PO檔案及產生MO檔案」區段。</li>
<li>從「選取外掛程式」下拉選單中選擇外掛程式。</li>
<li>點擊「載入PO」以在表格中顯示PO檔案內容。</li>
<li>直接在「msgstr」欄中編輯翻譯。</li>
<li>點擊「儲存更改並產生MO」以保存更改並建立MO檔案。</li>
<li>只有當您點擊「儲存更改並產生MO」按鈕時,編輯器中的更改才會同時保存到PO檔案,並且MO檔案會被生成。</li>
</ul>
</li>
</ol>

</body>
</html>
```

外掛標籤

開發者團隊

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

① 下載 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