diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-09-19 16:06:15 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-09-19 16:06:15 +0000 |
commit | ae484584028c752efb5faa4c02259556e853d26e (patch) | |
tree | ef88d82a06a9226b332b74b013b4d85a896852b0 /wp-includes/locale.php | |
parent | 882678aa9ed2d369d1a4c66696df002f44aae889 (diff) | |
download | wordpress-mu-ae484584028c752efb5faa4c02259556e853d26e.tar.gz wordpress-mu-ae484584028c752efb5faa4c02259556e853d26e.tar.xz wordpress-mu-ae484584028c752efb5faa4c02259556e853d26e.zip |
WP Merge to 4197
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@761 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/locale.php')
-rw-r--r-- | wp-includes/locale.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/wp-includes/locale.php b/wp-includes/locale.php index 9fc37a4..4b6c654 100644 --- a/wp-includes/locale.php +++ b/wp-includes/locale.php @@ -12,6 +12,9 @@ class WP_Locale { var $meridiem; + var $text_direction = ''; + var $locale_vars = array('text_direction'); + function init() { // The Weekdays $this->weekday[0] = __('Sunday'); @@ -83,6 +86,21 @@ class WP_Locale { $this->meridiem['pm'] = __('pm'); $this->meridiem['AM'] = __('AM'); $this->meridiem['PM'] = __('PM'); + + $this->_load_locale_data(); + } + + function _load_locale_data() { + $locale = get_locale(); + $locale_file = ABSPATH . "wp-includes/languages/$locale.php"; + if ( !file_exists($locale_file) ) + return; + + include($locale_file); + + foreach ( $this->locale_vars as $var ) { + $this->$var = $$var; + } } function get_weekday($weekday_number) { |