diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index b0a2148a91..6d2666c89a 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -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 diff --git a/routers/web/repo/editor.go b/routers/web/repo/editor.go index e1a48818e5..4a2242065f 100644 --- a/routers/web/repo/editor.go +++ b/routers/web/repo/editor.go @@ -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 {