# File lib/gettext/locale_path.rb, line 82 def current_path(lang) lang_candidates = lang.to_posix.candidates search_files = [] @locale_paths.each {|path| lang_candidates.each{|tag| fname = path % {:lang => tag} if $DEBUG search_files << fname unless search_files.include?(fname) end if File.exist?(fname) warn "GetText::TextDomain#load_mo: mo-file is #{fname}" if $DEBUG return fname end } } if $DEBUG warn "MO file is not found in" search_files.each do |v| warn " #{v}" end end nil end