    # File lib/gettext/runtime/locale_path.rb, line 43
          def default_path_rules
            default_path_rules = []

            if ENV["GETTEXT_PATH"]
              ENV["GETTEXT_PATH"].split(/,/).each {|i|
                default_path_rules = ["#{i}/%{lang}/LC_MESSAGES/%{name}.mo", "#{i}/%{lang}/%{name}.mo"]
              }
            end

            default_path_rules += DEFAULT_RULES

            load_path = $LOAD_PATH
            if defined? ::Gem
              load_path += Gem.all_load_paths
            end
            load_path.map!{|v| v.match(/(.*?)(\/lib)*?$/); $1}
            load_path.each {|path|
              default_path_rules += [
                                     "#{path}/data/locale/%{lang}/LC_MESSAGES/%{name}.mo",
                                     "#{path}/data/locale/%{lang}/%{name}.mo",
                                     "#{path}/locale/%{lang}/%{name}.mo"]
            }
            # paths existed only.
            default_path_rules = default_path_rules.select{|path|
              Dir.glob(path % {:lang => "*", :name => "*"}).size > 0}.uniq
            default_path_rules
          end