Hi Ahmad,

Ahmad Alhashemi wrote:
> I've written a tool in Python that will automatically convert CSS from
> LTR to RTL. It's been used successfully to ease the conversion of tens
> of WordPress's themes. How do you think it could be used to help in
> django?
> 
> It basically takes a CSS file and converts all right or left rules to
> the opposite and the same for values. It will preserves comments,
> whitespace, .. etc.

We don't want to maintain 2 (or more, since admin contains multiple)
stylesheets, as they change from time to time (see Wilson's comment on
this thread).

We also can't replace (as is done in replacing themes' sheets) the
original ones, since the system should work on multilingual site (i.e:
have the ability to display ltr _and_ rtl, depending on user's chosen
language).

So the chosen (and implemented) path was to maintain a single rtl
stylesheet which overrides only the ltr specific parts in all stylesheets.

> 
> For Arabic websites, I see that most of them are using the dir
> attribute instead of the direction CSS rule. I've always used dir to
> comply with that W3C tech document (the tech document makes a lot of
> sense to me).

Thanks for the info :) It's already implemented both as a css rule and a
dir attribute, see line 2 of base.html:

http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/templates/admin/base.html#L2

Cheers
--
Meir Kriheli
http://mksoft.co.il

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django I18N" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/Django-I18N
-~----------~----~----~----~------~----~------~--~---

Reply via email to