- // Import global locale vars set during inclusion of $locale.php.
- foreach ( (array) $this->locale_vars as $var ) {
- if ( isset($GLOBALS[$var]) )
- $this->$var = $GLOBALS[$var];
- }
-
+ // Set text direction.
+ if ( isset( $GLOBALS['text_direction'] ) )
+ $this->text_direction = $GLOBALS['text_direction'];
+ /* translators: 'rtl' or 'ltr'. This sets the text direction for WordPress. */
+ elseif ( 'rtl' == _x( 'ltr', 'text direction' ) )
+ $this->text_direction = 'rtl';