Sha256: ad1b60ea9049bf131b3c52c81912d4e94735ca5a8f087aac734797c3f762cfcb
Contents?: true
Size: 885 Bytes
Versions: 1
Compression:
Stored size: 885 Bytes
Contents
# -*- encoding: utf-8 -*- if RUBY_VERSION < "1.9" $KCODE = 'u' end # Rails hacks if defined?(ActionView::Helpers) require 'polish/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.1 | lib/polish.rb |