Sha256: 85378fb6b637fa673cefdb2799f30b1d909f73ab18ea2488e4bd2811ef7e42aa
Contents?: true
Size: 878 Bytes
Versions: 1
Compression:
Stored size: 878 Bytes
Contents
# -*- encoding: utf-8 -*- if RUBY_VERSION < "1.9" $KCODE = 'u' end # Rails hacks if defined?(ActionView::Helpers) require 'action_view_ext/helpers/date_helper' end require 'polish/proxies' module Polish extend self module VERSION STRING = File.open(File.dirname(__FILE__) + "/../VERSION").gets.chomp MAJOR, MINOR, TINY = STRING.split('.') end # Polish locale LOCALE = :'pl' # Polish locale def locale LOCALE end # Init Polish i18n: set custom backend, # load all translations shipped with library. def init_i18n I18n.backend.class.send(:include, I18n::Backend::Pluralization) I18n.load_path.unshift(*locale_files) end protected # Returns all locale files shipped with library def locale_files Dir[File.join(File.dirname(__FILE__), "polish", "locale", "**/*")] end end Polish.init_i18n
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polish-0.1.0 | lib/polish.rb |