[WordPress] 外掛分享: CSV Format for GlotPress

首頁外掛目錄 › CSV Format for GlotPress
WordPress 外掛 CSV Format for GlotPress 的封面圖片
全新外掛
安裝啟用
尚無評分
334 天前
最後更新
問題解決
WordPress 5.1+ PHP 7.4+ v1.0.3 上架:2022-11-20

內容簡介

此外掛在 GlotPress 上新增了 CSV 格式,方便匯入/匯出翻譯資料和原文。

您可以把翻譯集合匯出成 CSV 檔案,藉此匯入該專案的翻譯或原文。

此外掛已經準備好可本地化之語言設定。

CSV 格式

CSV 輸出以 , 分割數值,並以 " " 括起來列出所有項目。

列數的總量視匯出地區的 Plural Forms 而定。

欲查看示範檔案,請參考 example.csv。

不同翻譯的標題列都會有 Translation (<plural-form>) 命名規則,是否採用視每個匯出地區其Plural Forms 而定。

以下範例為匯出葡萄牙文,含 2 種 Plural Forms 轉成的 CSV 匯出檔案。

匯出的 plain text CSV
"Context","Singular","Plural","Comments","References","Translation (Singular)","Translation (Plural)"
"","Singular in English.","","Comment 1.\nComment 2.","","Singular em Português.",""

主要欄位

五個主要欄位為 Context、Singular、Plural、Comments 和 References。

Plural Forms 不同的欄位設定

視每個地區設定其擁有 Plural Forms 的數量,Plural Forms 欄位的列數會有所不同。

請參考下列表格,以獲得從 1 到 6 種 Plural Forms 的不同 GlotPress地區 的範例。

包含之過濾器

gp_format_csv_header 讓您新增、移除或使用 CSV 標題列表上的項目。

gp_format_csv_row 讓您新增、移除或調整 CSV 列上的項目。

使用方式
匯出翻譯成 CSV

滾動至翻譯表格的底部。
選擇 CSV (.csv)。
點選 匯出 連結,下載 CSV 檔案。

從 CSV 匯入翻譯

滾動至翻譯表格的底部。
點選 匯入翻譯 連結。
選擇欲匯入的 CSV 檔案,格式會自動偵測。
點選 匯入 按鈕。

從 CSV 匯入原文

進入專案頁面。
在專案操作中,點選 匯入原文 連結。
選擇欲匯入的 CSV 檔案,格式會自動偵測。
點選 匯入 按鈕。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.3) 或搜尋安裝

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

原文外掛簡介

Adds the CSV format to GlotPress to export/import translations and originals.
This allows you to export a translation set to a CSV file, and use this to import the translations or originals into the project.
This plugin is properly prepared for localization.
The CSV Format
The CSV output has values separated by , and enclosured by " ".
The total number of columns depends on the number of Plural Forms of the exported Locale.
For an sample file, please check out example.csv.
The header columns for the different translations have the Translation () naming convention, being the Plural Forms depending on each exported Locale.
See the example below for a Portuguese CSV export, which has 2 plural forms.
The exported CSV in plain text
"Context","Singular","Plural","Comments","References","Translation (Singular)","Translation (Plural)"
"","Singular in English.","","Comment 1.\nComment 2.","","Singular em Português.",""

The main columns
The 5 main columns are Context, Singular, Plural, Comments and References.
The Plural Forms variable columns
The number of Plural Forms columns may vary depending on each Locale setting.
Check the below table for examples of GlotPress Locales from 1 to 6 Plural Forms.
Included filters
The gp_format_csv_header allows you to add, remove or customize items from the CSV header.
The gp_format_csv_row allows you to add, remove or customize items from the CSV row.
Usage
Export translations to CSV

Go to the bottom of the translation table.
Select CSV (.csv).
Click on the Export link to download the CSV file.

Import translations from CSV

Go to the bottom of the translation table.
Click on the Import Translations link.
Select the CSV file to upload, the Format is Auto Detected.
Click on the Import button.

Import originals from CSV

Go to the project page.
On the project actions click on the Import Originals link.
Select the CSV file to upload, the Format is Auto Detected.
Click on the Import button.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon