From 290c868df0c1fae05b0648b8c55beacbce773dc2 Mon Sep 17 00:00:00 2001
From: Joel da Rosa
Date: Mon, 27 Aug 2018 09:17:21 -0300
Subject: [PATCH 1/2] Locale for Edit and Remove due date issue
---
options/locale/locale_en-US.ini | 4 ++--
templates/repo/issue/view_content/sidebar.tmpl | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 4b2b20204f6a4..cb31b95e741b7 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -779,8 +779,8 @@ issues.error_modifying_due_date = "Failed to modify the due date."
issues.error_removing_due_date = "Failed to remove the due date."
issues.due_date_form = "yyyy-mm-dd"
issues.due_date_form_add = "Add due date"
-issues.due_date_form_update = "Update due date"
-issues.due_date_form_remove = "Remove due date"
+issues.due_date_form_edit = "Edit"
+issues.due_date_form_remove = "Remove"
issues.due_date_not_writer = "You need repository write access to update an issue's due date."
issues.due_date_not_set = "No due date set."
issues.due_date_added = "added the due date %s %s"
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index 606ac303e6ae1..99ac57bcb3619 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -225,7 +225,7 @@
{{end}}
{{if and .IsSigned .IsRepositoryWriter}}
- Edit -
+ {{$.i18n.Tr "repo.issues.due_date_form_edit"}} -
Remove
{{end}}
From eb15b271b911aaea35b10e21c2a8cb759e6cd258 Mon Sep 17 00:00:00 2001
From: Joel da Rosa
Date: Mon, 27 Aug 2018 09:18:43 -0300
Subject: [PATCH 2/2] Locale for Edit and Remove due date issue
---
templates/repo/issue/view_content/sidebar.tmpl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index 99ac57bcb3619..7ecae57447560 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -226,7 +226,7 @@
{{if and .IsSigned .IsRepositoryWriter}}
{{$.i18n.Tr "repo.issues.due_date_form_edit"}} -
- Remove
+ {{$.i18n.Tr "repo.issues.due_date_form_remove"}}
{{end}}
{{else}}