class YARD::I18n::Locale
def load(locale_directory)
-
(Boolean)
- +true+ if PO file exists, +false+ otherwise.
Parameters:
-
locale_directory
(String
) -- the directory path that has
def load(locale_directory) return false if @name.nil? po_file = File.join(locale_directory, "#{@name}.po") return false unless File.exist?(po_file) require "yard/i18n/po_parser" return false unless POParser.available? po_parser = POParser.new @messages.merge!(po_parser.parse(po_file)) true end