Before we can do #2274 (moved) or #2275 (moved), we need right-to-left support in our website ccs, and we need a way for the wml (and/or wmi) pages to specify that they want to use it.
Do we have support hidden in our css files already, or is this going to be a big effort?
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items 0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items 0
Link issues together to show that they're related.
Learn more.
Sebastian looked at our css files and guessed that there is no rtl support. :(
Any css enthusiasts out there who can lend a hand? We have some Arabic and Farsi website translations ready to go but our new site format can't handle them.
If somebody could fork our css files to produce similar ones that do rtl in the right places, I'll modify the arabic/farsi pages so they use those css files instead.
I attached a file containing typography.css and layout.css modified for RTL languages. The files only contains the modified CSS that affects RTL languages. It was created using CSSMirror [1] and edited by me. I tested it using Firebug and it seems OK.
I noticed that the text in 'Our Projects' section of the index page doesn't have the right alignment. Adding the following code to typography-rtl.css will fix that:
caption, th, td {text-align: right;}
Also, the 'Who uses Tor?' section of the index page isn't at the left of the main column. Adding the following rule to "#home #maincol":
.sidenav-sub ul li.dropdown a:link, .sidenav-sub ul li.dropdown a:visited { background: url(../images/sidenav-arrow-rtl.gif) right top no-repeat; margin-top: 12px; }
And remove:
.sidenav-sub ul li.dropdown a:link,.sidenav-sub ul li.dropdown a:visited { background-position: right top;}
Also background of the operating system name in the download page isn't shown as intended, so I attached a flipped image. Please replace:
.title { background-position: left top;
with:
.title { background: url(../images/table-title-arrow-rtl.jpg) right top no-repeat;
I have updated the CSS files and added the images (see r24361 and r24362). We still need to figure out a way to handle translations of the .wmi files inside the include/ directory.
Osama wrote in an email that "... the page https://www.torproject.org/about/overview.html still doesn't redirect to the Arabic version, even through I've my browser sit to request Arabic contents".
Osama wrote in an email that "... the page https://www.torproject.org/about/overview.html still doesn't redirect to the Arabic version, even through I've my browser sit to request Arabic contents".
We're just using apache's auto-negotiation of languages. I can confirm it doesn't work for that page when setting my preference to [ar] too. I'll have to debug some more.
A fifth issue is with the calender icon on the index page. In Arabic, the only valid form is 'DD MMMM' while the original date is 'MMMM DD' and as you can see, it currently doesn't look clear with that icon.
This is not a right-to-left issue, I see that the French version of the index page has the same problem with that icon.
There are six issues mentioned in this ticket (in addition to the ones I have already fixed):
It is not possible to translate the titles of the pages:
I'm not sure how to fix this one. The title of a page is set in the header, and the header is simply copied from the English version of the page when the translated page is generated. Suggestions?
The logo on index.html.ar still points to index.html:
The logo on index.html.ar points to index.html.ar. Please confirm this.
Fix ruleset in typography-rtl.css:
Fixed in r24409.
Comments are shown instead of text in translations of download.easy.html:
Fixed in r24414.
Issue with the date format / calendar icon on index.html.ar:
Fixed in r24410 and r24411
Arrows in the navigation on overview.html.ar point the wrong way:
Fixed in r24412.
The logo on index.html.ar still points to index.html:
The logo on index.html.ar points to index.html.ar. Please confirm this.
The logo on index.html.ar was pointing to the Arabic index, but not on about/overview.html.ar and download/download-easy.html.ar. Now, all pages correctly point to the Arabic index.
Another minor issue I found was that the calender background was repeated. To fix this, please replace line 176 and 177 in layout-rtl.css with:
background: url("../images/icon-calendar-flipped.jpg") right top no-repeat;