Update zh tw languages and fix some broken links

This commit is contained in:
Lunny Xiao
2026-07-01 14:47:51 -07:00
parent 9558006c39
commit a084bdb556
842 changed files with 31137 additions and 31065 deletions

View File

@@ -8,7 +8,7 @@ aliases:
# 遷移介面
完整的遷移在 Gitea 1.9.0 中引入。它定義了兩個介面來支從其他 Git 主機平台遷移倉庫數據到 Gitea或者在未來將 Gitea 數據遷移到其他 Git 主機平台。
完整的遷移在 Gitea 1.9.0 中引入。它定義了兩個介面來支從其他 Git 主機平台遷移儲存庫資料到 Gitea或者在未來將 Gitea 資料遷移到其他 Git 主機平台。
目前,已實現從 GitHub、GitLab 和其他 Gitea 實例的遷移。
@@ -18,14 +18,14 @@ aliases:
要從新的 Git 主機平台遷移,有兩個步驟需要更新。
- 你應該實現一個 `Downloader`,它將用於獲取倉庫信息
- 你應該實現一個 `DownloaderFactory`,它將用於檢測 URL 是否匹配並建上述 `Downloader`
- 你應該實現一個 `Downloader`,它將用於獲取儲存庫資訊
- 你應該實現一個 `DownloaderFactory`,它將用於檢測 URL 是否匹配並建上述 `Downloader`
- 你需要在 `init()` 中通過 `RegisterDownloaderFactory` 註冊 `DownloaderFactory`
你可以在 [downloader.go](https://github.com/go-gitea/gitea/blob/main/modules/migration/downloader.go) 中找到這些介面。
## 上傳器介面
目前,只實現了一個 `GiteaLocalUploader`,因此我們僅過此 `Uploader` 將下載的數據保存到本地 Gitea 實例。其他上傳器目前不支
目前,只實現了一個 `GiteaLocalUploader`,因此我們僅過此 `Uploader` 將下載的資料保存到本地 Gitea 實例。其他上傳器目前不支
你可以在 [uploader.go](https://github.com/go-gitea/gitea/blob/main/modules/migration/uploader.go) 中找到這些介面。