[wp-trac] [WordPress Trac] #19600: Core should know which locales are RTL

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 18 21:25:29 UTC 2011


#19600: Core should know which locales are RTL
----------------------------+-----------------
 Reporter:  nacin           |      Owner:
     Type:  task (blessed)  |     Status:  new
 Priority:  normal          |  Milestone:  3.4
Component:  I18N            |    Version:
 Severity:  normal          |   Keywords:
----------------------------+-----------------
 Currently an RTL locale needs to specify `$text_direction = 'rtl';` in a
 $locale.php file. In the interest of eliminating the ''need'' for
 $locale.php files, core should keep a list of RTL locales.

 `$text_direction` would remain functional, and we're not killing
 $locale.php -- just trying to cover its primary uses.

 While a simple array of RTL locales can be maintained now, there might
 reach a point where it will be easier to include locales/locales.php in
 core. (Indeed, mu_dropdown_languages() would benefit from this.) In that
 case, RTL could be read from there.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19600>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list