Add i18n support for math block error messages#73643
Add i18n support for math block error messages#73643t-hamano merged 2 commits intoWordPress:trunkfrom
Conversation
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
t-hamano
left a comment
There was a problem hiding this comment.
@Utsav-Ladani Thanks for the PR!
@ellatrix @jasmussen, unfortunately, the message when parsing a formula fails cannot be localized. What do you think about this PR that adds a localizable prefix text instead?
|
We're past string freeze, would this be fine? Are there any strings we can reuse, like "Error:" from somewhere else? |
This is an improvement for 7.0, and I don't think it needs to be backported to 6.9. |
|
Sounds good to land then 🙂 |
What?
Closes #73615
Include a localized prefix
Error:before error messages in math blocks.Why?
When parsing mathematical expressions fails in a Math block or Math format, the error message comes from the
Temmllibrary and lacks localization. Adding a localizedError:prefix clearly indicates to users that it's an error message.How?
Implement by prepending a localized
Error:prefix to the existing error message.Testing Instructions
&x^2Error:and it should be localized.Screenshots