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

WordPress 外掛 CSV Format for GlotPress 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「CSV Format for GlotPress」是 2022-11-20 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2025-04-18,距離現在已有 16 天。
  • 外掛最低要求 WordPress 5.1 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

pedromendonca |

外掛標籤

csv | i18n | l10n | glotpress | WordPress |

內容簡介

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

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

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

CSV 格式

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

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

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

不同翻譯的標題列都會有 Translation () 命名規則,是否採用視每個匯出地區其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 () 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.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「CSV Format for GlotPress」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | trunk |

延伸相關外掛(你可能也想知道)

  • WP Multibyte Patch 》WordPress日本語版的多位元組功能增強。, 點此閱讀日語說明。
  • Loco Translate 》Loco Translate 提供在瀏覽器中編輯 WordPress 翻譯文件和與自動翻譯服務集成的功能。, 它還為開發人員提供 Gettext/本地化工具,例如提取字符串和生成模板。...。
  • Performant Translations 》- 本專案使用了一種新的方法來處理 WordPress 的翻譯檔案,大幅提升本地化速度。, - 深入的 i18n 效能分析顯示,經過本地化處理的 WordPress 網站載入速度顯...。
  • WPBakery Visual Composer & qTranslate-X 》這個外掛可以讓 qTranslate-X 多語言工具運作於 WPBakery Visual Composer 外掛程式中。, 需要 qTranslate-X 版本 3.3 或者 alpha 預發行版 以上版本。, 這個...。
  • BuddyPress Multilingual 》這個外掛可使用WPML建置多國語言的 BuddyPress 和 BuddyBoss 網站,可適用於單網站或多網站安裝。主網站和子部落格皆可運行多國語言。, 客戶部落格可選擇語言...。
  • Admin Language Per User 》這個插件讓你的後台管理面板可以以英文或任何已安裝的語言顯示,即使你的網站翻譯為其他語言。語言偏好設置可以基於使用者個人設定設定。, 在多站點上已進行...。
  • WPGlobus for WPBakery Visual Composer 》WPGlobus for WPBakery Visual Composer 是 WPGlobus 外掛的擴充功能。, , 注意:在安裝 WPGlobus for WPBakery Visual Composer 擴充功能之前,您必須先安裝...。
  • WordPress Language 》開發結束:從版本1.2.1開始,我們不再繼續開發此外掛程式。這並不意味著它已經無法使用。新的WordPress開發覆蓋了此外掛中的大部分功能。然而,為了建立和運...。
  • Preferred Languages 》多虧了語言包,現在更容易更改您的網站主語言。然而,在某些情況下,單一語言環境是不夠的。當 WordPress 找不到活動語言環境的翻譯時,它會回退到原始的英語...。
  • Disable Login Language Switcher 》此外掛可幫助您清理 WordPress 登入介面,並移除在 WordPress 5.9 版本中加入的語言切換器,使介面更加簡潔。, 如果您只安裝了一種語言,而不打算更改回英文...。
  • Remove "Comments are closed" 》當文章的評論被關閉時,該外掛可以移除"評論已關閉"的字樣。該外掛支援任何語言/文本域,並可以移除來自佈景主題和外掛的文字。, 前置需求:由於該外掛正在過...。
  • qTranslate X Cleanup and WPML Import 》這款外掛可以清理您網站上的 qTranslate X meta-HTML 標籤,只留下一種‘乾淨’的語言,或將所有語言轉換為 WPML 的格式。, 非常重要:這款外掛將修改您數據庫...。
  • Admin in English 》有時候我們希望讓博客的前端對使用者進行翻譯,但是保持後台管理面板的英文狀態。Admin in English 外掛正是為此而設計。。
  • WPGlobus Featured Images 》WPGlobus Featured Images 是 WPGlobus 外掛的擴充功能,可以讓您為每種語言設定單獨的特色圖像。, , 注意:在安裝 WPGlobus Featured Images 擴充功能之前,...。
  • qTranslate META 》在文章/頁面編輯頁面中添加了一個額外的面板,允許您為啟用的每種語言輸入該頁面的META關鍵詞和描述。還添加了一個可選的瀏覽器標題覆蓋(不影響文章標題)。...。

文章
Filter
Apply Filters
Mastodon