Are you developing a WordPress theme? Yoav Farhi from Automattic teaches you the basics of right-to-left language support in seven minutes in this lightning session.
Video provided by Blaze Streaming Media.
Yoav Farhi
May 1, 2010
Automattician (29), development (74), featured (133), i18n (3), right to left, RTL, Themes (58), Presentation Video
June 30, 2010 at 12:24 pm |
Is this also available as test somewhere, with examples one can cut and paste?
July 7, 2010 at 11:23 am |
Ira: slides and text on slideshare:
http://www.slideshare.net/yoavf/wordpress-rtl
July 7, 2010 at 4:45 pm |
תודה יואב, מצאתי בינתיים
July 21, 2010 at 11:40 pm |
Hello,
Any simple way to check that the rtl.css is there and make the theme include it? As I am coding a translation plugin with rtl support.
July 22, 2010 at 6:57 pm |
WordPress will automatically load the rtl.css if the blog is set to a RTL language (i.e. Hebrew)
July 22, 2010 at 7:06 pm |
I understand it will, but I want to force it to believe that it is set to RTL, take a look at my plugin site to understand why (mainly language switch)
July 26, 2010 at 8:52 pm
I’ll explain what I need as well, and I think what offer refers to – if one wants to build a multilingual blog, where some of the pages are going RTL and some LTR, what are the appropriate “buttons to press” to override this, so whatever calls “get_bloginfo( ‘text_direction’ )” may get a different answer based on some logic running at the theme level.
July 28, 2010 at 6:52 am |
Setting the global $text_direction value should work.
Take a look at the WPML plugin, it’s already doing that.
July 29, 2010 at 12:05 am
Hmmm?
Don’t see such a global, also don’t see any such usage in wpml
please enlighten me
July 31, 2010 at 11:50 pm |
I guess you know the microsoft/ibm joke with the plane
anyhow – did you mean?
global $wp_locale;
$wp_locale->text_direction = 'rtl';
August 2, 2010 at 2:00 pm |
That should work
August 2, 2010 at 5:44 pm |
Thanks for your help; the latest transposh plugin (0.6.1) now supports this feature.
August 10, 2010 at 8:24 am |
I must say that Indeed the Transposh plugin for WordPress does a great job ‘converting’ almost any theme into a Hebrew/RTL version, plus the convenience of auto translation with the great ability to correct those translated pages after the initial google translate.
Transposh is a must for anyone that need a quick multilingual wordpress website.