Module: ActiveLdap::GetTextSupport
- Included in:
- ActiveLdap, Adapter::Base, Base, Command, DistinguishedName, DistinguishedName::Parser, Error, Ldif::Parser, Ldif::Record, Schema, Schema::Attribute, Schema::Syntaxes::Base
- Defined in:
- lib/active_ldap/get_text_support.rb
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 |