mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-20 21:18:30 +02:00
Unify locale keys
This commit is contained in:
parent
349d5b1597
commit
07845a262d
@ -1330,6 +1330,9 @@ editor.upload_file = Upload File
|
|||||||
editor.edit_file = Edit File
|
editor.edit_file = Edit File
|
||||||
editor.preview_changes = Preview Changes
|
editor.preview_changes = Preview Changes
|
||||||
editor.cannot_edit_lfs_files = LFS files cannot be edited in the web interface.
|
editor.cannot_edit_lfs_files = LFS files cannot be edited in the web interface.
|
||||||
|
editor.cannot_edit_too_large_file = The file is too large to be edited.
|
||||||
|
editor.cannot_edit_binary_files = Binary files cannot be edited in the web interface.
|
||||||
|
editor.file_not_editable_hint = But you can still rename or move it.
|
||||||
editor.edit_this_file = Edit File
|
editor.edit_this_file = Edit File
|
||||||
editor.this_file_locked = File is locked
|
editor.this_file_locked = File is locked
|
||||||
editor.must_be_on_a_branch = You must be on a branch to make or propose changes to this file.
|
editor.must_be_on_a_branch = You must be on a branch to make or propose changes to this file.
|
||||||
@ -1393,9 +1396,6 @@ editor.user_no_push_to_branch = User cannot push to branch
|
|||||||
editor.require_signed_commit = Branch requires a signed commit
|
editor.require_signed_commit = Branch requires a signed commit
|
||||||
editor.cherry_pick = Cherry-pick %s onto:
|
editor.cherry_pick = Cherry-pick %s onto:
|
||||||
editor.revert = Revert %s onto:
|
editor.revert = Revert %s onto:
|
||||||
editor.file_too_large_not_editable = The file is too large to be edited.
|
|
||||||
editor.binary_file_not_editable = Binary file content is not editable.
|
|
||||||
editor.file_not_editable_hint = But you can still rename or move it.
|
|
||||||
|
|
||||||
commits.desc = Browse source code change history.
|
commits.desc = Browse source code change history.
|
||||||
commits.commits = Commits
|
commits.commits = Commits
|
||||||
|
@ -182,11 +182,11 @@ func editFile(ctx *context.Context, isNewFile bool) {
|
|||||||
if fInfo.isLFSFile {
|
if fInfo.isLFSFile {
|
||||||
ctx.Data["NotEditableReason"] = ctx.Tr("repo.editor.cannot_edit_lfs_files")
|
ctx.Data["NotEditableReason"] = ctx.Tr("repo.editor.cannot_edit_lfs_files")
|
||||||
} else if !fInfo.isTextFile {
|
} else if !fInfo.isTextFile {
|
||||||
ctx.Data["NotEditableReason"] = ctx.Tr("repo.editor.binary_file_not_editable")
|
ctx.Data["NotEditableReason"] = ctx.Tr("repo.editor.cannot_edit_binary_files")
|
||||||
}
|
}
|
||||||
|
|
||||||
if blob.Size() >= setting.UI.MaxDisplayFileSize {
|
if blob.Size() >= setting.UI.MaxDisplayFileSize {
|
||||||
ctx.Data["NotEditableReason"] = ctx.Tr("repo.editor.file_too_large_not_editable")
|
ctx.Data["NotEditableReason"] = ctx.Tr("repo.editor.cannot_edit_too_large_file")
|
||||||
} else {
|
} else {
|
||||||
d, _ := io.ReadAll(dataRc)
|
d, _ := io.ReadAll(dataRc)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user