Module: Katello::TranslationHelper

Included in:
SyncManagementController, SyncStatusPresenter
Defined in:
app/helpers/katello/translation_helper.rb

Instance Method Summary collapse

Instance Method Details

#month(i) ⇒ Object



11
12
13
14
15
# File 'app/helpers/katello/translation_helper.rb', line 11

def month(i)
  return '' unless i
  i = i.to_time.month if i.respond_to? :to_time
  months[i]
end

#monthsObject



7
8
9
# File 'app/helpers/katello/translation_helper.rb', line 7

def months
  t('date.month_names')
end

#relative_time_in_words(time) ⇒ Object



3
4
5
# File 'app/helpers/katello/translation_helper.rb', line 3

def relative_time_in_words(time)
  _("%s ago") % time_ago_in_words(time)
end