[wp-trac] Re: [WordPress Trac] #3136: RTL Support
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 18 12:36:03 GMT 2006
#3136: RTL Support
----------------------------+-----------------------------------------------
Reporter: ryan | Owner: ryan
Type: defect | Status: new
Priority: normal | Milestone: 2.1
Component: Administration | Version: 2.1
Severity: normal | Resolution:
Keywords: i18n RTL |
----------------------------+-----------------------------------------------
Comment (by Sewar):
Why we use two different CSS files at the same time?
In [http://wordpress-ar.sourceforge.net WP-Arabic] we was changed a lot
parts in [http://trac.wordpress.org/browser/trunk/wp-admin/wp-admin.css
wp-admin.css] ([http://wordpress-ar.sourceforge.net/wp-admin/wp-admin.css
Arabic version]) to make it RTL and using Arabic fonts, i think the best
way is:
{{{
<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
<link rel="stylesheet" href="<?php echo get_option('siteurl')
?>/wp-admin/wp-admin-rtl.css?version=<?php bloginfo('version'); ?>"
type="text/css" />
<?php else: ?>
<link rel="stylesheet" href="<?php echo get_option('siteurl')
?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>"
type="text/css" />
<?php endif; ?>
}}}
the same thing for themes
And we need to change HTML tag:
{{{
<html xmlns="http://www.w3.org/1999/xhtml">
}}}
To:
{{{
<html xmlns="http://www.w3.org/1999/xhtml" dir="rtl" xml:lang="ar"
lang="ar">
}}}
BTW, don't forget TinyMCE, there are variable "directionality" for RTL in
initArray should be synced with RTL setting, and mce_buttons should be
reversed.
--
Ticket URL: <http://trac.wordpress.org/ticket/3136>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list