Set language with WPLANG.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bbd61f92a5
commit
b982580f52
|
@ -12,6 +12,12 @@ define('DB_HOST', 'localhost'); // 99% chance you won't need to change this
|
||||||
|
|
||||||
$table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_'
|
$table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_'
|
||||||
|
|
||||||
|
// Change this to localize WordPress. A corresponding MO file for the
|
||||||
|
// chosen language must be installed to wp-includes/languages.
|
||||||
|
// For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
|
||||||
|
// to enable German lanuage support.
|
||||||
|
define ('WPLANG', '');
|
||||||
|
|
||||||
/* Stop editing */
|
/* Stop editing */
|
||||||
|
|
||||||
$server = DB_HOST;
|
$server = DB_HOST;
|
||||||
|
@ -23,4 +29,4 @@ define('ABSPATH', dirname(__FILE__).'/');
|
||||||
|
|
||||||
// Get everything else
|
// Get everything else
|
||||||
require_once(ABSPATH.'wp-settings.php');
|
require_once(ABSPATH.'wp-settings.php');
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -1,8 +1,16 @@
|
||||||
<?php
|
<?php
|
||||||
$curpath = dirname(__FILE__).'/';
|
$curpath = dirname(__FILE__).'/';
|
||||||
|
|
||||||
// The locale is hard-coded here for now.
|
$locale = '';
|
||||||
$locale = 'en_US';
|
|
||||||
|
// WPLANG is defined in wp-config.
|
||||||
|
if (defined('WPLANG')) {
|
||||||
|
$locale = WPLANG;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($locale)) {
|
||||||
|
$locale = 'en_US';
|
||||||
|
}
|
||||||
|
|
||||||
$mofile = $curpath . "/languages/$locale.mo";
|
$mofile = $curpath . "/languages/$locale.mo";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue