rust-lang / www.rust-lang.org

The home of the Rust website
https://www.rust-lang.org
Apache License 2.0
369 stars 288 forks source link

Support RTL languages #869

Open Manishearth opened 5 years ago

Manishearth commented 5 years ago

We have Fluent support for localizing the website, but I suspect the website would look terrible for any RTL language.

CSS is powerful enough that we should be able to do this just using CSS (i.e, we shouldn't have to generate different per-language layouts, we generate the same layout with different CSS being applied).

One way to start is to generate a testing localization like xx-AU that's basically English marked as RTL. (Android used to have a cibarA localization for this). Then, start going through and seeing what's broken, and fixing it with the appropriate CSS.

It might just help to start an Arabic/Hebrew translation team first so they can start reporting bugs.

YasirAsiri commented 5 years ago

I can help with Arabic

Manishearth commented 5 years ago

@YasirAsiri For actually translating things you'd have to form a team (https://github.com/rust-lang/www.rust-lang.org/blob/master/TRANSLATIONS.md).

This issue is more about the technical changes to the design necessary to make RTL languages work. But having a significant portion of the website already translated would be nice.

Manishearth commented 5 years ago

Also, make sure you're on the same page about which kind of Arabic. Preferably Modern Standard Arabic if possible.

YasirAsiri commented 5 years ago

@Manishearth Alright, I will see if I can form the team soon

skade commented 5 years ago

@yasirAsiri It is still perfectly fine to use arabic for experimentation/validation, to be clear.

Manishearth commented 5 years ago

Yeah, what I can do is set up an xx-LTR language on Pontoon for testing, and you can start translating things yourself. Alternatively if you can find three people you can set up a real team for Arabic.