Methods

Included Modules

Class/Module Index [+]

Quicksearch

ActiveLdap::GetTextSupport

Public Class Methods

included(base) click to toggle source
# File lib/active_ldap/get_text_support.rb, line 10
def included(base)
  base.class_eval do
    include(GetText::Translation)
    po_dir = File.join(File.dirname(__FILE__), "..", "..", "po")
    po_dir = File.expand_path(po_dir)
    GetText.add_text_domain('active-ldap', :path => po_dir, :type => :po)
    GetText.default_available_locales = ['en', 'jp']
    GetText.default_text_domain = "active-ldap"
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.