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/165: make "most used" text translatable #172

Merged
merged 5 commits into from
Jan 8, 2023
Merged

fix/165: make "most used" text translatable #172

merged 5 commits into from
Jan 8, 2023

Conversation

Sidsector9
Copy link
Member

@Sidsector9 Sidsector9 commented Nov 21, 2022

Note

Merge Dayjo/react-character-map#54 before merging this.

Description of the Change

Passed string to prop mostUsedPaletteLabelText to make text translatable.

Steps to translate

Closes #165

Changelog Entry

Fixed - Translation issue for the string "Most Used"

Credits

Props @alexclassroom @Sidsector9

@Sidsector9 Sidsector9 self-assigned this Nov 21, 2022
@Sidsector9 Sidsector9 requested review from a team and faisal-alvi and removed request for a team November 21, 2022 08:28
@jeffpaul jeffpaul added this to the 1.0.6 milestone Nov 30, 2022
Copy link
Member

@faisal-alvi faisal-alvi left a comment

Choose a reason for hiding this comment

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

@Sidsector9 thanks for the PR. Code LGTM but when I changed the language to Italian (supported as per the org), it didn't change the "Most Used" text. That is probably because the text is not converted yet in the language files. Can you please share the steps to QA test this PR in any other way (if required, otherwise I'm ready to approve)?

image

The screenshot also shows the popup is cut out that seems to be fixed in #173 so ignoring here.

@Sidsector9
Copy link
Member Author

@faisal-alvi there's a fix in upstream that need to be merged. Once react-character-map 0.4.9 is released, we can connect to discuss this.

@Sidsector9
Copy link
Member Author

@faisal-alvi I updated the react-character-map package to 0.4.9.

You can follow the steps from here to test this - https://developer.wordpress.org/block-editor/how-to-guides/internationalization/

I tested this and it works for me:

Screenshot 2022-12-15 at 8 29 51 PM

@Sidsector9 Sidsector9 requested review from iamdharmesh and removed request for faisal-alvi January 5, 2023 13:22
Copy link
Member

@iamdharmesh iamdharmesh left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @Sidsector9, Code LGTM!

I tried to generate a pot file with wp-cli and it contains the "Most Used" string .I tried setup Loco translate with translated "Most Used" to something else and it seems working fine.

@Sidsector9 Sidsector9 merged commit 37fc1e6 into develop Jan 8, 2023
@Sidsector9 Sidsector9 deleted the fix/165 branch January 8, 2023 08:21
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.

Make UI string "Most used" internationalizable
4 participants