Sha256: afc5c1ffb4666b79cc3669167d317746ea3f13399dcc5590d4f9fc42e1cfe994

Contents?: true

Size: 1.17 KB

Versions: 7

Compression:

Stored size: 1.17 KB

Contents

#This file can be symlinked and thereby easily translated by POEdit. Further more the static methods can be used for stuff.
module Knj::Locales
  def self.days_arr
    return [_("Monday"), _("Tuesday"), _("Wednesday"), _("Thursday"), _("Friday"), _("Saturday"), _("Sunday")]
  end
  
  def self.days_short_arr
    return [_("Mon"), _("Tue"), _("Wed"), _("Thu"), _("Fri"), _("Sat"), _("Sun")]
  end
  
  def self.months_arr
    return [_("January"), _("February"), _("March"), _("April"), _("May"), _("June"), _("July"), _("August"), _("September"), _("October"), _("November"), _("December")]
  end
  
  def self.ago_strings
    return {
      :year_ago_str => _("%s year ago"),
      :years_ago_str => _("%s years ago"),
      :month_ago_str => _("%s month ago"),
      :months_ago_str => _("%s months ago"),
      :day_ago_str => _("%s day ago"),
      :days_ago_str => _("%s days ago"),
      :hour_ago_str => _("%s hour ago"),
      :hours_ago_str => _("%s hours ago"),
      :min_ago_str => _("%s minute ago"),
      :mins_ago_str => _("%s minutes ago"),
      :sec_ago_str => _("%s second ago"),
      :secs_ago_str => _("%s seconds ago"),
      :right_now_str => _("right now")
    }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
knjrbfw-0.0.30 lib/knj/locale_strings.rb
knjrbfw-0.0.29 lib/knj/locale_strings.rb
knjrbfw-0.0.28 lib/knj/locale_strings.rb
knjrbfw-0.0.27 lib/knj/locale_strings.rb
knjrbfw-0.0.26 lib/knj/locale_strings.rb
knjrbfw-0.0.25 lib/knj/locale_strings.rb
knjrbfw-0.0.24 lib/knj/locale_strings.rb