From fb5059ae987f8cb3c1b11910470b61e2d5ae82d3 Mon Sep 17 00:00:00 2001 From: Vicente Olivert Riera Date: Fri, 27 May 2022 13:59:57 +0900 Subject: [PATCH 1/6] Fix text in button for registering a project The option in the drop down menu correctly says "Register Project". However, in the form for registering a new project, the button that executes the action was saying "Project Register". --- promgen/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/promgen/views.py b/promgen/views.py index f7d6f510e..1cc6d5900 100644 --- a/promgen/views.py +++ b/promgen/views.py @@ -692,7 +692,7 @@ class URLList(LoginRequiredMixin, ListView): class ProjectRegister(LoginRequiredMixin, CreateView): - button_label = _("Project Register") + button_label = _("Register Project") model = models.Project fields = ["name", "description", "owner", "shard"] From e4ae8123d1dae5712fcdda78433b54dc1ca1642b Mon Sep 17 00:00:00 2001 From: Vicente Olivert Riera Date: Fri, 27 May 2022 14:12:27 +0900 Subject: [PATCH 2/6] Make the new farm button consistent with the others The text in the button for registering a farm said "New Farm". However, that was not consistent with the "Register " pattern used in the other buttons, so we have changed it. --- promgen/locale/ja/LC_MESSAGES/django.po | 4 ++-- promgen/templates/promgen/project_detail_hosts.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/promgen/locale/ja/LC_MESSAGES/django.po b/promgen/locale/ja/LC_MESSAGES/django.po index 4c255dcb1..cc74335ab 100644 --- a/promgen/locale/ja/LC_MESSAGES/django.po +++ b/promgen/locale/ja/LC_MESSAGES/django.po @@ -105,8 +105,8 @@ msgid "Sync Farm" msgstr "Farmを同期" #: templates/promgen/project_detail_hosts.html:58 -msgid "New Farm" -msgstr "New Farm" +msgid "Register Farm" +msgstr "Register Farm" #: templates/promgen/project_detail_hosts.html:60 msgid "Link Farm" diff --git a/promgen/templates/promgen/project_detail_hosts.html b/promgen/templates/promgen/project_detail_hosts.html index e1d3227c3..a694e276f 100644 --- a/promgen/templates/promgen/project_detail_hosts.html +++ b/promgen/templates/promgen/project_detail_hosts.html @@ -81,7 +81,7 @@ {% else %} - {% trans "New Farm" %} + {% trans "Register Farm" %} {% for name, source in sources %} {% if source.remote %} From 9ddb400005ffec651d4dd0eba8456e0a985ce9da Mon Sep 17 00:00:00 2001 From: Vicente Olivert Riera Date: Fri, 27 May 2022 14:23:29 +0900 Subject: [PATCH 3/6] Make the new host button consistent with the others The text in the button for registering new hosts said "Add new host". That had two problems: - Multiple hosts can be added at the same time, so "host" (in singular) was not correct. - The text was not consistent with the "Register " pattern used in the other buttons. --- promgen/locale/ja/LC_MESSAGES/django.po | 4 ++-- promgen/templates/promgen/farm_detail.html | 2 +- promgen/templates/promgen/project_detail_hosts.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/promgen/locale/ja/LC_MESSAGES/django.po b/promgen/locale/ja/LC_MESSAGES/django.po index cc74335ab..6d550dbb8 100644 --- a/promgen/locale/ja/LC_MESSAGES/django.po +++ b/promgen/locale/ja/LC_MESSAGES/django.po @@ -79,8 +79,8 @@ msgid "Delete this host?" msgstr "Hostを削除しますか?" #: templates/promgen/project_detail_hosts.html:36 -msgid "Add new host" -msgstr "Hostを追加" +msgid "Register Hosts" +msgstr "Hostsを登録" #: templates/promgen/project_detail_hosts.html:37 msgid "Edit Farm" diff --git a/promgen/templates/promgen/farm_detail.html b/promgen/templates/promgen/farm_detail.html index 7673289a1..7fb3c9092 100644 --- a/promgen/templates/promgen/farm_detail.html +++ b/promgen/templates/promgen/farm_detail.html @@ -41,7 +41,7 @@

Farm: {{ farm.name }} ({{ farm.source }})