Skip to content

BUG: Fix translation warnings #4313

@felipeelia

Description

@felipeelia

Describe the bug

When running wp i18n make-pot . lang/elasticpress.pot, we get the following warning:

Warning: The string "%1$s and %2$s" has 2 different translator comments. (assets/js/features/components/control.js:166)
translators: %1$s: first feature name, %2$s: second feature name
translators: %1$s: comma-separated list of feature names, %2$s: last feature name
Warning: The string "Page %d" contains placeholders but has no "translators:" comment to clarify their meaning. (assets/js/instant-results/components/results/pagination.js:176)

Steps to Reproduce

  1. Go to the plugin folder
  2. Run wp i18n make-pot . lang/elasticpress.pot

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress and ElasticPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working
    No fields configured for 🐛 Bug Report.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions