Skip to content

Commit

Permalink
Merge pull request #19 from xuesea/master
Browse files Browse the repository at this point in the history
Add translation for github branch source plugin
  • Loading branch information
LinuxSuRen authored Oct 28, 2018
2 parents 0bc40a8 + a720b55 commit 837cd3e
Show file tree
Hide file tree
Showing 31 changed files with 482 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ target

# jenkins stuff
work

.classpath
.settings/
.bin/
.factorypath
.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# The MIT License
#
# Copyright (c) 2018, suren <zxjlwt@126.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

Strategy=\u7b56\u7565
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div>
发现分支策略
<dl>
<dt>不包括作为 PRs 的分支</dt>
<dd>
如果你想要发现 PR 分支,那同时发现 PR 分支和与其拥有相同变更的分支是没有意义的。
</dd>
<dt>只包括作为 PRs 的分支</dt>
<dd>
此选项用于在从插件的旧版本升级时保留遗留行为。
注释: 如果你有这个选项的实际使用场景,可以对本段文本提一个 Pull Request。
</dd>
<dt>所有分支</dt>
<dd>
发现所有的源仓库分支。
</dd>
</dl>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div>
在目标仓库中发现分支。
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# The MIT License
#
# Copyright (c) 2018, suren <zxjlwt@126.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

Name=\u540d\u79f0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
<a href="https://developer.github.com/v3/">GitHub API</a> 地址,例如:<code>https://github.example.com/api/v3/</code>
</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# The MIT License
#
# Copyright (c) 2018, suren <zxjlwt@126.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

blurb=<div class="warning">\u8be5\u9009\u9879\u5728\u67d0\u4e9b\u73af\u5883\u4e0b\u662f\u4e0d\u5b89\u5168\u7684\u3002\u8bf7\u70b9\u51fb\u5e2e\u52a9\u6309\u94ae\u67e5\u770b\u8be6\u60c5\u3002</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# The MIT License
#
# Copyright (c) 2018, suren <zxjlwt@126.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

blurb=<div class="warning">\u8be5\u9009\u9879\u901a\u5e38\u5f0f\u4e0d\u5b89\u5168\u7684\u3002\u8bf7\u70b9\u51fb\u5e2e\u52a9\u6309\u94ae\u67e5\u770b\u8be6\u60c5\u3002</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# The MIT License
#
# Copyright (c) 2018, suren <zxjlwt@126.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

blurb=\u53ef\u80fd\u4e0d\u652f\u6301\u65e7\u7248\u672c\u7684\u4f01\u4e1a\u7ea7 GitHub \u3002\u70b9\u51fb\u5e2e\u52a9\u6309\u94ae\u67e5\u770b\u8be6\u60c5\u3002
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# The MIT License
#
# Copyright (c) 2018, suren <zxjlwt@126.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

Strategy=\u7b56\u7565
Trust=\u4fe1\u4efb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div>
发现 Pull Request 的策略
<dl>
<dt>合并该 Pull Request 到当前目标分支的版本</dt>
<dd>
一次发现操作,找到要合并到当前目标分支的 Pull Request。
</dd>
<dt>当前 Pull Request 的版本</dt>
<dd>
一次发现操作,找到相对于其自己修改的 Pull Request。
</dd>
<dt>当前 Pull Request 的版本和已经与目标分支合并了的 Pull Request</dt>
<dd>
两次发现操作,第一次找到要合并到当前目标分支的 Pull Request,紧接着第二次并行的找到相对于其自己修改的 Pull Request。
</dd>
</dl>
</div>

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div>
从目标库的派生库发现 Pull Request。
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# The MIT License
#
# Copyright (c) 2018, suren <zxjlwt@126.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

Description=\u63cf\u8ff0
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# The MIT License
#
# Copyright (c) 2018, suren <zxjlwt@126.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

API\ endpoint=API \u5730\u5740
Credentials=\u51ED\u636E
Owner=\u62E5\u6709\u8005
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div>
The server to connect to. The list of servers is configured in the <strong>Manage Jenkins » Configure
Jenkins › GitHub Enterprise Servers</strong> screen.
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div>
<p>
用于<strong>扫描</strong>分支和 Pull Request,<strong>获取</strong>源代码,<strong>标记</strong>提交状态。
</p>
<p>
注意: 仅支持<strong>“用户名+密码”</strong>类型的凭据。
由于 Jenkins 使用的是 GitHub API, 而它仅支持上述类型的授权方式,所以其他类型的凭据将会被过滤掉。
</p>
<p>
如果凭据为空,则只能访问公有代码仓库,且本地的变更信息不能同步到 GitHub。
</p>
<p>
如果您的组织下包含私有库,您需要指定一个对这些库有访问权限的凭据。
可以通过创建一个“用户名密+码类型”的凭据,密码通配置 Token 获取:<a href="https://github.com/settings/tokens">GitHub personal access tokens</a>
必要的权限范围为 "repo"。
</p>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div>
<p>指定<strong>Github 组织名</strong><strong>GitHub 用户名</strong></p>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# The MIT License
#
# Copyright (c) 2018, suren <zxjlwt@126.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

API\ endpoint=API \u5730\u5740
Behaviours=\u884C\u4E3A
Credentials=\u51ED\u636E
Owner=\u62E5\u6709\u8005
Repository=\u4EE3\u7801\u4ED3\u5E93

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div>
需要连接的服务器地址。已配置的服务列表在<strong>系统管理 » 系统配置 › GitHub Enterprise Servers</strong>区域。
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div>
<p>
用于<strong>扫描</strong>分支和 Pull Request,<strong>获取</strong>源代码,<strong>标记</strong>提交状态。
</p>
<p>
注意: 仅支持<strong>“用户名+密码”</strong>类型的凭据。
由于 Jenkins 使用的是 GitHub API, 而它仅支持上述类型的授权方式,所以其他类型的凭据将会被过滤掉。
</p>
<p>
如果凭据为空,则只能访问公有代码仓库,且本地的变更信息不能同步到 GitHub。
</p>
<p>
如果您的组织下包含私有库,您需要指定一个对这些库有访问权限的凭据。
可以通过创建一个“用户名密+码类型”的凭据,密码通配置 Token 获取:<a href="https://github.com/settings/tokens">GitHub personal access tokens</a>
必要的权限范围为 "repo"。
</p>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div>
<p>指定<strong>Github 组织名</strong><strong>GitHub 用户名</strong></p>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div>
需要扫描的代码仓库。
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div>
控制行为来源于 Github 仓库。所有的行为都按编号分组。
<dl>
<dt>仓库内</dt>
<dd>这些行为决定会发现的结果,<strong>如果没有配置发现行为,则什么都不会被发现</strong></dd>
<dt>普通行为</dt>
<dd>这种行为影响所有的分支和 pull request
</dd>
</dl>
</div>
Loading

0 comments on commit 837cd3e

Please sign in to comment.