diff options
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2fdc119c1..c72763dbb 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -129,8 +129,9 @@ module ApplicationHelper l(:label_added_time_by, author_tag, time_tag) end - def l_or_humanize(s) - l_has_string?("label_#{s}".to_sym) ? l("label_#{s}".to_sym) : s.to_s.humanize + def l_or_humanize(s, options={}) + k = "#{options[:prefix]}#{s}".to_sym + l_has_string?(k) ? l(k) : s.to_s.humanize end def day_name(day) |