[wp-trac] [WordPress Trac] #3136: RTL Support
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 16 17:23:29 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 | Keywords: i18n RTL
----------------------------+-----------------------------------------------
Proposal RTL support through loading of locale-specific CSS. Using "fa"
as an example locale, here's the gist.
* wp-includes/languages/fa.php contains some locale specific variables.
$text_direction specifies the text direction, either 'ltr' or 'rtl'.
* fa.php, if it exists, is loaded into the $wp_locale singleton. The
variables defined in fa.php are turned into instance variables of
$wp_locale.
* When loading the front page, we check to see if the theme includes
fa.css. If so, we load that css after style.css via a 'wp_head' hook.
* If fa.css does not exist and $wp_locale->text_direction is set to rtl
and rtl.css is provided by the theme, load rtl.css.
* For the admin, if the text direction is rtl, load rtl.css from wp-
admin. We would ship rtl.css as part of WP. It is loaded after wp-
admin.css.
Eventually, fa.php could include other locale-specific settings such as
the strings to use when constructing permalinks.
--
Ticket URL: <http://trac.wordpress.org/ticket/3136>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list