-
Notifications
You must be signed in to change notification settings - Fork 43
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
Avatar rating text is not translated properly if a user has a custom language Set #89
Avatar rating text is not translated properly if a user has a custom language Set #89
Conversation
0d1d20b
to
c013a00
Compare
@faisal-alvi I implemented a new solution and left some comments for clarity. Let me know if you have any questions or concerns. |
@ActuallyConnor Thank you for the improved solution. I've left some suggestions, please check. |
Overwriting existing avatar_ratings so this can be called just before the rating strings would be used so that translations will work correctly. Default text-domain because the strings have already been translated Using esc_html over $ratings would be an extra improvement
@faisal-alvi I've made some changes based on your recommendations, let me know what you think |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ActuallyConnor the solution looks good, thank you. There are a couple of errors from PHPCS
, please fix them. Then we will be good to go.
@faisal-alvi those PHPCS errors should be fixed now 😄 |
Description of the Change
Adding string translation method around each
$avatar_rating
when it is output in theedit_user_profile()
method.Verification Process
Checklist:
Applicable Issues
#88