moves comment's i18n
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<% if comment.hidden? || comment.user.hidden? %>
|
<% if comment.hidden? || comment.user.hidden? %>
|
||||||
<% if select_children(@comments, comment).size > 0 %>
|
<% if select_children(@comments, comment).size > 0 %>
|
||||||
<div class="is-deleted">
|
<div class="is-deleted">
|
||||||
<p><%= t("comment.deleted") %></p>
|
<p><%= t("comments.comment.deleted") %></p>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
@@ -28,13 +28,13 @@
|
|||||||
<div class="comment-info">
|
<div class="comment-info">
|
||||||
|
|
||||||
<% if comment.as_administrator? %>
|
<% if comment.as_administrator? %>
|
||||||
<span class="user-name"><%= t("comment.admin") %> #<%= comment.administrator_id%></span>
|
<span class="user-name"><%= t("comments.comment.admin") %> #<%= comment.administrator_id%></span>
|
||||||
<% elsif comment.as_moderator? %>
|
<% elsif comment.as_moderator? %>
|
||||||
<span class="user-name"><%= t("comment.moderator") %> #<%= comment.moderator_id%></span>
|
<span class="user-name"><%= t("comments.comment.moderator") %> #<%= comment.moderator_id%></span>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
||||||
<% if comment.user.hidden? %>
|
<% if comment.user.hidden? %>
|
||||||
<span class="user-name"><%= t("comment.user_deleted") %></span>
|
<span class="user-name"><%= t("comments.comment.user_deleted") %></span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<span class="user-name"><%= comment.user.name %></span>
|
<span class="user-name"><%= comment.user.name %></span>
|
||||||
<% if comment.user.official? %>
|
<% if comment.user.official? %>
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
<% if comment.user_id == @commentable.author_id %>
|
<% if comment.user_id == @commentable.author_id %>
|
||||||
•
|
•
|
||||||
<span class="label round is-author">
|
<span class="label round is-author">
|
||||||
<%= t("comment.author") %>
|
<%= t("comments.comment.author") %>
|
||||||
</span>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="reply">
|
<div class="reply">
|
||||||
<%= t("comment.responses", count: select_children(@comments, comment).size) %>
|
<%= t("comments.comment.responses", count: select_children(@comments, comment).size) %>
|
||||||
|
|
||||||
<% if user_signed_in? %>
|
<% if user_signed_in? %>
|
||||||
<span class="divider"> | </span>
|
<span class="divider"> | </span>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<span>
|
<span>
|
||||||
<%= t('comment.votes', count: comment.total_votes) %>
|
<%= t('comments.comment.votes', count: comment.total_votes) %>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
|
||||||
<span class="in_favor">
|
<span class="in_favor">
|
||||||
|
|||||||
@@ -92,20 +92,6 @@ en:
|
|||||||
zero: No votes
|
zero: No votes
|
||||||
one: 1 vote
|
one: 1 vote
|
||||||
other: "%{count} votes"
|
other: "%{count} votes"
|
||||||
comment:
|
|
||||||
author: Debate's author
|
|
||||||
moderator: Moderator
|
|
||||||
admin: Administrator
|
|
||||||
deleted: This comment has been deleted
|
|
||||||
user_deleted: Deleted user
|
|
||||||
responses:
|
|
||||||
zero: No Responses
|
|
||||||
one: 1 Response
|
|
||||||
other: "%{count} Responses"
|
|
||||||
votes:
|
|
||||||
zero: No votes
|
|
||||||
one: 1 vote
|
|
||||||
other: "%{count} votes"
|
|
||||||
form:
|
form:
|
||||||
debate_title: Debate title
|
debate_title: Debate title
|
||||||
debate_text: Initial text for debate
|
debate_text: Initial text for debate
|
||||||
@@ -180,20 +166,6 @@ en:
|
|||||||
zero: No votes
|
zero: No votes
|
||||||
one: 1 vote
|
one: 1 vote
|
||||||
other: "%{count} votes"
|
other: "%{count} votes"
|
||||||
comment:
|
|
||||||
author: Proposal's author
|
|
||||||
moderator: Moderator
|
|
||||||
admin: Administrator
|
|
||||||
deleted: This comment has been deleted
|
|
||||||
user_deleted: Deleted user
|
|
||||||
responses:
|
|
||||||
zero: No Responses
|
|
||||||
one: 1 Response
|
|
||||||
other: "%{count} Responses"
|
|
||||||
votes:
|
|
||||||
zero: No votes
|
|
||||||
one: 1 vote
|
|
||||||
other: "%{count} votes"
|
|
||||||
form:
|
form:
|
||||||
proposal_title: Proposal title
|
proposal_title: Proposal title
|
||||||
proposal_question: Proposal question
|
proposal_question: Proposal question
|
||||||
@@ -244,6 +216,20 @@ en:
|
|||||||
leave_comment: Write a comment
|
leave_comment: Write a comment
|
||||||
comment_as_moderator: Comment as moderator
|
comment_as_moderator: Comment as moderator
|
||||||
comment_as_admin: Comment as administrator
|
comment_as_admin: Comment as administrator
|
||||||
|
comment:
|
||||||
|
author: Author
|
||||||
|
moderator: Moderator
|
||||||
|
admin: Administrator
|
||||||
|
deleted: This comment has been deleted
|
||||||
|
user_deleted: Deleted user
|
||||||
|
responses:
|
||||||
|
zero: No Responses
|
||||||
|
one: 1 Response
|
||||||
|
other: "%{count} Responses"
|
||||||
|
votes:
|
||||||
|
zero: No votes
|
||||||
|
one: 1 vote
|
||||||
|
other: "%{count} votes"
|
||||||
comments_helper:
|
comments_helper:
|
||||||
comment_link: Comment
|
comment_link: Comment
|
||||||
comment_button: Publish comment
|
comment_button: Publish comment
|
||||||
|
|||||||
@@ -92,20 +92,6 @@ es:
|
|||||||
zero: Sin votos
|
zero: Sin votos
|
||||||
one: 1 voto
|
one: 1 voto
|
||||||
other: "%{count} votos"
|
other: "%{count} votos"
|
||||||
comment:
|
|
||||||
author: Autor del debate
|
|
||||||
moderator: Moderador
|
|
||||||
admin: Administrador
|
|
||||||
deleted: Este comentario ha sido eliminado
|
|
||||||
user_deleted: Usuario eliminado
|
|
||||||
responses:
|
|
||||||
zero: Sin respuestas
|
|
||||||
one: 1 Respuesta
|
|
||||||
other: "%{count} Respuestas"
|
|
||||||
votes:
|
|
||||||
zero: Sin votos
|
|
||||||
one: 1 voto
|
|
||||||
other: "%{count} votos"
|
|
||||||
form:
|
form:
|
||||||
debate_title: Título del debate
|
debate_title: Título del debate
|
||||||
debate_text: Texto inicial del debate
|
debate_text: Texto inicial del debate
|
||||||
@@ -180,20 +166,6 @@ es:
|
|||||||
zero: Sin votos
|
zero: Sin votos
|
||||||
one: 1 voto
|
one: 1 voto
|
||||||
other: "%{count} votos"
|
other: "%{count} votos"
|
||||||
comment:
|
|
||||||
author: Autor de la propuesta
|
|
||||||
moderator: Moderador
|
|
||||||
admin: Administrador
|
|
||||||
deleted: Este comentario ha sido eliminado
|
|
||||||
user_deleted: Usuario eliminado
|
|
||||||
responses:
|
|
||||||
zero: Sin respuestas
|
|
||||||
one: 1 Respuesta
|
|
||||||
other: "%{count} Respuestas"
|
|
||||||
votes:
|
|
||||||
zero: Sin votos
|
|
||||||
one: 1 voto
|
|
||||||
other: "%{count} votos"
|
|
||||||
form:
|
form:
|
||||||
proposal_title: Título de la propuesta
|
proposal_title: Título de la propuesta
|
||||||
proposal_question: Pregunta de la propuesta
|
proposal_question: Pregunta de la propuesta
|
||||||
@@ -244,6 +216,20 @@ es:
|
|||||||
leave_comment: Deja tu comentario
|
leave_comment: Deja tu comentario
|
||||||
comment_as_moderator: Comentar como moderador
|
comment_as_moderator: Comentar como moderador
|
||||||
comment_as_admin: Comentar como administrador
|
comment_as_admin: Comentar como administrador
|
||||||
|
comment:
|
||||||
|
author: Autor
|
||||||
|
moderator: Moderador
|
||||||
|
admin: Administrador
|
||||||
|
deleted: Este comentario ha sido eliminado
|
||||||
|
user_deleted: Usuario eliminado
|
||||||
|
responses:
|
||||||
|
zero: Sin respuestas
|
||||||
|
one: 1 Respuesta
|
||||||
|
other: "%{count} Respuestas"
|
||||||
|
votes:
|
||||||
|
zero: Sin votos
|
||||||
|
one: 1 voto
|
||||||
|
other: "%{count} votos"
|
||||||
comments_helper:
|
comments_helper:
|
||||||
comment_link: Comentar
|
comment_link: Comentar
|
||||||
comment_button: Publicar comentario
|
comment_button: Publicar comentario
|
||||||
|
|||||||
Reference in New Issue
Block a user