Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/add translators comment #2716

Merged
merged 2 commits into from
May 27, 2021
Merged

Conversation

strarsis
Copy link
Contributor

In current Sage master, when invoking the translate (translate:pot) script, wp i18n make-pot emits warnings for missing translator comments of code used in the Sage theme:

  • Warning: The string "Search Results for %s" contains placeholders but has no "translators:" comment to clarify their meaning. (app/View/Composers/Post.php:58)
  • Warning: The string "Error locating <code>%s</code> for inclusion." contains placeholders but has no "translators:" comment to clarify their meaning. (bootstrap/app.php:32)

In case of app/View/Composers/Post.php:58 there is already a translator comment, but on the wrong line, as wp i18n make-pot only uses those when directly preceding the translation methods, this PR fixes this.

In case of bootstrap/app.php:32 the translator comment is completely missing and added by this PR.

strarsis and others added 2 commits May 24, 2021 14:45
Add missing translators comment (about inclusion error path).
@Log1x Log1x merged commit 6d66deb into roots:master May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants