Skip to content

Don't include empty file headers #5

@ocean90

Description

@ocean90

Noticed while testing #4.

Example plugin file:

<?php
/**
 * Plugin Name: Plugin name
 */

Running the makpot command creates this POT file:

# Copyright (C) 2017 Plugin name
# This file is distributed under the same license as the Plugin name package.
msgid ""
msgstr ""
"Project-Id-Version: Plugin name\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/test-plugin\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2017-12-13T17:14:45+00:00\n"
"PO-Revision-Date: 2017-12-13T17:14:45+00:00\n"
"X-Domain: test-plugin\n"

#. Plugin Name of the plugin/theme
msgid "Plugin name"
msgstr ""

#. Plugin URI of the plugin/theme
#. Description of the plugin/theme
#. Author of the plugin/theme
#. Author URI of the plugin/theme
msgid ""
msgstr ""

Note the empty msgid entry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions