diff options
author | buckybytes <158571971+buckybytes@users.noreply.github.com> | 2024-03-17 21:23:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 02:23:08 +0000 |
commit | 16e360099d0a515d429538ec88cff1f3ede23fb4 (patch) | |
tree | 3be6d72f02aca51edf5c606860d417f64d25b4c1 /options/locale/locale_en-US.ini | |
parent | a4a766f4a205d507d157f2f17a0e761e00939cb8 (diff) | |
download | gitea-16e360099d0a515d429538ec88cff1f3ede23fb4.tar.gz gitea-16e360099d0a515d429538ec88cff1f3ede23fb4.zip |
Editor error message misleading due to re-used key. (#29859)
The error message:
`editor.file_changed_while_editing = The file contents have changed
since you started editing. <a target="_blank" rel="noopener noreferrer"
href="%s">Click here</a> to see them or <strong>Commit Changes
again</strong> to overwrite them.`
Is re-used in inappropriate contexts. The link in the key goes to a 404
when the key is used in a situation where the file contents have not
changed.
Added two new keys to differentiate commit id mismatch and push out of
date conditions.
Diffstat (limited to 'options/locale/locale_en-US.ini')
-rw-r--r-- | options/locale/locale_en-US.ini | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index dc16d78fc7..6622a25efd 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1312,6 +1312,8 @@ editor.file_editing_no_longer_exists = The file being edited, "%s", no longer ex editor.file_deleting_no_longer_exists = The file being deleted, "%s", no longer exists in this repository. editor.file_changed_while_editing = The file contents have changed since you started editing. <a target="_blank" rel="noopener noreferrer" href="%s">Click here</a> to see them or <strong>Commit Changes again</strong> to overwrite them. editor.file_already_exists = A file named "%s" already exists in this repository. +editor.commit_id_not_matching = The Commit ID does not match the ID when you began editing. Commit into a patch branch and then merge. +editor.push_out_of_date = The push appears to be out of date. editor.commit_empty_file_header = Commit an empty file editor.commit_empty_file_text = The file you're about to commit is empty. Proceed? editor.no_changes_to_show = There are no changes to show. |