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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes MT for languages with faulty BCP code #2124
Conversation
4355e69
to
5a4088f
Compare
Code Climate has analyzed commit 8ca924b and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 18.1% (50% is the threshold). This pull request will bring the total coverage in the repository to 75.8% (0.0% change). View more on Code Climate. |
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 a lot! 馃帀
I only have a couple suggestions, mostly to make get_target_language_key
a little more succinct.
ea5ef3d
to
119c7d7
Compare
d4841ac
to
a1e58f9
Compare
6b54ffb
to
ed499d2
Compare
ed499d2
to
8ca924b
Compare
Thank you a lot for your feedback. The changes are applied now. Feel free to review again :) |
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.
馃帀
Short description
This PR fixes an error that occurred while using the MT for English or Portuguese. With this PR now it gets checked if a. the BCP47 code is in the correct format as expected, and either returns an error message or for the edge case that the BCP47 tag for English or Portuguese were incorrect sets en-GB respectively pt-PT as default.
Proposed changes
Side effects
Resolved issues
Fixes: #2116
Pull Request Review Guidelines