FS#57737 - Aurweb has no RTL support
Attached to Project:
AUR web interface
Opened by Yaron Shahrabani (yaron) - Wednesday, 07 March 2018, 09:21 GMT
Last edited by Lukas Fleischer (lfleischer) - Saturday, 01 February 2020, 14:41 GMT
Opened by Yaron Shahrabani (yaron) - Wednesday, 07 March 2018, 09:21 GMT
Last edited by Lukas Fleischer (lfleischer) - Saturday, 01 February 2020, 14:41 GMT
|
Details
Description:
The aurweb UI is translated to both Hebrew and Arabic, these languages are written from Right to Left (aka RTL). Some CSS changes are needed to enable full support. First there should be some condition indicating whether the language is RTL or LTR and then select an additional CSS file according to the selection (the rules that make the change will have !important at the end, something like: "float: right !important" for example). I can create a pull request for the CSS but I'm not familiar with the code to enable conditional CSS selection. Thanks! |
This task depends upon
Closed by Lukas Fleischer (lfleischer)
Saturday, 01 February 2020, 14:41 GMT
Reason for closing: Duplicate
Additional comments about closing: Dupe of FS#45981.
Saturday, 01 February 2020, 14:41 GMT
Reason for closing: Duplicate
Additional comments about closing: Dupe of FS#45981.
But simply globally enabling this doesn't entirely have the right effect regarding some of the layout elements...
If you can get this to work, please submit a patch as per the project contribution guidelines described in https://git.archlinux.org/aurweb.git/tree/doc/CodingGuidelines
Can I have your assistance with all the CSS selection part? I will try to come up with a good working CSS sheet and I'll submit it as a PR.
Alternatives include setting the CSS selector :lang() but as per https://developer.mozilla.org/en-US/docs/Web/CSS/:lang#Specifications you cannot really specify multiple languages for one rule that way...