# File lib/cgikit/package.rb, line 212 def file_path( file, languages = [] ) path = nil languages.each do |lang| pattern = locale_path(lang, file) paths = Dir.glob(pattern) unless paths.empty? then path = paths[0] break end end unless path then path = Dir.glob(File.join(@path, file))[0] end path end