Personal tools
You are here: Home News Plone RTL support (Arabic, Hebrew, Persian)
Document Actions

Plone RTL support (Arabic, Hebrew, Persian)

by Alexander Limi last modified September 6, 2004 - 02:38

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):

Plone in RTL mode

So what is happening in this image?

  1. When you load a page with a left-to-right language, Plone looks the way it usually does.
  2. 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 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

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

kudos

Posted by Narration at September 7, 2004 - 15:20

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 Works indeed!

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

Could not find Arabic related code

Posted by Richard Maciver at September 15, 2005 - 07:12

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

Posted by Alexander Limi at September 15, 2005 - 19:10

Included with Plone 2.1, which you can download from the products area.

2.05 compatibility/availability

Posted by Sean Fulmer at September 15, 2005 - 23:02

Yes, but are the RTL fixes available for 2.05?

Some of the changes

Posted by Alexander Limi at September 15, 2005 - 23:18

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

Posted by Anas at August 9, 2006 - 10:23

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

This announcement is from 2004

Posted by Alexander Limi at August 11, 2006 - 00:31
Plone has supported RTL in the standard install for a long time. This is a news item describing how to test the development code at the time.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by