Module: Polish

Extended by:
Polish
Includes:
Proxies
Included in:
Polish
Defined in:
lib/polish.rb,
lib/polish/proxies.rb,
lib/polish/version.rb

Defined Under Namespace

Modules: Proxies

Constant Summary collapse

LOCALE =

Polish locale

:'pl'
VERSION =
"0.1.6"

Instance Method Summary collapse

Methods included from Proxies

#localize, #pluralize, #strftime, #translate

Instance Method Details

#init_i18nObject

Init Polish i18n: set custom backend, load all translations shipped with library.



31
32
33
34
# File 'lib/polish.rb', line 31

def init_i18n
  I18n.backend.class.send(:include, I18n::Backend::Pluralization)
  I18n.load_path.unshift(*locale_files)
end

#localeObject

Polish locale



25
26
27
# File 'lib/polish.rb', line 25

def locale
  LOCALE
end