Skip to content

Commit 2b05f9e

Browse files
committed
Merge remote-tracking branch 'origin/master' into lunny/storage_config-self-register
2 parents 266283c + 7670a9d commit 2b05f9e

File tree

8 files changed

+27
-12
lines changed

8 files changed

+27
-12
lines changed

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
212212
- `SSH_LISTEN_PORT`: **%(SSH\_PORT)s**: Port for the built-in SSH server.
213213
- `OFFLINE_MODE`: **false**: Disables use of CDN for static files and Gravatar for profile pictures.
214214
- `DISABLE_ROUTER_LOG`: **false**: Mute printing of the router log.
215-
- `CERT_FILE`: **https/cert.pem**: Cert file path used for HTTPS. From 1.11 paths are relative to `CUSTOM_PATH`.
215+
- `CERT_FILE`: **https/cert.pem**: Cert file path used for HTTPS. When chaining, the server certificate must come first, then intermediate CA certificates (if any). From 1.11 paths are relative to `CUSTOM_PATH`.
216216
- `KEY_FILE`: **https/key.pem**: Key file path used for HTTPS. From 1.11 paths are relative to `CUSTOM_PATH`.
217217
- `STATIC_ROOT_PATH`: **./**: Upper level of template and static files path.
218218
- `STATIC_CACHE_TIME`: **6h**: Web browser cache time for static resources on `custom/`, `public/` and all uploaded avatars.

docs/content/doc/installation/from-package.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ menu:
2525

2626
## macOS
2727

28-
macOS 平台下当前我们仅支持通过 `brew` 来安装。如果您没有安装 [Homebrew](http://brew.sh/)你冶可以查看 [从二进制安装]({{< relref "from-binary.zh-cn.md" >}})。在你安装了 `brew` 之后, 你可以执行以下命令:
28+
macOS 平台下当前我们仅支持通过 `brew` 来安装。如果您没有安装 [Homebrew](http://brew.sh/)你也可以查看 [从二进制安装]({{< relref "from-binary.zh-cn.md" >}})。在你安装了 `brew` 之后, 你可以执行以下命令:
2929

3030
```
3131
brew tap go-gitea/gitea

docs/content/doc/usage/https-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ HTTP_PORT = 3000
3232
CERT_FILE = cert.pem
3333
KEY_FILE = key.pem
3434
```
35-
35+
Note that if your certificate is signed by a third party certificate authority (i.e. not self-signed), then cert.pem should contain the certificate chain. The server certificate must be the first entry in cert.pem, followed by the intermediaries in order (if any). The root certificate does not have to be included because the connecting client must already have it in order to estalbish the trust relationship.
3636
To learn more about the config values, please checkout the [Config Cheat Sheet](../config-cheat-sheet#server).
3737

3838
### Setting up HTTP redirection

modules/git/repo_commit.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,6 @@ func (repo *Repository) getBranches(commit *Commit, limit int) ([]string, error)
504504

505505
// GetCommitsFromIDs get commits from commit IDs
506506
func (repo *Repository) GetCommitsFromIDs(commitIDs []string) (commits *list.List) {
507-
if len(commitIDs) == 0 {
508-
return nil
509-
}
510-
511507
commits = list.New()
512508

513509
for _, commitID := range commitIDs {

options/locale/locale_ja-JP.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,10 @@ lang_select_error=言語をリストから選択してください。
355355

356356
username_been_taken=ユーザー名が既に使用されています。
357357
repo_name_been_taken=リポジトリ名が既に使用されています。
358+
repository_files_already_exist=このリポジトリのファイルはすでに存在します。システム管理者に問い合わせてください。
359+
repository_files_already_exist.adopt=このリポジトリのファイルはすでに存在しており、それらを登録することしかできません。
360+
repository_files_already_exist.delete=このリポジトリのファイルはすでに存在しています。 それらを削除する必要があります。
361+
repository_files_already_exist.adopt_or_delete=このリポジトリのファイルはすでに存在しています。 それらを登録するか削除してください。
358362
visit_rate_limit=相手側でアクセス数制限されています。
359363
2fa_auth_required=相手側へのアクセスに2要素認証が必要です。
360364
org_name_been_taken=組織名が既に使用されています。
@@ -681,8 +685,15 @@ pick_reaction=リアクションを選択
681685
reactions_more=さらに %d 件
682686
unit_disabled=サイト管理者がこのリポジトリセクションを無効にしています。
683687
language_other=その他
688+
adopt_search=未登録リポジトリを探すユーザー名を入力... (空ですべてを探索)
689+
adopt_preexisting_label=ファイルを登録
690+
adopt_preexisting=既存ファイルの登録
691+
adopt_preexisting_content=%s からリポジトリを作成します
692+
adopt_preexisting_success=%s のファイルを登録し、リポジトリを作成しました
684693
delete_preexisting_label=削除
685694
delete_preexisting=既存のファイルを削除
695+
delete_preexisting_content=%s のファイルを削除します
696+
delete_preexisting_success=%s の未登録ファイルを削除しました
686697

687698
desc.private=プライベート
688699
desc.public=公開
@@ -2070,6 +2081,8 @@ orgs.members=メンバー
20702081
orgs.new_orga=新しい組織
20712082

20722083
repos.repo_manage_panel=リポジトリの管理
2084+
repos.unadopted=未登録リポジトリ
2085+
repos.unadopted.no_more=未登録のリポジトリはありません
20732086
repos.owner=オーナー
20742087
repos.name=名称
20752088
repos.private=プライベート

options/locale/locale_zh-TW.ini

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,10 @@ issues.action_milestone_no_select=無里程碑
952952
issues.action_assignee=成員
953953
issues.action_assignee_no_select=沒有成員
954954
issues.opened_by=由 <a href="%[2]s">%[3]s</a> 於 %[1]s建立
955+
pulls.merged_by_fake=由 %[2]s 建立,%[1]s合併
956+
issues.closed_by=由 <a href="%[2]s">%[3]s</a> 建立,%[1]s關閉
955957
issues.opened_by_fake=由 %[2]s 於 %[1]s建立
958+
issues.closed_by_fake=由 %[2]s 建立,%[1]s關閉
956959
issues.previous=上一頁
957960
issues.next=下一頁
958961
issues.open_title=開放中
@@ -1073,7 +1076,7 @@ pulls.merged_title_desc=於 %[4]s 將 %[1]d 次代碼提交從 <code>%[2]s</code
10731076
pulls.tab_conversation=對話內容
10741077
pulls.tab_commits=程式碼提交
10751078
pulls.tab_files=檔案變動
1076-
pulls.reopen_to_merge=請重新開啟合併請求來完成合併操作
1079+
pulls.reopen_to_merge=請重新開放此合併請求以進行合併作業
10771080
pulls.merged=已合併
10781081
pulls.has_merged=合併請求已合併。
10791082
pulls.can_auto_merge_desc=這個合併請求可以自動合併。
@@ -1306,8 +1309,11 @@ settings.search_team=搜尋團隊...
13061309
settings.add_webhook=建立 Webhook
13071310
settings.hooks_desc=當觸發某些 Gitea 事件時,Webhook 會自動發出 HTTP POST 請求到指定的伺服器。在<a target="_blank" rel="noopener noreferrer" href="%s">Webhook 指南</a>閱讀更多內容。
13081311
settings.webhook_deletion=刪除 Webhook
1312+
settings.webhook_deletion_desc=移除 Webhook 將刪除它的設定及傳送記錄,是否繼續?
13091313
settings.webhook_deletion_success=Webhook 已刪除。
13101314
settings.webhook.test_delivery=測試推送
1315+
settings.webhook.test_delivery_desc=使用假事件測試這個 Webhook
1316+
settings.webhook.test_delivery_success=已將假事件加入到傳送佇列,可能需要等待幾分鐘才會出現於傳送紀錄。
13111317
settings.webhook.request=請求內容
13121318
settings.webhook.response=響應內容
13131319
settings.webhook.headers=標題
@@ -1533,7 +1539,7 @@ org_name_holder=組織名稱
15331539
org_full_name_holder=組織全名
15341540
org_name_helper=組織名稱應該要簡短且方便記憶
15351541
create_org=建立組織
1536-
repo_updated=最後更新於
1542+
repo_updated=更新於
15371543
people=成員
15381544
teams=團隊
15391545
lower_members=名成員
@@ -2028,7 +2034,7 @@ compare_commits=比較 %d 提交
20282034
compare_commits_general=比較提交
20292035
20302036
[tool]
2031-
ago=%s之前
2037+
ago=%s前
20322038
from_now=%s之後
20332039
now=現在
20342040
future=未來

routers/admin/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func EditUserPost(ctx *context.Context, form auth.AdminEditUserForm) {
224224
}
225225
}
226226

227-
if len(form.Password) > 0 {
227+
if len(form.Password) > 0 && (u.IsLocal() || u.IsOAuth2()) {
228228
var err error
229229
if len(form.Password) < setting.MinPasswordLength {
230230
ctx.Data["Err_Password"] = true

templates/admin/config.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
<dd><i class="fa fa{{if .LFS.StartServer}}-check{{end}}-square-o"></i></dd>
106106
{{if .LFS.StartServer}}
107107
<dt>{{.i18n.Tr "admin.config.lfs_content_path"}}</dt>
108-
<dd>{{.LFS.ContentPath}}</dd>
108+
<dd>{{.LFS.Path}}</dd>
109109
<dt>{{.i18n.Tr "admin.config.lfs_http_auth_expiry"}}</dt>
110110
<dd>{{.LFS.HTTPAuthExpiry}}</dd>
111111
{{end}}

0 commit comments

Comments
 (0)