From ae64458fceb39fec355e542f7313db458ddfd843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 1 Oct 2019 21:16:53 +0200 Subject: [PATCH] Use the same I18n key for "login to comment" text We were using several different keys, all of them having the same translations. --- app/views/comments/_comment_tree.html.erb | 6 +++--- app/views/comments/_commentable_tree.html.erb | 6 +++--- app/views/comments/_votes.html.erb | 4 ++-- app/views/debates/_comments.html.erb | 6 +++--- app/views/legislation/annotations/_comments_box.html.erb | 6 +++--- app/views/legislation/annotations/_form.html.erb | 6 +++--- app/views/legislation/proposals/_comments.html.erb | 6 +++--- app/views/polls/_comments.html.erb | 6 +++--- app/views/proposals/_comments.html.erb | 6 +++--- app/views/topics/_comments.html.erb | 6 +++--- config/locales/en/community.yml | 3 --- config/locales/en/general.yml | 8 +++----- config/locales/en/legislation.yml | 3 --- config/locales/es/community.yml | 3 --- config/locales/es/general.yml | 8 +++----- config/locales/es/legislation.yml | 3 --- 16 files changed, 35 insertions(+), 51 deletions(-) diff --git a/app/views/comments/_comment_tree.html.erb b/app/views/comments/_comment_tree.html.erb index 0d9137c44..33824d743 100644 --- a/app/views/comments/_comment_tree.html.erb +++ b/app/views/comments/_comment_tree.html.erb @@ -35,9 +35,9 @@ <% else %>
- <%= t("debates.show.login_to_comment", - signin: link_to(t("votes.signin"), new_user_session_path), - signup: link_to(t("votes.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 %>
<% end %> diff --git a/app/views/comments/_commentable_tree.html.erb b/app/views/comments/_commentable_tree.html.erb index 07ba48f52..ca45f0f80 100644 --- a/app/views/comments/_commentable_tree.html.erb +++ b/app/views/comments/_commentable_tree.html.erb @@ -20,9 +20,9 @@
- <%= t("debates.show.login_to_comment", - signin: link_to(t("votes.signin"), new_user_session_path), - signup: link_to(t("votes.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 %>
<% end %> diff --git a/app/views/comments/_votes.html.erb b/app/views/comments/_votes.html.erb index 2b377ce4e..5b10fcc99 100644 --- a/app/views/comments/_votes.html.erb +++ b/app/views/comments/_votes.html.erb @@ -82,8 +82,8 @@ <% end %> diff --git a/app/views/debates/_comments.html.erb b/app/views/debates/_comments.html.erb index e7e25f3e8..15f0d18d2 100644 --- a/app/views/debates/_comments.html.erb +++ b/app/views/debates/_comments.html.erb @@ -14,9 +14,9 @@
- <%= t("debates.show.login_to_comment", - signin: link_to(t("votes.signin"), new_user_session_path), - signup: link_to(t("votes.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 %>
<% end %> diff --git a/app/views/legislation/annotations/_comments_box.html.erb b/app/views/legislation/annotations/_comments_box.html.erb index 4fe50f225..9dc735f43 100644 --- a/app/views/legislation/annotations/_comments_box.html.erb +++ b/app/views/legislation/annotations/_comments_box.html.erb @@ -34,9 +34,9 @@
diff --git a/app/views/legislation/annotations/_form.html.erb b/app/views/legislation/annotations/_form.html.erb index 7ca1401a2..dd48038ba 100644 --- a/app/views/legislation/annotations/_form.html.erb +++ b/app/views/legislation/annotations/_form.html.erb @@ -24,9 +24,9 @@ <% end %> <% else %>
- <%= 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 %>
<% end %> diff --git a/app/views/legislation/proposals/_comments.html.erb b/app/views/legislation/proposals/_comments.html.erb index ffd5d5acb..6ff14f477 100644 --- a/app/views/legislation/proposals/_comments.html.erb +++ b/app/views/legislation/proposals/_comments.html.erb @@ -9,9 +9,9 @@
- <%= t("proposals.show.login_to_comment", - signin: link_to(t("votes.signin"), new_user_session_path), - signup: link_to(t("votes.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 %>
<% end %> diff --git a/app/views/polls/_comments.html.erb b/app/views/polls/_comments.html.erb index bc2ca8e07..017684b02 100644 --- a/app/views/polls/_comments.html.erb +++ b/app/views/polls/_comments.html.erb @@ -9,9 +9,9 @@
- <%= t("polls.show.login_to_comment", - signin: link_to(t("votes.signin"), new_user_session_path), - signup: link_to(t("votes.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 %>
<% end %> diff --git a/app/views/proposals/_comments.html.erb b/app/views/proposals/_comments.html.erb index ffd5d5acb..6ff14f477 100644 --- a/app/views/proposals/_comments.html.erb +++ b/app/views/proposals/_comments.html.erb @@ -9,9 +9,9 @@
- <%= t("proposals.show.login_to_comment", - signin: link_to(t("votes.signin"), new_user_session_path), - signup: link_to(t("votes.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 %>
<% end %> diff --git a/app/views/topics/_comments.html.erb b/app/views/topics/_comments.html.erb index b2ee11d99..c1e29af2c 100644 --- a/app/views/topics/_comments.html.erb +++ b/app/views/topics/_comments.html.erb @@ -15,9 +15,9 @@ <% else %>
- <%= t("topics.show.login_to_comment", - signin: link_to(t("votes.signin"), new_user_session_path), - signup: link_to(t("votes.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 %>
<% end %> diff --git a/config/locales/en/community.yml b/config/locales/en/community.yml index 3e46a0685..b0b0eaba1 100644 --- a/config/locales/en/community.yml +++ b/config/locales/en/community.yml @@ -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_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. - topics: - show: - login_to_comment: You must %{signin} or %{signup} to leave a comment. diff --git a/config/locales/en/general.yml b/config/locales/en/general.yml index dd337a680..dcb63c9bf 100644 --- a/config/locales/en/general.yml +++ b/config/locales/en/general.yml @@ -164,7 +164,6 @@ en: comments_title: Comments edit_debate_link: Edit 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 author: Author update: @@ -462,7 +461,6 @@ en: comments_tab: Comments dashboard_proposal_link: Dashboard 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 milestones_tab: Milestones retired_warning: "The author considers this proposal should not receive more supports." @@ -667,7 +665,6 @@ en: back: Back to voting cant_answer_not_logged_in: "You must %{signin} or %{signup} to participate." comments_tab: Comments - login_to_comment: You must %{signin} or %{signup} to leave a comment. signin: Sign in signup: Sign up cant_answer_verify_html: "You must %{verify_link} in order to answer." @@ -861,6 +858,9 @@ en: manage: all: "You do not have permission to carry out the action '%{action}' on %{subject}." users: + login_to_comment: "You must %{signin} or %{signup} to leave a comment." + signin: Sign in + signup: Sign up direct_messages: new: body_label: Message @@ -920,8 +920,6 @@ en: comment_unauthenticated: You must %{signin} or %{signup} to vote. disagree: I disagree organizations: Organizations are not permitted to vote - signin: Sign in - signup: Sign up supports: Supports unauthenticated: You must %{signin} or %{signup} to continue. verified_only: Only verified users can vote on proposals; %{verify_account}. diff --git a/config/locales/en/legislation.yml b/config/locales/en/legislation.yml index 7900d86bd..c9d0b8a58 100644 --- a/config/locales/en/legislation.yml +++ b/config/locales/en/legislation.yml @@ -14,9 +14,6 @@ en: publish_comment: Publish Comment form: 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: title: Comments comments_about: Comments about diff --git a/config/locales/es/community.yml b/config/locales/es/community.yml index 2d62c7b2f..8f8ef09c1 100644 --- a/config/locales/es/community.yml +++ b/config/locales/es/community.yml @@ -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_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 - topics: - show: - login_to_comment: Necesitas %{signin} o %{signup} para comentar. diff --git a/config/locales/es/general.yml b/config/locales/es/general.yml index 51fe7d00a..e48b32953 100644 --- a/config/locales/es/general.yml +++ b/config/locales/es/general.yml @@ -164,7 +164,6 @@ es: comments_title: Comentarios edit_debate_link: Editar debate flag: Este debate ha sido marcado como inapropiado por varios usuarios. - login_to_comment: Necesitas %{signin} o %{signup} para comentar. share: Compartir author: Autor update: @@ -462,7 +461,6 @@ es: comments_tab: Comentarios dashboard_proposal_link: Panel de control flag: Esta propuesta ha sido marcada como inapropiada por varios usuarios. - login_to_comment: Necesitas %{signin} o %{signup} para comentar. notifications_tab: Notificaciones milestones_tab: Seguimiento retired_warning: "El autor de esta propuesta considera que ya no debe seguir recogiendo apoyos." @@ -665,7 +663,6 @@ es: back: Volver a votaciones cant_answer_not_logged_in: "Necesitas %{signin} o %{signup} para participar." comments_tab: Comentarios - login_to_comment: Necesitas %{signin} o %{signup} para comentar. signin: iniciar sesión signup: registrarte cant_answer_verify_html: "Por favor %{verify_link} para poder responder." @@ -858,6 +855,9 @@ es: manage: all: "No tienes permiso para realizar la acción '%{action}' sobre %{subject}." users: + login_to_comment: "Necesitas %{signin} o %{signup} para comentar." + signin: iniciar sesión + signup: registrarte direct_messages: new: body_label: Mensaje @@ -917,8 +917,6 @@ es: comment_unauthenticated: Necesitas %{signin} o %{signup} para poder votar. disagree: No estoy de acuerdo organizations: Las organizaciones no pueden votar. - signin: iniciar sesión - signup: registrarte supports: Apoyos unauthenticated: Necesitas %{signin} o %{signup} para continuar. verified_only: Las propuestas sólo pueden ser votadas por usuarios verificados, %{verify_account}. diff --git a/config/locales/es/legislation.yml b/config/locales/es/legislation.yml index 2864a6184..19a86e119 100644 --- a/config/locales/es/legislation.yml +++ b/config/locales/es/legislation.yml @@ -14,9 +14,6 @@ es: publish_comment: Publicar Comentario form: 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: title: Comentarios comments_about: Comentarios sobre