Update zh tw languages and fix some broken links (#455)

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: silverwind <2021+silverwind@noreply.gitea.com>
Reviewed-on: https://gitea.com/gitea/docs/pulls/455
Reviewed-by: silverwind <2021+silverwind@noreply.gitea.com>
This commit is contained in:
Lunny Xiao
2026-07-09 23:41:46 +00:00
parent c0f8a04185
commit 965c269495
652 changed files with 30864 additions and 30792 deletions

View File

@@ -6,26 +6,26 @@ aliases:
- /zh-tw/migrations-interfaces
---
# 迁移接口
# 遷移介面
完整移功能在 Gitea 1.9.0 版本中引入。它定义了两个接口,用于支持从其他 Git 管平台迁移存儲库数据到 Gitea或者在将来将 Gitea 数据迁移到其他 Git 管平台。
完整移功能在 Gitea 1.9.0 版本中引入。它定義了兩個介面,用於支援從其他 Git 管平台遷移儲存庫資料到 Gitea或者在將來將 Gitea 資料遷移到其他 Git 管平台。
目前已現了 GitHub、GitLab 和其他 Gitea 例的移。
目前已現了 GitHub、GitLab 和其他 Gitea 例的移。
首先Gitea 在包[modules/migration](https://github.com/go-gitea/gitea/tree/main/modules/migration)中定了一些标准对象。它`Repository``Milestone``Release``ReleaseAsset``Label``Issue``Comment``PullRequest``Reaction``Review``ReviewComment`
首先Gitea 在包[modules/migration](https://github.com/go-gitea/gitea/tree/main/modules/migration)中定了一些標準對象。它`Repository``Milestone``Release``ReleaseAsset``Label``Issue``Comment``PullRequest``Reaction``Review``ReviewComment`
## 下载器接口
## 下載器介面
新的 Git 管平台移,需要進行两个步骤的更新。
新的 Git 管平台移,需要進行兩個步驟的更新。
- 您應該現一`Downloader`,用于获取存儲库信息
- 您應該現一`DownloaderFactory`,用于检测 URL 是否匹配,並建立上述的`Downloader`
- 您需要在`init()`中通過`RegisterDownloaderFactory`注册`DownloaderFactory`
- 您應該現一`Downloader`,用於獲取儲存庫資訊
- 您應該現一`DownloaderFactory`,用於檢測 URL 是否匹配,並建立上述的`Downloader`
- 您需要在`init()`中通過`RegisterDownloaderFactory`註冊`DownloaderFactory`
您可以在[downloader.go](https://github.com/go-gitea/gitea/blob/main/modules/migration/downloader.go)中找到这些接口
您可以在[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)中找到这些接口
您可以在[uploader.go](https://github.com/go-gitea/gitea/blob/main/modules/migration/uploader.go)中找到這些介面