Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r14924 r15138  
    366366    $locale = get_locale();
    367367
    368     $mofile = WP_LANG_DIR . "/$locale.mo";
    369 
    370     return load_textdomain( 'default', $mofile );
     368    load_textdomain( 'default', WP_LANG_DIR . "/$locale.mo" );
     369
     370    if ( is_multisite() || ( defined( 'WP_NETWORK_ADMIN_PAGE' ) && WP_NETWORK_ADMIN_PAGE ) ) {
     371        load_textdomain( 'default', WP_LANG_DIR . "/ms-$locale.mo" );
     372    }
    371373}
    372374
     
    510512
    511513    foreach( (array)glob( ( is_null( $dir) ? WP_LANG_DIR : $dir ) . '/*.mo' ) as $lang_file ) {
    512         if ( false === strpos( $lang_file, 'continents-cities' ) ) {
    513             $languages[] = basename($lang_file, '.mo');
    514         }
     514        $lang_file = basename($lang_file, '.mo');
     515        if ( 0 !== strpos( $lang_file, 'continents-cities' ) && 0 !== strpos( $lang_file, 'ms-' ) )
     516            $languages[] = $lang_file;
    515517    }
    516518
Note: See TracChangeset for help on using the changeset viewer.