Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r15138 r14924  
    366366    $locale = get_locale();
    367367
    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     }
     368    $mofile = WP_LANG_DIR . "/$locale.mo";
     369
     370    return load_textdomain( 'default', $mofile );
    373371}
    374372
     
    512510
    513511    foreach( (array)glob( ( is_null( $dir) ? WP_LANG_DIR : $dir ) . '/*.mo' ) as $lang_file ) {
    514         $lang_file = basename($lang_file, '.mo');
    515         if ( 0 !== strpos( $lang_file, 'continents-cities' ) && 0 !== strpos( $lang_file, 'ms-' ) )
    516             $languages[] = $lang_file;
     512        if ( false === strpos( $lang_file, 'continents-cities' ) ) {
     513            $languages[] = basename($lang_file, '.mo');
     514        }
    517515    }
    518516
Note: See TracChangeset for help on using the changeset viewer.