class YARD::I18n::PotGenerator

def generate

Returns:
  • (String) - POT format string
def generate
  pot = String.new(header)
  sorted_messages = @messages.sort_by do |message|
    sorted_locations = message.locations.sort
    sorted_locations.first || []
  end
  sorted_messages.each do |message|
    generate_message(pot, message)
  end
  pot
end