[OSM-dev] RTL language support for osm.org

Tom Hughes tom at compton.nu
Wed Apr 7 15:58:06 BST 2010


On 07/04/10 15:31, Claudius wrote:

> I would like to add RTL language support to the openstreetmap.org
> website. My approach would be to create a new rtl-specific CSS and load
> that for all RTL languages.
>
> I've taken a look at how mediawiki does that but they seem to have
> several RTL specific optimizations in different CSS. I would just
> rewrite the current stylesheet to move sidebar to th right and map to
> the left and so on for the subpages.

Well step one is, do not have a completely separate style sheet.

You want to separate out those things which need to be different from 
those things which are the same, not just duplicate everything.

Step two is to realise that, for the main home page, you will almost 
certainly have to do more than just chance the CSS as CSS limitations 
mean that some of the styling (mostly the positioning of the map) is 
done dynamically by javascript when the page loads.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://compton.nu/




More information about the dev mailing list