# File lib/ramaze/contrib/gettext.rb, line 57 def self.load(*locales) Log.debug "loading locales: #{locales.inspect}" dict = trait[:dictionary] || {} locales.each do |locale| begin dict[locale] = ::MOFile.open(trait[:file] % locale) rescue Errno::ENOENT Log.error "couldn't load #{trait[:file] % locale}" dict[locale] = {} end end trait[:dictionary] = dict end