Ticket #6132: i18n-rtl-no-config.diff
| File i18n-rtl-no-config.diff, 2.7 KB (added by , 17 years ago) |
|---|
-
wp-includes/functions.php
2376 2376 $title = 'WordPress › Error'; 2377 2377 } 2378 2378 2379 $text_direction = 'ltr'; 2380 if ( isset($r['text_direction']) && $r['text_direction'] == 'rtl' ) $text_direction = 'rtl'; 2381 if ( ( $wp_locale ) && ( 'rtl' == $wp_locale->text_direction ) ) $text_direction = 'rtl'; 2379 2382 ?> 2380 2383 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2381 2384 <html xmlns="http://www.w3.org/1999/xhtml" <?php if ( function_exists( 'language_attributes' ) ) language_attributes(); ?>> … … 2384 2387 <title><?php echo $title ?></title> 2385 2388 <link rel="stylesheet" href="<?php echo $admin_dir; ?>css/install.css" type="text/css" /> 2386 2389 <?php 2387 if ( ( $wp_locale ) && ( 'rtl' == $wp_locale->text_direction )) : ?>2390 if ( 'rtl' == $text_direction ) : ?> 2388 2391 <link rel="stylesheet" href="<?php echo $admin_dir; ?>css/install-rtl.css" type="text/css" /> 2389 2392 <?php endif; ?> 2390 2393 </head> -
wp-load.php
43 43 require_once( ABSPATH . '/wp-includes/classes.php' ); 44 44 require_once( ABSPATH . '/wp-includes/functions.php' ); 45 45 require_once( ABSPATH . '/wp-includes/plugin.php' ); 46 wp_die(sprintf(/*WP_I18N_NO_CONFIG*/"There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='%ssetup-config.php' class='button'>Create a Configuration File</a>"/*/WP_I18N_NO_CONFIG*/, $path), /*WP_I18N_ERROR_TITLE*/"WordPress › Error"/*/WP_I18N_ERROR_TITLE*/); 46 $text_direction = /*WP_I18N_TEXT_DIRECTION*/"ltr"/*/WP_I18N_TEXT_DIRECTION*/; 47 wp_die(sprintf(/*WP_I18N_NO_CONFIG*/"There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='%ssetup-config.php' class='button'>Create a Configuration File</a>"/*/WP_I18N_NO_CONFIG*/, $path), /*WP_I18N_ERROR_TITLE*/"WordPress › Error"/*/WP_I18N_ERROR_TITLE*/, array('text_direction' => $text_direction)); 47 48 48 49 } 49 50