mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-21 03:48:30 +02:00
Revert unnecessary locale key rename
This commit is contained in:
parent
e960fe34c5
commit
02fe2dbe37
@ -1331,7 +1331,7 @@ 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_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.cannot_edit_non_text_files = Binary files cannot be edited in the web interface.
|
||||||
editor.file_not_editable_hint = But you can still rename or move it.
|
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
|
||||||
|
@ -178,7 +178,7 @@ 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.cannot_edit_binary_files")
|
ctx.Data["NotEditableReason"] = ctx.Tr("repo.editor.cannot_edit_non_text_files")
|
||||||
}
|
}
|
||||||
|
|
||||||
if blob.Size() >= setting.UI.MaxDisplayFileSize {
|
if blob.Size() >= setting.UI.MaxDisplayFileSize {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user