Sha256: 04cf00ced11bb262d063b49663e57802fa14132f12b6595d496319ac47104a2b

Contents?: true

Size: 219 Bytes

Versions: 23

Compression:

Stored size: 219 Bytes

Contents

module I18n
  module_function
  # this is not chainable, since FastGettext may reject this locale!
  def locale=(new_locale)
    FastGettext.locale = new_locale
  end
  def locale
    FastGettext.locale.to_sym
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
zena-0.15.2 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/i18n_hacks.rb
zena-0.15.1 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/i18n_hacks.rb
zena-0.15.0 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/i18n_hacks.rb