From fd5683d47ba235abc38e0e16a0d8675b53a1f289 Mon Sep 17 00:00:00 2001
From: kush aggarwal <44523552+kushaggarwal@users.noreply.github.com>
Date: Tue, 31 Dec 2019 23:50:41 +0530
Subject: [PATCH] change the function t to translation (#7041)
change the function t to translation of app/views/users/_likes.html.erb in reference to the issue no. #6880
---
app/views/users/likes.html.erb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/app/views/users/likes.html.erb b/app/views/users/likes.html.erb
index 2364b1702d..74b8107c96 100644
--- a/app/views/users/likes.html.erb
+++ b/app/views/users/likes.html.erb
@@ -3,16 +3,16 @@
<% user = user || @user # allow overriding w/ local variable %>
<% if @wikis && @wikis.length > 0 %>
-
<%= t('users.likes.wiki_liked_by') %> <%= user.name %>
+ <%= translation('users.likes.wiki_liked_by') %> <%= user.name %>
<% @wikis.each do |wiki| %>
<% unless (!@node.nil? && wiki.nid == @node.nid) %>
- - <%= wiki.title %> (<%= t('users.likes.updated') %>: <%= distance_of_time_in_words(wiki.updated_at, Time.current, { include_seconds: false, scope: 'datetime.time_ago_in_words' }) %>)
+ - <%= wiki.title %> (<%= translation('users.likes.updated') %>: <%= distance_of_time_in_words(wiki.updated_at, Time.current, { include_seconds: false, scope: 'datetime.time_ago_in_words' }) %>)
<% end %>
<% end %>
<% if params[:controller] == "search" %>
- - <%= t('users.likes.more') %>...
+ - <%= translation('users.likes.more') %>...
<% end %>
<% end %>
@@ -20,7 +20,7 @@