Module: ActiveLdap::GetTextSupport

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/active_ldap/get_text_support.rb', line 10

def included(base)
  base.class_eval do
    include(GetText::Translation)
    GetText.add_text_domain('active-ldap',:path=>'po', :type=>:po)
    GetText.default_available_locales = ['en', 'jp']
    GetText.default_text_domain = "active-ldap"
  end
end