
內容簡介
此外掛在 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 檔案,格式會自動偵測。
點選 匯入 按鈕。
外掛標籤
開發者團隊
原文外掛簡介
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 (
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.
