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

@@ -35,9 +35,9 @@
<% else %> <% else %>
<br> <br>
<div data-alert class="callout primary"> <div data-alert class="callout primary">
<%= t("debates.show.login_to_comment", <%= t("users.login_to_comment",
signin: link_to(t("votes.signin"), new_user_session_path), signin: link_to(t("users.signin"), new_user_session_path),
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %> signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
</div> </div>
<% end %> <% end %>

View File

@@ -20,9 +20,9 @@
<br> <br>
<div data-alert class="callout primary"> <div data-alert class="callout primary">
<%= t("debates.show.login_to_comment", <%= t("users.login_to_comment",
signin: link_to(t("votes.signin"), new_user_session_path), signin: link_to(t("users.signin"), new_user_session_path),
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %> signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
</div> </div>
<% end %> <% end %>

View File

@@ -82,8 +82,8 @@
<div class="participation-not-allowed" style="display:none" aria-hidden="false"> <div class="participation-not-allowed" style="display:none" aria-hidden="false">
<%= t("votes.comment_unauthenticated", <%= t("votes.comment_unauthenticated",
signin: link_to(t("votes.signin"), new_user_session_path), signin: link_to(t("users.signin"), new_user_session_path),
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %> signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
</div> </div>
<% end %> <% end %>
</div> </div>

View File

@@ -14,9 +14,9 @@
<br> <br>
<div data-alert class="callout primary"> <div data-alert class="callout primary">
<%= t("debates.show.login_to_comment", <%= t("users.login_to_comment",
signin: link_to(t("votes.signin"), new_user_session_path), signin: link_to(t("users.signin"), new_user_session_path),
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %> signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
</div> </div>
<% end %> <% end %>

View File

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

View File

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

View File

@@ -9,9 +9,9 @@
<br> <br>
<div data-alert class="callout primary"> <div data-alert class="callout primary">
<%= t("proposals.show.login_to_comment", <%= t("users.login_to_comment",
signin: link_to(t("votes.signin"), new_user_session_path), signin: link_to(t("users.signin"), new_user_session_path),
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %> signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
</div> </div>
<% end %> <% end %>

View File

@@ -9,9 +9,9 @@
<br> <br>
<div data-alert class="callout primary"> <div data-alert class="callout primary">
<%= t("polls.show.login_to_comment", <%= t("users.login_to_comment",
signin: link_to(t("votes.signin"), new_user_session_path), signin: link_to(t("users.signin"), new_user_session_path),
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %> signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
</div> </div>
<% end %> <% end %>

View File

@@ -9,9 +9,9 @@
<br> <br>
<div data-alert class="callout primary"> <div data-alert class="callout primary">
<%= t("proposals.show.login_to_comment", <%= t("users.login_to_comment",
signin: link_to(t("votes.signin"), new_user_session_path), signin: link_to(t("users.signin"), new_user_session_path),
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %> signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
</div> </div>
<% end %> <% end %>

View File

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

View File

@@ -55,6 +55,3 @@ en:
recommendation_one: Do not write the topic title or whole sentences in capital letters. On the internet that is considered shouting. And no one likes to be yelled at. recommendation_one: Do not write the topic title or whole sentences in capital letters. On the internet that is considered shouting. And no one likes to be yelled at.
recommendation_two: Any topic or comment that implies an illegal action will be eliminated, also those that intend to sabotage the spaces of the subject, everything else is allowed. recommendation_two: Any topic or comment that implies an illegal action will be eliminated, also those that intend to sabotage the spaces of the subject, everything else is allowed.
recommendation_three: Enjoy this space, the voices that fill it, it's yours too. recommendation_three: Enjoy this space, the voices that fill it, it's yours too.
topics:
show:
login_to_comment: You must %{signin} or %{signup} to leave a comment.

View File

@@ -164,7 +164,6 @@ en:
comments_title: Comments comments_title: Comments
edit_debate_link: Edit edit_debate_link: Edit
flag: This debate has been flagged as inappropriate by several users. flag: This debate has been flagged as inappropriate by several users.
login_to_comment: You must %{signin} or %{signup} to leave a comment.
share: Share share: Share
author: Author author: Author
update: update:
@@ -462,7 +461,6 @@ en:
comments_tab: Comments comments_tab: Comments
dashboard_proposal_link: Dashboard dashboard_proposal_link: Dashboard
flag: This proposal has been flagged as inappropriate by several users. flag: This proposal has been flagged as inappropriate by several users.
login_to_comment: You must %{signin} or %{signup} to leave a comment.
notifications_tab: Notifications notifications_tab: Notifications
milestones_tab: Milestones milestones_tab: Milestones
retired_warning: "The author considers this proposal should not receive more supports." retired_warning: "The author considers this proposal should not receive more supports."
@@ -667,7 +665,6 @@ en:
back: Back to voting back: Back to voting
cant_answer_not_logged_in: "You must %{signin} or %{signup} to participate." cant_answer_not_logged_in: "You must %{signin} or %{signup} to participate."
comments_tab: Comments comments_tab: Comments
login_to_comment: You must %{signin} or %{signup} to leave a comment.
signin: Sign in signin: Sign in
signup: Sign up signup: Sign up
cant_answer_verify_html: "You must %{verify_link} in order to answer." cant_answer_verify_html: "You must %{verify_link} in order to answer."
@@ -861,6 +858,9 @@ en:
manage: manage:
all: "You do not have permission to carry out the action '%{action}' on %{subject}." all: "You do not have permission to carry out the action '%{action}' on %{subject}."
users: users:
login_to_comment: "You must %{signin} or %{signup} to leave a comment."
signin: Sign in
signup: Sign up
direct_messages: direct_messages:
new: new:
body_label: Message body_label: Message
@@ -920,8 +920,6 @@ en:
comment_unauthenticated: You must %{signin} or %{signup} to vote. comment_unauthenticated: You must %{signin} or %{signup} to vote.
disagree: I disagree disagree: I disagree
organizations: Organizations are not permitted to vote organizations: Organizations are not permitted to vote
signin: Sign in
signup: Sign up
supports: Supports supports: Supports
unauthenticated: You must %{signin} or %{signup} to continue. unauthenticated: You must %{signin} or %{signup} to continue.
verified_only: Only verified users can vote on proposals; %{verify_account}. verified_only: Only verified users can vote on proposals; %{verify_account}.

View File

@@ -14,9 +14,6 @@ en:
publish_comment: Publish Comment publish_comment: Publish Comment
form: form:
phase_not_open: This phase is not open phase_not_open: This phase is not open
login_to_comment: You must %{signin} or %{signup} to leave a comment.
signin: Sign in
signup: Sign up
index: index:
title: Comments title: Comments
comments_about: Comments about comments_about: Comments about

View File

@@ -55,6 +55,3 @@ es:
recommendation_one: No escribas el título del tema o frases enteras en mayúsculas. En internet eso se considera gritar. Y a nadie le gusta que le griten. recommendation_one: No escribas el título del tema o frases enteras en mayúsculas. En internet eso se considera gritar. Y a nadie le gusta que le griten.
recommendation_two: Cualquier tema o comentario que implique una acción ilegal será eliminada, también las que tengan la intención de sabotear los espacios del tema, todo lo demás está permitido. recommendation_two: Cualquier tema o comentario que implique una acción ilegal será eliminada, también las que tengan la intención de sabotear los espacios del tema, todo lo demás está permitido.
recommendation_three: Disfruta de este espacio, de las voces que lo llenan, también es tuyo recommendation_three: Disfruta de este espacio, de las voces que lo llenan, también es tuyo
topics:
show:
login_to_comment: Necesitas %{signin} o %{signup} para comentar.

View File

@@ -164,7 +164,6 @@ es:
comments_title: Comentarios comments_title: Comentarios
edit_debate_link: Editar debate edit_debate_link: Editar debate
flag: Este debate ha sido marcado como inapropiado por varios usuarios. flag: Este debate ha sido marcado como inapropiado por varios usuarios.
login_to_comment: Necesitas %{signin} o %{signup} para comentar.
share: Compartir share: Compartir
author: Autor author: Autor
update: update:
@@ -462,7 +461,6 @@ es:
comments_tab: Comentarios comments_tab: Comentarios
dashboard_proposal_link: Panel de control dashboard_proposal_link: Panel de control
flag: Esta propuesta ha sido marcada como inapropiada por varios usuarios. flag: Esta propuesta ha sido marcada como inapropiada por varios usuarios.
login_to_comment: Necesitas %{signin} o %{signup} para comentar.
notifications_tab: Notificaciones notifications_tab: Notificaciones
milestones_tab: Seguimiento milestones_tab: Seguimiento
retired_warning: "El autor de esta propuesta considera que ya no debe seguir recogiendo apoyos." retired_warning: "El autor de esta propuesta considera que ya no debe seguir recogiendo apoyos."
@@ -665,7 +663,6 @@ es:
back: Volver a votaciones back: Volver a votaciones
cant_answer_not_logged_in: "Necesitas %{signin} o %{signup} para participar." cant_answer_not_logged_in: "Necesitas %{signin} o %{signup} para participar."
comments_tab: Comentarios comments_tab: Comentarios
login_to_comment: Necesitas %{signin} o %{signup} para comentar.
signin: iniciar sesión signin: iniciar sesión
signup: registrarte signup: registrarte
cant_answer_verify_html: "Por favor %{verify_link} para poder responder." cant_answer_verify_html: "Por favor %{verify_link} para poder responder."
@@ -858,6 +855,9 @@ es:
manage: manage:
all: "No tienes permiso para realizar la acción '%{action}' sobre %{subject}." all: "No tienes permiso para realizar la acción '%{action}' sobre %{subject}."
users: users:
login_to_comment: "Necesitas %{signin} o %{signup} para comentar."
signin: iniciar sesión
signup: registrarte
direct_messages: direct_messages:
new: new:
body_label: Mensaje body_label: Mensaje
@@ -917,8 +917,6 @@ es:
comment_unauthenticated: Necesitas %{signin} o %{signup} para poder votar. comment_unauthenticated: Necesitas %{signin} o %{signup} para poder votar.
disagree: No estoy de acuerdo disagree: No estoy de acuerdo
organizations: Las organizaciones no pueden votar. organizations: Las organizaciones no pueden votar.
signin: iniciar sesión
signup: registrarte
supports: Apoyos supports: Apoyos
unauthenticated: Necesitas %{signin} o %{signup} para continuar. unauthenticated: Necesitas %{signin} o %{signup} para continuar.
verified_only: Las propuestas sólo pueden ser votadas por usuarios verificados, %{verify_account}. verified_only: Las propuestas sólo pueden ser votadas por usuarios verificados, %{verify_account}.

View File

@@ -14,9 +14,6 @@ es:
publish_comment: Publicar Comentario publish_comment: Publicar Comentario
form: form:
phase_not_open: Esta fase del proceso no está abierta phase_not_open: Esta fase del proceso no está abierta
login_to_comment: Necesitas %{signin} o %{signup} para comentar.
signin: iniciar sesión
signup: registrarte
index: index:
title: Comentarios title: Comentarios
comments_about: Comentarios sobre comments_about: Comentarios sobre