Use WP_LANG_DIR. fixes #7378 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
50269c4845
commit
2c1f3d9782
|
@ -256,7 +256,7 @@ function load_textdomain($domain, $mofile) {
|
||||||
/**
|
/**
|
||||||
* load_default_textdomain() - Loads default translated strings based on locale
|
* load_default_textdomain() - Loads default translated strings based on locale
|
||||||
*
|
*
|
||||||
* Loads the .mo file in LANGDIR constant path from WordPress root.
|
* Loads the .mo file in WP_LANG_DIR constant path from WordPress root.
|
||||||
* The translated (.mo) file is named based off of the locale.
|
* The translated (.mo) file is named based off of the locale.
|
||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
|
@ -264,7 +264,7 @@ function load_textdomain($domain, $mofile) {
|
||||||
function load_default_textdomain() {
|
function load_default_textdomain() {
|
||||||
$locale = get_locale();
|
$locale = get_locale();
|
||||||
|
|
||||||
$mofile = ABSPATH . LANGDIR . "/$locale.mo";
|
$mofile = WP_LANG_DIR . "/$locale.mo";
|
||||||
|
|
||||||
load_textdomain('default', $mofile);
|
load_textdomain('default', $mofile);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue