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
client: add Arabic translations #1898
Conversation
I was wondering if qualifying the language variant is required by this translation system so it would be |
Had a similar thought, but just a language with no region is a valid BCP 47 code. The matching and tag parsing code in |
client/webserver/locales/ar.go
|
client/core/locale_ntfn.go
(nothing missing for ar!) |
Arabic is right-to-left and that brings a few new challenges not seen before:
|
Realizing this too. To do this properly in html, we'd need to include
This one became very clear yesterday. We do have a lot of mixed directionality sentences/phrases, and UTF-8 rendering of these can scramble up the non-ar elements, such as tokens or hexadecimal hashes. To address that I've had to introduce control code sequences just before the placeholders for the non-ar elements to switch from the RTL formatting of preceding Arabic text to LTR formatting required for the tokens and other inserted values. That's what is going on in db0f1c7 with all those
Yes, this is trouble. Lots of things fall apart in our layout, and it's not easy to address. |
The most egregious display bugs relating to bidirectional text that were visible in #1898 (comment) were resolved. I don't know what else we can do with this PR at present. |
Agreed. If it helps Arabic users to navigate and understand what is going on (more than the English version), it is an improvement. Smaller issues can be addressed in the future. |
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.
Looks good tome.
Replaces #1844 with some tweaks