Changes in trunk/wp-includes/l10n.php [15138:14924]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/l10n.php
r15138 r14924 366 366 $locale = get_locale(); 367 367 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 ); 373 371 } 374 372 … … 512 510 513 511 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 } 517 515 } 518 516
Note: See TracChangeset
for help on using the changeset viewer.