WordPress.org

Make WordPress Core

Changeset 8404


Ignore:
Timestamp:
07/22/2008 09:09:30 PM (10 years ago)
Author:
ryan
Message:

Use WP_LANG_DIR. fixes #7378 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/l10n.php

    r8065 r8404  
    257257 * load_default_textdomain() - Loads default translated strings based on locale
    258258 *
    259  * Loads the .mo file in LANGDIR constant path from WordPress root.
     259 * Loads the .mo file in WP_LANG_DIR constant path from WordPress root.
    260260 * The translated (.mo) file is named based off of the locale.
    261261 *
     
    265265    $locale = get_locale();
    266266
    267     $mofile = ABSPATH . LANGDIR . "/$locale.mo";
     267    $mofile = WP_LANG_DIR . "/$locale.mo";
    268268
    269269    load_textdomain('default', $mofile);
Note: See TracChangeset for help on using the changeset viewer.