0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-20 10:28:36 +02:00

Revert unnecessary locale key rename

This commit is contained in:
bytedream 2025-05-05 20:43:20 +02:00
parent e960fe34c5
commit 02fe2dbe37
2 changed files with 2 additions and 2 deletions

View File

@ -1331,7 +1331,7 @@ editor.edit_file = Edit File
editor.preview_changes = Preview Changes
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.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.edit_this_file = Edit File
editor.this_file_locked = File is locked

View File

@ -178,7 +178,7 @@ func editFile(ctx *context.Context, isNewFile bool) {
if fInfo.isLFSFile {
ctx.Data["NotEditableReason"] = ctx.Tr("repo.editor.cannot_edit_lfs_files")
} 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 {