    # File lib/yard/i18n/pot_generator.rb, line 121
          def generate
            pot = header
            sorted_messages = @messages.sort_by do |message|
              sorted_locations = message.locations.sort_by do |location|
                location
              end
              sorted_locations.first || []
            end
            sorted_messages.each do |message|
              generate_message(pot, message)
            end
            pot
          end