Creating Right-To-Left language content in a LTR setup

Events happening in the community are now at Drupal community events on www.drupal.org.
escore's picture

I'm working to add support for content in right-to-left languages (arabic, hebrew, farsi etc) on my English interfaced site. Displaying the content works fine, due to some custom code, but when creating new content the input boxes (title, body etc) are LTR, even though I select the corresponding language in the language selection box. How can I correct this? Hooking form_alter?

Comments

Found a slick solution here:

escore's picture

Found a slick solution here: http://www.frequency-decoder.com/demo/detect-text-direction/
Just add some javascript and it will auto-detect if your typing a RTL or LTR language and switch direction automatically.

You can also force it with

nonsie's picture

You can also force it with various editors when you don't want to enable additional js.

Internationalization

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: