diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 309ea8438..8fb6647d4 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -32,7 +32,7 @@ module ApplicationHelper
def aspect_badge aspects
str = ''
if aspects.count > 1
- str = "All aspects"
+ str = "#{I18n.t('application.helper.aspect_badge.all_aspects')}"
elsif aspects.count == 1
aspect = aspects.first
str = "#{aspect.name}"
@@ -93,7 +93,7 @@ module ApplicationHelper
end
def how_long_ago(obj)
- "#{time_ago_in_words(obj.created_at, true)} #{t('ago')}"
+ I18n.t('ago', :time => time_ago_in_words(obj.created_at, true))
end
def person_url(person)
diff --git a/app/views/comments/_comment.html.haml b/app/views/comments/_comment.html.haml
index 2b0298c81..62f05b193 100644
--- a/app/views/comments/_comment.html.haml
+++ b/app/views/comments/_comment.html.haml
@@ -10,5 +10,5 @@
=person_link(person)
= markdownify(comment.text, :youtube_maps => comment[:youtube_titles])
%div.time
- = comment.created_at ? "#{time_ago_in_words(comment.created_at)} #{t('ago')}" : time_ago_in_words(Time.now)
+ = comment.created_at ? t('ago', :time => time_ago_in_words(comment.created_at)) : time_ago_in_words(Time.now)
diff --git a/app/views/people/_profile_sidebar.html.haml b/app/views/people/_profile_sidebar.html.haml
index c8ec15c83..a695881d3 100644
--- a/app/views/people/_profile_sidebar.html.haml
+++ b/app/views/people/_profile_sidebar.html.haml
@@ -47,5 +47,5 @@
.span-4.last
%h3 #{t('.born')}
- = "#{time_ago_in_words(person.profile.birthday)} #{t('ago')}" if @person.profile.birthday
+ = t('ago', :time => time_ago_in_words(person.profile.birthday)) if @person.profile.birthday
diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml
index f09c81436..4f42bb261 100644
--- a/config/locales/diaspora/en.yml
+++ b/config/locales/diaspora/en.yml
@@ -15,7 +15,7 @@ en:
cancel: "Cancel"
delete: "Delete"
or: "or"
- ago: "ago"
+ ago: "%{time} ago"
username: "Username"
email: "Email"
password: "Password"
@@ -58,6 +58,8 @@ en:
unknown_person: "unknown person"
youtube_title:
unknown: "Unknown Video Title"
+ aspect_badge:
+ all_aspects: "All aspects"
error_messages:
helper:
invalid_fields: "Invalid Fields"