WordPress.org

Make WordPress Core

Changeset 8405


Ignore:
Timestamp:
07/22/08 21:10:04 (6 years ago)
Author:
ryan
Message:

Use WP_LANG_DIR. fixes #7378 for 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-includes/l10n.php

    r8065 r8405  
    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.