Sha256: 6511e4841d9f9e4b707a352494bcf89fbbdd2c0a8f78a200aea23e2f29ba1b51

Contents?: true

Size: 312 Bytes

Versions: 248

Compression:

Stored size: 312 Bytes

Contents

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

    def months
      t('date.month_names')
    end

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

Version data entries

248 entries across 248 versions & 1 rubygems

Version Path
katello-4.14.2 app/helpers/katello/translation_helper.rb
katello-4.15.0 app/helpers/katello/translation_helper.rb
katello-4.15.0.rc2 app/helpers/katello/translation_helper.rb
katello-4.15.0.rc1 app/helpers/katello/translation_helper.rb
katello-4.14.1 app/helpers/katello/translation_helper.rb
katello-4.14.0 app/helpers/katello/translation_helper.rb
katello-4.14.0.rc3 app/helpers/katello/translation_helper.rb
katello-4.14.0.rc2 app/helpers/katello/translation_helper.rb
katello-4.14.0.rc1.1 app/helpers/katello/translation_helper.rb
katello-4.14.0.rc1 app/helpers/katello/translation_helper.rb
katello-4.13.1 app/helpers/katello/translation_helper.rb
katello-4.13.0 app/helpers/katello/translation_helper.rb
katello-4.12.1 app/helpers/katello/translation_helper.rb
katello-4.13.0.rc1 app/helpers/katello/translation_helper.rb
katello-4.12.0 app/helpers/katello/translation_helper.rb
katello-4.12.0.rc3 app/helpers/katello/translation_helper.rb
katello-4.12.0.rc2 app/helpers/katello/translation_helper.rb
katello-4.12.0.rc1 app/helpers/katello/translation_helper.rb
katello-4.11.1 app/helpers/katello/translation_helper.rb
katello-4.11.0 app/helpers/katello/translation_helper.rb