From cb0fa52f7fcf7869c6596733465bfbf407bcd3d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8Dtalo=20Alves?= Date: Mon, 26 Oct 2020 15:01:53 -0300 Subject: [PATCH] Fix translation helper functions (#8570) --- app/views/like/_like.html.erb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/views/like/_like.html.erb b/app/views/like/_like.html.erb index 011dca1d0b..0c246ad08c 100644 --- a/app/views/like/_like.html.erb +++ b/app/views/like/_like.html.erb @@ -106,23 +106,25 @@
+ <% if node.type == 'note' %> - <%= number_with_delimiter(node.views) %> <%= translation('notes.show.views') %> + <%= number_with_delimiter(node.views) %> <%= t('notes.show.views') %> <% if node.comments %> - | <%= node.comments.size %> <%= translation('notes.show.comments') %> + | <%= node.comments.size %> <%= t('notes.show.comments') %> <% end %> - | <%= raw translation('wiki.show.last_edited', url1: "/profile/" + node.latest.author.name, author: node.latest.author.name, time: time_ago_in_words(node.latest.created_at)) %> + | <%= raw t('wiki.show.last_edited', url1: "/profile/" + node.latest.author.name, author: node.latest.author.name, time: time_ago_in_words(node.latest.created_at)) %> <% end %> <% if node.type == 'page' %> - <%= number_with_delimiter(node.views) %> <%= translation('wiki.show.views') %> + <%= number_with_delimiter(node.views) %> <%= t('wiki.show.views') %> <% if node.comments %> | <%= node.comments.length %> Comments <% end %> - | <%= raw translation('wiki.show.last_edited', url1: "/profile/" + @revision.author.name, author: @revision.author.name, time: time_ago_in_words(@revision.created_at)) %> + | <%= raw t('wiki.show.last_edited', url1: "/profile/" + @revision.author.name, author: @revision.author.name, time: time_ago_in_words(@revision.created_at)) %> <% end %> +