From eb99bdcadfcec07b991b6b1f7e55ea0b0332cce1 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 22 Jul 2008 21:09:30 +0000 Subject: [PATCH] Use WP_LANG_DIR. fixes #7378 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@8404 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/l10n.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index f48a4c9ed4..a367bbfbbb 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -256,7 +256,7 @@ function load_textdomain($domain, $mofile) { /** * 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. * * @since 1.5.0 @@ -264,7 +264,7 @@ function load_textdomain($domain, $mofile) { function load_default_textdomain() { $locale = get_locale(); - $mofile = ABSPATH . LANGDIR . "/$locale.mo"; + $mofile = WP_LANG_DIR . "/$locale.mo"; load_textdomain('default', $mofile); }