Plone RTL support (Arabic, Hebrew, Persian)
This weekend, we had a small mini-sprint to bring RTL (right-to-left) support to Plone. The work is mostly done, but we would appreciate additional testing and feedback.
For those who are not familiar with RTL, it is the mode used for languages that are written from right to left - in Plone's case these languages are Arabic, Hebrew and Persian.
To make Plone as native as possible for RTL languages, the entire user interface has to be mirrored along the vertical axis.
This is how it looks like (click the image for full-screen view):
So what is happening in this image?
- When you load a page with a left-to-right language, Plone looks the way it usually does.
- We click the Iran flag, and get:
- Persian translation of Plone in the UI
- A mirrored Plone, using only CSS
- All text is running from right to left
- Flipped images for those images that are directional
This is totally transparent to the user, and Just Works. In addition, it speaks volumes about the flexibility and power of Plone's HTML and CSS when we can add something like this in less than a day.
Want to test it?
You will need the following to test the RTL branch of Plone:
- A recent checkout of
CMFPlonefrom thertl-fixes-2_0branch - A recent checkout of
PlacelessTranslationServiceto get the new RTL header parsing of .po files - A recent checkout of the translation files for RTL languages - the important thing is that they have
"X-Is-RTL: yes\n"in the header
Future directions
The intention is to merge this to the main Plone development branches as soon as it has undergone some testing.
I would like to thank the RTL people for finally getting me to implement this, especially Mohsen Moeeni (from Iran, Persian translator for Plone) and Mohammed Elzubeir (from UAE, one of the Arabic translators) - and to Christian "Tiran" Heimes for the necessary changes to PTS. Thanks for the hard work, guidance and persistence. :)
-- Alexander Limi, Plone Solutions
Could not find Arabic related code
Hi,
This fix sounds good for what I need, but when I searched the SVN repository I could not find the above mentioned branch / files.
Has this fix already been merged within 2.0.5 / 2.1 code? Where can I find the (CSS and main template?) fix for RTL texts in Arabic?
Many thanks in advance
Included in 2.1
Included with Plone 2.1, which you can download from the products area.
2.05 compatibility/availability
Yes, but are the RTL fixes available for 2.05?
Some of the changes
The first changes were done here, but those will only get you halfway there:
http://svn.plone.org/svn/plone/CMFPlone/branches/merged/rtl-fixes-2_0/
To get proper RTL support, you really have to upgrade to 2.1.
beginner information needed
with my respect, I would like to ask wherecan i find detailed steps lead to this RTL....regarding this information: # recent checkout of CMFPlone from the rtl-fixes-2_0 branch # A recent checkout of PlacelessTranslationService to get the new RTL header parsing of .po files # A recent checkout of the translation files for RTL languages - the important thing is that they have "X-Is-RTL: yes\n" in the header thanks

kudos
Ok, I would like to say I was very impressed.
First, that you could actually do it as said - with the sharp persons in a day, on the framework.
Just Worksindeed!Equal first, that good-hearted persons got together to do this specific thing, right now, in a world grown cautious.
I don't have a slogan for each of you on that, but can offer good respect.
Regards,
Narration