
內容簡介
這是一個針對 GlotPress 的 WordPress 外掛,新增一個從遠端源代碼庫將原始字串直接提取至 GlotPress 專案的選項。
功能:
WordPress、GitHub 和自訂的源頭。
私人的 GitHub 代碼庫並支持 HTTP 基本驗證。
支援 GitHub 的標籤和分支。
匯入現有的提取檔案。
要設定它,請前往 WordPress 中的「設定」-「GP 自動提取」。您將會看到一個 GP 計畫的清單,您可以為每一個計畫編輯設定:
來源類型
設定
分支/標籤 (僅適用於 GitHub 代碼庫)
使用 HTTP 基本驗證 (僅適用於 GitHub 代碼庫)
從現有檔案匯入
每個來源類型都有以下設定:
無 — 不會針對此計畫自動提取。
WordPress.org — 從 WordPress.org SVN 代碼庫中提取的 slug(例如,本外掛的 slug 為「gp-auto-extract」)。
GitHub — 從 GitHub 上的使用者名稱和代碼庫名稱中提取的原始碼(例如,「toolstack/gp-auto-extract」)。
自訂 — 包含原始碼 ZIP 檔案的完整 URL 位址。
設定完成後,您可以按右邊的按鈕儲存,然後執行一個提取,它將從所選的來源更新給定計畫中的原始字串。
0.7
發佈日期:2017 年 1 月 10 日
新增:自動提取選項至前端計畫選單。
已修正:各種 WP_DEBUG 警告。
已修正:更好地處理損壞的 ZIP 檔案。
已修正:確保移除暫存檔案。
已修正:源檔案參考會錯誤地包含外掛程式頂層目錄,感謝 @brazabr。
0.6
發佈日期:2016 年 3 月 18 日
更新說明文件。
0.5
發佈日期:2016 年 1 月 28 日
初始發佈。
外掛標籤
開發者團隊
原文外掛簡介
A plugin for GlotPress that adds an option to extract original strings from a remote source repo directly in to a GlotPress project.
Features:
WordPress, GitHub and custom sources.
Private GitHub repos with HTTP basic authentication.
GitHub tags and branches.
Importing for an existing extract file.
To set it up, go to Settings->GP Auto Extract in WordPress. You’ll see a list of your projects in GP, you can edit the settings for each one:
Source Type
Setting
Branch/Tag (for GitHub repos only)
Use HTTP Basic Authentication (for GitHub repos only)
Import from existing file
Each source type has the following settings associated with it:
None – Don’t auto extract this project.
WordPress.org – the slug for the WordPress.org SVN repo to extract from (for example “gp-auto-extract” for this plugin).
GitHub – The user name and repo name on GitHub to extract from (for example “toolstack/gp-auto-extract”).
Custom – a complete url to a ZIP file containing the source code to extract from.
Once the setting has be entered, you can save them with the button to the right and then run an extract which will update the originals in the given project from the source selected.
