Skip to content

Commit

Permalink
[IMPROVEMENT] Unify text on register buttons #390
Browse files Browse the repository at this point in the history
  • Loading branch information
kfdm authored May 31, 2022
2 parents cfeeb53 + 6322726 commit 1f821f1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Binary file modified promgen/locale/ja/LC_MESSAGES/django.mo
Binary file not shown.
8 changes: 4 additions & 4 deletions promgen/locale/ja/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 "Farmを登録"

#: templates/promgen/project_detail_hosts.html:60
msgid "Link Farm"
Expand Down
2 changes: 1 addition & 1 deletion promgen/templates/promgen/farm_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h1>Farm: {{ farm.name }} ({{ farm.source }})</h1>

<div class="panel-footer">
{% if farm.editable %}
<a href="{% url 'hosts-add' farm.id %}" class="btn btn-primary">Add new host</a>
<a href="{% url 'hosts-add' farm.id %}" class="btn btn-primary">{% trans "Register Hosts" %}</a>
{% endif %}
<form method="post" action="{% url 'farm-delete' farm.id %}" onsubmit="return confirm('Delete this farm?')" style="display: inline">
{% csrf_token %}
Expand Down
2 changes: 1 addition & 1 deletion promgen/templates/promgen/host_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1>Farm: {{ farm.name }}</h1>
<table>
{{ form.as_table }}
</table>
<input type="submit" value="Register Hosts" />
<input type="submit" value="{% trans 'Register Hosts' %}" />
</form>

{% endblock %}
4 changes: 2 additions & 2 deletions promgen/templates/promgen/project_detail_hosts.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
{% if project.farm %}
{% if project.farm.editable %}
<a href="{% url 'hosts-add' project.farm.id %}" class="btn btn-primary">
{% trans "Add new host" %}
{% trans "Register Hosts" %}
</a>
<a href="{% url 'farm-update' project.farm.id %}" class="btn btn-default">
{% trans "Edit Farm" %}
Expand Down Expand Up @@ -81,7 +81,7 @@
</button>
</form>
{% else %}
<a href="{% url 'farm-new' project.id %}" class="btn btn-primary">{% trans "New Farm" %}</a>
<a href="{% url 'farm-new' project.id %}" class="btn btn-primary">{% trans "Register Farm" %}</a>
{% for name, source in sources %}
<a href="{% url 'farm-link' project.id name %}" class="btn btn-default">
{% if source.remote %}
Expand Down
2 changes: 1 addition & 1 deletion promgen/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit 1f821f1

Please sign in to comment.