moves comment's i18n

This commit is contained in:
Juanjo Bazán
2015-09-13 13:54:34 +02:00
parent c4e10612c1
commit ef4d99e538
4 changed files with 35 additions and 63 deletions

View File

@@ -5,7 +5,7 @@
<% if comment.hidden? || comment.user.hidden? %>
<% if select_children(@comments, comment).size > 0 %>
<div class="is-deleted">
<p><%= t("comment.deleted") %></p>
<p><%= t("comments.comment.deleted") %></p>
</div>
<% end %>
<% else %>
@@ -28,13 +28,13 @@
<div class="comment-info">
<% 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? %>
<span class="user-name"><%= t("comment.moderator") %> #<%= comment.moderator_id%></span>
<span class="user-name"><%= t("comments.comment.moderator") %> #<%= comment.moderator_id%></span>
<% else %>
<% if comment.user.hidden? %>
<span class="user-name"><%= t("comment.user_deleted") %></span>
<span class="user-name"><%= t("comments.comment.user_deleted") %></span>
<% else %>
<span class="user-name"><%= comment.user.name %></span>
<% if comment.user.official? %>
@@ -53,7 +53,7 @@
<% if comment.user_id == @commentable.author_id %>
&nbsp;&bull;&nbsp;
<span class="label round is-author">
<%= t("comment.author") %>
<%= t("comments.comment.author") %>
</span>
<% end %>
@@ -80,7 +80,7 @@
</span>
<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? %>
<span class="divider">&nbsp;|&nbsp;</span>