Skip to content

Plugin Check: MissingTranslatorsComment & MissingSingularPlaceholder #757

@masteradhoc

Description

@masteradhoc

Describe the bug

The Plugin Check shows the following Issues:

Plugin Check Report

Plugin: Two Factor
Generated at: 2026-01-31 00:06:27

class-two-factor-core.php

Line Column Type Code Message Docs
846 17 ERROR WordPress.WP.I18n.MissingTranslatorsComment A function call to _n() 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. Docs
847 21 ERROR WordPress.WP.I18n.MissingSingularPlaceholder Missing singular placeholder, needed for some languages. See https://codex.wordpress.org/I18n_for_WordPress_Developers#Plurals Docs
896 17 ERROR WordPress.WP.I18n.MissingTranslatorsComment A function call to __() 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. Docs
1633 21 ERROR WordPress.WP.I18n.MissingTranslatorsComment A function call to __() 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. Docs
1977 67 ERROR WordPress.WP.I18n.MissingTranslatorsComment A function call to __() 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. Docs

Steps to Reproduce

  1. Install Plugin Check Plugin
  2. Choose Two Factor, Categories = "General" and Types = "Error" & "Warning"
  3. see results
  4. apply fix
  5. see results

Screenshots, screen recording, code snippet

No response

Environment information

No response

Please confirm that you have searched existing issues in this repository.

Yes

Please confirm that you have tested with all plugins deactivated except Two-Factor.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions