Skip to content

Plugin not prepared for translation #4

@robertoschwald

Description

@robertoschwald

It seems some entry points are missing to prepare the plugin for translation:

  1. Text Domain declaration
* Text Domain: security-headers

is missing in readme.txt and in http-headers.php

  1. load_plugin_textdomain() missing
function security_headers_text_domain() {
    load_plugin_textdomain('security-headers', false, basename( dirname( __FILE__ ) ) . '/languages/');
}

is missing in http-headers.php

  1. Using Gettext
    Texts are hardcoded in http-headers.php. Should use __('Default String', 'security-headers')

  2. Create languages dir

  3. Current repo?
    I'm not sure which one of the repos are the current one. This one on GH, or
    https://plugins.svn.wordpress.org/security-headers/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions