Skip to content

Commit 5743e33

Browse files
authored
Added localization for webhook feature (#167)
1 parent a1ef8dc commit 5743e33

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Webhook.Name=Webhook 名称
2+
Repo.Name=仓库名称
3+
Repo.Owner=仓库所有者
4+
Webhook.Options=Webhook 选项
5+
Push.Events=推送代码触发
6+
Tag.Push.Events=标识代码推送触发
7+
Issues.Event=任务触发
8+
Note.Events=评论触发
9+
Pull.Request.Events=PR 触发
10+
Connect.Webhook=连接 Webhook
11+
Connect.Progress=测试...

src/main/resources/com/gitee/jenkins/trigger/GiteePushTrigger/config_zh_CN.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,4 @@ triggerOnUpdatePullRequest.None=没有
4848
triggerOnUpdatePullRequest.Both=源分支和目标分支都已更新
4949
triggerOnUpdatePullRequest.Source=源分支已更新
5050
triggerOnUpdatePullRequest.Target=目标分支已更新
51+
Webhooks=Webhooks
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
connection.success=\u6210\u529F
2+
connection.error=\u8BF7\u6C42\u5931\u8D25: {0}
3+
webhook.exist=Webhook 已经存在
4+
localhost.error=这里不能使用localhost/127.0.0.1, 查看确认你的root URL设定
15
Build.Gitee.WebHook=Gitee webhook \u89E6\u53D1\u6784\u5EFA\uFF0C\u9700\u8981\u5728 Gitee webhook \u4E2D\u586B\u5199 URL: {0}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<div>
2+
<p>为所选的 Gitee 仓库添加 webhook。 必须拥有管理员权限才能使用这个功能。</p>
3+
4+
<p>确保你的 <b>Gitee 链接</b> 已正确设置,以及确认 <b>root URL</b>
5+
的设置不是 localhost 或 127.0.0.1。</p>
6+
7+
<p>如果保存该项目时没有保存 <b>Gitee 链接</b> (点击保存按钮),第一次配置可能会报错。</p>
8+
9+
<p>结束配置后,点击 <i>链接 Webhook</i> 按钮。如果 webhook 已创建或已存在,请求就会成功。</p>
10+
</div>

0 commit comments

Comments
 (0)