summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2021-12-28 13:28:27 +0000
committerGitHub <noreply@github.com>2021-12-28 21:28:27 +0800
commite4e3df6c66dbeac6ac5bceff8ac4f05dbea30d70 (patch)
treeea7ef42f8d34580b8ec1319f6bc2cd84c6fb973a /options
parentd2fac636d16a596a36a3088ff05ffe812ba6eff2 (diff)
downloadgitea-e4e3df6c66dbeac6ac5bceff8ac4f05dbea30d70.tar.gz
gitea-e4e3df6c66dbeac6ac5bceff8ac4f05dbea30d70.zip
Handle invalid issues (#18111)
* Handle invalid issues - When you hover over a issue reference, and the issue doesn't exist, it will just hang on the loading animation. - This patch fixes that by showing them the pop-up with a "Error occured" message. * Add I18N * refactor * fix comment for lint * fix unit test for i18n * fix unit test for i18n * add comments Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'options')
-rw-r--r--options/locale/locale_en-US.ini8
1 files changed, 5 insertions, 3 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 5248f98069..9164d5ffdc 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -104,10 +104,12 @@ error404 = The page you are trying to reach either <strong>does not exist</stron
never = Never
[error]
-occurred = An error has occurred
-report_message = If you are sure this is a Gitea bug, please search for issue on <a href="https://github.com/go-gitea/gitea/issues">GitHub</a> and open new issue if necessary.
+occurred = An error occurred
+report_message = If you are sure this is a Gitea bug, please search for issues on <a href="https://github.com/go-gitea/gitea/issues" target="_blank">GitHub</a> or open a new issue if necessary.
missing_csrf = Bad Request: no CSRF token present
-invalid_csrf = Bad Request: Invalid CSRF token
+invalid_csrf = Bad Request: invalid CSRF token
+not_found = The target couldn't be found.
+network_error = Network error
[startpage]
app_desc = A painless, self-hosted Git service