new (GetText::TextDomain)

    # File lib/gettext/textdomain.rb, line 72
        def initialize(name, topdir = nil, locale = nil)
          @name, @topdir = name, topdir
          @search_files = Array.new

          @locale_paths = []
          if ENV["GETTEXT_PATH"]
            ENV["GETTEXT_PATH"].split(/,/).each {|i|
              @locale_paths += ["#{i}/%{locale}/LC_MESSAGES/%{name}.mo", "#{i}/%{locale}/%{name}.mo"]
            }
          elsif @topdir
            @locale_paths += ["#{@topdir}/%{locale}/LC_MESSAGES/%{name}.mo", "#{@topdir}/%{locale}/%{name}.mo"]
          end

          unless @topdir
            @locale_paths += DEFAULT_LOCALE_PATHS

            if defined? Gem
              $:.each do |path|
                if GEM_PATH_RE =~ path
                  @locale_paths += [
                    "#{$1}/data/locale/%{locale}/LC_MESSAGES/%{name}.mo",
                    "#{$1}/data/locale/%{locale}/%{name}.mo",
                    "#{$1}/locale/%{locale}/%{name}.mo"]
                end
              end
            end
          end

          @mofiles = Hash.new
          set_locale(locale)
        end