From 7258f831aa2325cacd66b1c14c1c3122bd748fde Mon Sep 17 00:00:00 2001
From: a1012112796 <1012112796@qq.com>
Date: Tue, 25 Aug 2020 21:51:13 +0800
Subject: [PATCH 2/5] translate
---
options/locale/locale_en-US.ini | 2 ++
templates/swagger/ui.tmpl | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 00c5ed60764f8..f9660dbb6df30 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -86,6 +86,8 @@ loading = Loading…
error404 = The page you are trying to reach either does not exist or you are not authorized to view it.
+api_to_home_page = Return Home Page
+
[error]
occurred = An error has occurred
report_message = If you are sure this is a Gitea bug, please search for issue on GitHub and open new issue if necessary.
diff --git a/templates/swagger/ui.tmpl b/templates/swagger/ui.tmpl
index 99f4d72681675..d61e0cc4e0ce1 100644
--- a/templates/swagger/ui.tmpl
+++ b/templates/swagger/ui.tmpl
@@ -19,7 +19,7 @@
-
From f08098106944d00807898cf5a96c3fcebf10fe5f Mon Sep 17 00:00:00 2001
From: a1012112796 <1012112796@qq.com>
Date: Tue, 25 Aug 2020 22:39:48 +0800
Subject: [PATCH 3/5] Apply review suggestion
---
options/locale/locale_en-US.ini | 2 --
templates/swagger/ui.tmpl | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index f9660dbb6df30..00c5ed60764f8 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -86,8 +86,6 @@ loading = Loading…
error404 = The page you are trying to reach either does not exist or you are not authorized to view it.
-api_to_home_page = Return Home Page
-
[error]
occurred = An error has occurred
report_message = If you are sure this is a Gitea bug, please search for issue on GitHub and open new issue if necessary.
diff --git a/templates/swagger/ui.tmpl b/templates/swagger/ui.tmpl
index d61e0cc4e0ce1..3812ef39d714d 100644
--- a/templates/swagger/ui.tmpl
+++ b/templates/swagger/ui.tmpl
@@ -19,7 +19,7 @@
-