Title: CSV Format for GlotPress
Author: Pedro Mendonça
Published: <strong>2022 年 11 月 21 日</strong>
Last modified: 2025 年 4 月 18 日

---

搜尋外掛

![](https://ps.w.org/gp-format-csv/assets/banner-772x250.png?rev=2822013)

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

![](https://ps.w.org/gp-format-csv/assets/icon-256x256.png?rev=2821655)

# CSV Format for GlotPress

 由 [Pedro Mendonça](https://profiles.wordpress.org/pedromendonca/) 開發

[下載](https://downloads.wordpress.org/plugin/gp-format-csv.1.0.3.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/gp-format-csv/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/gp-format-csv/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/gp-format-csv/#developers)

 [技術支援](https://wordpress.org/support/plugin/gp-format-csv/)

## 外掛說明

為 GlotPress 新增 CSV 格式支援以匯出/匯入譯文及原文。

這個外掛能讓使用者將譯文集匯出至 CSV 檔案，並可以使用這個外掛將譯文或原文匯入至專案。

這個外掛已完成本地化準備。

### CSV 格式

CSV 會輸出由 `,` (逗號) 分隔、`" "` 括起來的各個值。

資料列的數量取決於地區語言的複數型數量。

如需範例檔案，請參考 [example.csv](https://github.com/pedro-mendonca/GP-Format-CSV/blob/main/example.csv)。

不同語言的譯文的標頭資料行使用 `Translation (<plural-form>)` 命名規範，複數型取決於
每個匯出的地區語言。

請參考下方**葡萄牙文**的 CSV 匯出範例，其中有 `2` 種複數型。

#### 匯出的 CSV (以純文字顯示)

    ```
    "Context","Singular","Plural","Comments","References","Translation (Singular)","Translation (Plural)"
    "","Singular in English.","","Comment 1.\nComment 2.","","Singular em Português.",""
    ```

#### 主要資料行

5 個主要資料行分別是 `Context`、`Singular`、`Plural`、`Comments` 及 `References`。

#### 複數型變數資料行

複數型資料行數量會依據每個地區語言的設定而有所不同。

請參考 [GlotPress 地區語言](https://github.com/GlotPress/GlotPress/blob/develop/locales/locales.php)
的範例表格中的 1 至 6 複數型。

### 外掛內建的篩選器

`gp_format_csv_header` 能讓使用者新增、移除或自訂 CSV 標頭中的項目。

`gp_format_csv_row` 能讓使用者新增、移除或自訂 CSV 資料列中的項目。

### 使用方式

#### 將譯文匯出為 CSV 格式檔案

 1. 前往譯文表格的底部。
 2. 選取 `CSV (.csv)`。
 3. 點擊 `[匯出]` 連結以下載 CSV 檔案。

#### 從 CSV 格式檔案匯入譯文

 1. 前往譯文表格的底部。
 2. 點擊 `[匯入譯文]` 連結。
 3. 選取要上傳的 CSV 檔案，`[檔案格式]` 請選取 **[自動偵測]**。
 4. 點擊 `[匯入]` 按鈕。

#### 從 CSV 格式檔案匯入原文

 1. 前往專案頁面。
 2. 在 [專案可用操作] 中點擊 `[匯入原文]` 連結。
 3. 選取要上傳的 CSV 檔案，`[檔案格式]` 請選取 **[自動偵測]**。
 4. 點擊 `[匯入]` 按鈕。

## 常見問題集

### 如何將這個外掛本地化為使用者的母語？

如果有使用者要將這個外掛本地化為母語介面，請前往這個外掛的[本地化專案頁面](https://translate.wordpress.org/projects/wp-plugins/gp-format-csv)。

### 如何參與這個外掛開發專案？

非常歡迎前往這個外掛的 [GitHub 存放庫](https://github.com/pedro-mendonca/GP-Format-CSV)
回報問題或提出功能建議。

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈CSV Format for GlotPress〉的開發相關工作。

參與者

 *   [ Pedro Mendonﾃｧa ](https://profiles.wordpress.org/pedromendonca/)

〈CSV Format for GlotPress〉外掛目前已有 6 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/gp-format-csv/contributors)
為這個外掛做出的貢獻。

[將〈CSV Format for GlotPress〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/gp-format-csv)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/gp-format-csv/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/gp-format-csv/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/gp-format-csv/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/gp-format-csv/)。

## 變更記錄

#### Unreleased

 * Tested with WordPress 6.8.

#### 1.0.3

 * Require WP 5.1.
 * Tested with WordPress 6.6.
 * Tested with GlotPress 4.0.1.
 * Tested with PHP 8.3.
 * Removed Git Updater forbiden plugin header.
 * Fix docblock type param.
 * Update dependencies.

#### 1.0.2

 * Tested with WordPress 6.5.
 * Tested with GlotPress 4.0.
 * Tested with PHP 8.3.
 * Add WP Plugin Check CI test.
 * Update dependencies.

#### 1.0.1

 * Fix log error message typo. Props @fxbenard.

#### 1.0.0

 * Initial release.
 * All WPCS and PHPStan level 9 verified.

## 中繼資料

 *  版本 **1.0.3**
 *  最後更新 **1 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.6.5**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/gp-format-csv/)、[Dutch (Belgium)](https://nl-be.wordpress.org/plugins/gp-format-csv/)、
   [English (US)](https://wordpress.org/plugins/gp-format-csv/)、[French (France)](https://fr.wordpress.org/plugins/gp-format-csv/)、
   [Italian](https://it.wordpress.org/plugins/gp-format-csv/)、[Polish](https://pl.wordpress.org/plugins/gp-format-csv/)、
   及 [Portuguese (Portugal)](https://pt.wordpress.org/plugins/gp-format-csv/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/gp-format-csv)
 * 標籤:
 * [csv](https://tw.wordpress.org/plugins/tags/csv/)[glotpress](https://tw.wordpress.org/plugins/tags/glotpress/)
   [i18n](https://tw.wordpress.org/plugins/tags/i18n/)[l10n](https://tw.wordpress.org/plugins/tags/l10n/)
   [WordPress](https://tw.wordpress.org/plugins/tags/wordpress/)
 *  [進階檢視](https://tw.wordpress.org/plugins/gp-format-csv/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/gp-format-csv/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/gp-format-csv/reviews/)

## 參與者

 *   [ Pedro Mendonﾃｧa ](https://profiles.wordpress.org/pedromendonca/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/gp-format-csv/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://github.com/sponsors/pedro-mendonca)