# File lib/cgikit/package.rb, line 234 def path_for_web_server_resource( docroot, name, languages = [] ) www = File.join(docroot, Application::CGIKIT_PATH, Application::PACKAGE_PATH, @name) paths = [] languages.each do |lang| paths << File.join(www, @locale_path, lang, @web_server_resource_path, name) end paths << File.join(www, @web_server_resource_path, name) paths.each do |path| if FileTest.exist?(path) then return path end end file_path(File.join(@web_server_resource_path, name), languages) end