GP Auto Extract

外掛說明

這是 GlotPress 的 WordPress 外掛版本的增強外掛,用於新增直接從遠端程式碼存放庫擷取原文內容至 GlotPress 專案的選項。

功能:

  1. Source Type (來源類型) 可為 WordPress、GitHub 及自訂來源。
  2. 私有 GitHub 存放庫可透過 HTTP 基本驗證進行存取。
  3. 支援 GitHub 的 Tag (標籤) 及 Branch (分支)。
  4. 能匯入現有的文字擷取檔案。

要進行設定,請前往 WordPress 後台管理選單中的 [設定]→[GP Auto Extract],然後會看到目前 GlotPress 的專案清單,在此可為個別專案進行設定。

  1. Source Type (來源類型)
  2. Setting (設定)
  3. Branch/Tag (分支/標籤,僅適用於 GitHub 存放庫)
  4. 使用 HTTP 基本驗證 (僅適用於 GitHub 存放庫)
  5. Import from existing file (從現有檔案匯入)

各項來源類型均有其相關的設定:

  1. None (無) – 不為專案進行自動擷取。
  2. WordPress.org – 輸入WordPress.org SVN 存放庫代稱以進行自動擷取 (以 GP Auto Extract 這個外掛來說,代稱為 gp-auto-extract)。
  3. GitHub – 輸入 GitHub 使用者名稱及存放庫名稱以進行擷取 (例如 toolstack/gp-auto-extract)。
  4. Custom (自訂來源) – 輸入指向內含原始碼的 ZIP 壓縮檔完整網址以進行擷取。

各項設定輸入完畢後,按一下畫面右方的 [儲存] 按鈕,之後便能在選定的專案的下方執行 [Extract],為此專案更新原文。

安裝方式

從 WordPress 外掛目錄進行安裝。

常見問題集

這個外掛是否支援遠端存放庫的 Webhook?

尚未支援。1.0 版可能會支援 Webhook,所以只要遠端檔案產生變更,就會執行擷取。

使用者評論

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

參與者及開發者

以下人員參與了開源軟體〈GP Auto Extract〉的開發相關工作。

參與者

將〈GP Auto Extract〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1

  • Release Date: November 6, 2024
  • Fixed: Fatal error for subprojects when auto extract triggered from the front end.

1.0

  • Release Date: November 5, 2024
  • Fixed: Missing assets for js/css.
  • Fixed: Various PHP8 deprecation warnings.
  • Fixed: Duplicate function definition in another plugin has already include the WP file.php code.

0.9

  • Release Date: October 9, 2024
  • Added: Support for WordPress Themes, thanks @pedro-mendonca.
  • Fixed: Warnings/errors due to create_function() being removed in PHP8.
  • Updated: pomo and extract functions from WP and WP I18N libraries respectively.

0.8

  • Release Date: January 16, 2017
  • Info: Welcome new contributor brazabr!
  • Added: Support for HTTP Basic Authentication for GitHub (thanks brazabr).
  • Added: Option to skip POT generation and import an existing file from repository/archive (thanks brazabr).
  • Added: Option to override GitHub branch or tag (thanks brazabr).
  • Updated: UI for editing each project setting (thanks brazabr).

0.7

  • Release Date: January 10, 2017
  • Added: Auto Extract option to the projects menu on the front end.
  • Fixed: Various WP_DEBUG warnings.
  • Fixed: Better handling of corrupt zip files.
  • Fixed: Make sure to remove temporary files.
  • Fixed: Source file references would incorrectly include plugin top level directory, thanks @brazabr.

0.6

  • Release Date: March 18, 2016
  • Documentation updates.

= 0.5
* Release Date: January 28, 2016
* Initial release.