Commit 3600569da5863a49e24a68d27533ec04b8edf774

Authored by Daniela Feitosa
1 parent 0f01bf09

Added translation markup on profile fields

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
app/helpers/profile_helper.rb
@@ -41,6 +41,7 @@ module ProfileHelper @@ -41,6 +41,7 @@ module ProfileHelper
41 :birth_date => _('Date of birth'), 41 :birth_date => _('Date of birth'),
42 :created_at => _('Profile created at'), 42 :created_at => _('Profile created at'),
43 :members_count => _('Members'), 43 :members_count => _('Members'),
  44 + :privacy_setting => _('Privacy setting'),
44 :article_tags => _('Tags') 45 :article_tags => _('Tags')
45 } 46 }
46 47
@@ -64,7 +65,7 @@ module ProfileHelper @@ -64,7 +65,7 @@ module ProfileHelper
64 65
65 def title(field, entry = nil) 66 def title(field, entry = nil)
66 return self.send("#{field}_custom_title", entry) if MULTIPLE[kind].include?(field) && entry.present? 67 return self.send("#{field}_custom_title", entry) if MULTIPLE[kind].include?(field) && entry.present?
67 - CUSTOM_LABELS[field.to_sym] || field.to_s.humanize 68 + CUSTOM_LABELS[field.to_sym] || _(field.to_s.humanize)
68 end 69 end
69 70
70 def display_field(field) 71 def display_field(field)