• Resolved Guido

    (@guido07111975)


    Hi,

    Thanks for the plugin Very helpful.

    All of a sudden (?) some of my plugins return many errors:
    ERROR
    WordPress.WP.I18n.MissingTranslatorsComment
    A function call to esc_html__() with texts containing placeholders was found, but was not accompanied by a “translators:” comment on the line above to clarify the meaning of the placeholders.

    I wonder why this is listed as an error instead of a warning?
    It’s just to inform translators about the placeholder.. This is no error.

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)
  • This originates from the WordPress.WP.I18n WPCS rule. It appears when you select the “General” category. While fixing this issue is not mandatory for plugin approval in the directory, it is highly recommended for better code quality and compliance with best practices.

    Thread Starter Guido

    (@guido07111975)

    Hi,

    Thanks for the explanation.
    I understand this is recommended because of translations. But to classify this as an error is too much IMO.

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WordPress.WP.I18n.MissingTranslatorsComment’ is closed to new replies.