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