# File lib/yard/i18n/locale.rb, line 30 def load(locale_directory) po_file = File.join(locale_directory, "#{@name}.po") return false unless File.exist?(po_file) parser = GetText::PoParser.new parser.report_warning = false data = GetText::MoFile.new parser.parse_file(po_file, data) @messages.merge!(data) true end