# File rbot/language.rb, line 12 def scan @strings = Hash.new current_key = nil IO.foreach(File.dirname(__FILE__) + "/languages/#{@language}.lang") {|l| next if l =~ /^$/ next if l =~ /^\s*#/ if(l =~ /^(\S+):$/) @strings[$1] = Array.new current_key = $1 elsif(l =~ /^\s*(.*)$/) @strings[current_key] << $1 end } end