-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Convert LinkExpirationFormatterMethod to Java's ChoiceFormat pattern #21888
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
Convert LinkExpirationFormatterMethod to Java's ChoiceFormat pattern #21888
Conversation
@hmlnarik - as we've talked about translation formats recently, I wonder if you could review and merge this PR as well. I wasn't sure where to put the code for the conversion, so I placed it in a test case as it can be run interactively from the IDE. I could also remove it from there and paste it into this PR. WDYT? Thanks! |
themes/src/main/resources/theme/base/email/messages/messages_en.properties
Show resolved
Hide resolved
themes/src/main/resources/theme/base/email/messages/messages_en.properties
Outdated
Show resolved
Hide resolved
1864aff
to
8de973d
Compare
@stianst - this is now ready for another review. Thanks! |
themes/src/main/resources-community/theme/base/email/messages/messages_fa.properties
Outdated
Show resolved
Hide resolved
8de973d
to
1838920
Compare
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.
I like this PR, this simplifies the automatic translation. Thank you.
However, four locales (ar, cz, sk, pl) lose their translations. Could you please fix?
themes/src/main/resources-community/theme/base/email/messages/messages_cs.properties
Outdated
Show resolved
Hide resolved
1838920
to
e600a6a
Compare
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.
Thanks for the changes
Closes #21887
The code that was used to convert the different languages (except English) is present in
LinkExpirationFormatterMethodTest#convert
.To test the result, consider for example
jshell
:Discussion: #9270