Skip to content

Make command palette string transatables#59133

Merged
t-hamano merged 4 commits intoWordPress:trunkfrom
MarieComet:fix/command-palette-strings-i18n
Feb 17, 2024
Merged

Make command palette string transatables#59133
t-hamano merged 4 commits intoWordPress:trunkfrom
MarieComet:fix/command-palette-strings-i18n

Conversation

@MarieComet
Copy link
Copy Markdown
Contributor

See the related issue : #59132

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 16, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: MarieComet <chaton666@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: huzaifaalmesbah <huzaifaalmesbah@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@huzaifaalmesbah
Copy link
Copy Markdown
Member

I See Your PR Looks Good. Thanks for PR

Copy link
Copy Markdown
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

I believe these changes are correct, but it seems to be failing the lint check because it's indented with spaces instead of tabs. If you commit the suggestions below, it should be resolved.

At the same time, I also fixed the placeholder format (%1$s), which was originally incorrect.

@t-hamano t-hamano added [Type] Bug An existing feature does not function as intended Internationalization (i18n) Issues or PRs related to internationalization efforts [Package] Edit Site /packages/edit-site labels Feb 17, 2024
@t-hamano t-hamano linked an issue Feb 17, 2024 that may be closed by this pull request
MarieComet and others added 2 commits February 17, 2024 10:05
Co-authored-by: Aki Hamano <54422211+t-hamano@users.noreply.github.com>
@MarieComet
Copy link
Copy Markdown
Contributor Author

Hi @t-hamano
Thanks for the review.
I commited your suggestions and fixed another incorrect placeholder format in comment.

@t-hamano t-hamano self-requested a review February 17, 2024 14:36
Copy link
Copy Markdown
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! GitHub Actions is all ✅. Thanks for your great work!

@t-hamano t-hamano merged commit 98e6dab into WordPress:trunk Feb 17, 2024
@github-actions github-actions bot added this to the Gutenberg 17.8 milestone Feb 17, 2024
getdave pushed a commit that referenced this pull request Feb 20, 2024
* Make command palette string transatables

* Apply suggestions from code review

Co-authored-by: Aki Hamano <54422211+t-hamano@users.noreply.github.com>

* Fix %1$s in command palette comment translation

* fix lint JS in use-edit-mode-command.js

---------

Co-authored-by: MarieComet <chaton666@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: huzaifaalmesbah <huzaifaalmesbah@git.wordpress.org>
@getdave
Copy link
Copy Markdown
Contributor

getdave commented Feb 20, 2024

I just cherry-picked this PR to the cherry-pick-beta-2 branch to get it included in the next release: e14c1d9

youknowriad pushed a commit that referenced this pull request Feb 20, 2024
* Make command palette string transatables

* Apply suggestions from code review

Co-authored-by: Aki Hamano <54422211+t-hamano@users.noreply.github.com>

* Fix %1$s in command palette comment translation

* fix lint JS in use-edit-mode-command.js

---------

Co-authored-by: MarieComet <chaton666@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: huzaifaalmesbah <huzaifaalmesbah@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Internationalization (i18n) Issues or PRs related to internationalization efforts [Package] Edit Site /packages/edit-site [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not all command palette strings are translatable.

5 participants