Use the same I18n key for "login to comment" text

We were using several different keys, all of them having the same
translations.
This commit is contained in:
Javi Martín
2019-10-01 21:16:53 +02:00
parent f018706e6b
commit ae64458fce
16 changed files with 35 additions and 51 deletions

View File

@@ -34,9 +34,9 @@
<div>
<div class="participation-not-allowed" style="display: none;" aria-hidden="false">
<%= t("legislation.annotations.form.login_to_comment",
signin: link_to(t("legislation.annotations.form.signin"), new_user_session_path),
signup: link_to(t("legislation.annotations.form.signup"), new_user_registration_path)).html_safe %>
<%= t("users.login_to_comment",
signin: link_to(t("users.signin"), new_user_session_path),
signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<% end %>
<% else %>
<div data-alert class="callout primary">
<%= t("legislation.annotations.form.login_to_comment",
signin: link_to(t("legislation.annotations.form.signin"), new_user_session_path),
signup: link_to(t("legislation.annotations.form.signup"), new_user_registration_path)).html_safe %>
<%= t("users.login_to_comment",
signin: link_to(t("users.signin"), new_user_session_path),
signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
</div>
<% end %>
</div>