Changeset 1561 for branches/1.0/bp-core.php
- Timestamp:
- 06/22/2009 07:59:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/bp-core.php
r1527 r1561 21 21 if ( !defined( 'CUSTOM_USER_META_TABLE' ) ) 22 22 define( 'CUSTOM_USER_META_TABLE', $wpdb->base_prefix . 'usermeta' ); 23 24 /* Load the language file */25 if ( file_exists( BP_PLUGIN_DIR . '/bp-languages/buddypress-' . get_locale() . '.mo' ) )26 load_textdomain( 'buddypress', BP_PLUGIN_DIR . '/bp-languages/buddypress-' . get_locale() . '.mo' );27 23 28 24 /* Load the files containing functions that we globally will need. */ … … 1513 1509 1514 1510 /** 1511 * bp_load_buddypress_textdomain() 1512 * 1513 * Load the buddypress translation file for current language 1514 * 1515 * @package BuddyPress Core 1516 */ 1517 function bp_core_load_buddypress_textdomain() { 1518 $locale = apply_filters( 'buddypress_locale', get_locale() ); 1519 $mofile = BP_PLUGIN_DIR . "/bp-languages/buddypress-$locale.mo"; 1520 1521 if ( file_exists( $mofile ) ) 1522 load_textdomain( 'buddypress', $mofile ); 1523 } 1524 add_action ( 'plugins_loaded', 'bp_core_load_buddypress_textdomain', 9 ); 1525 1526 1527 /** 1515 1528 * bp_core_clear_user_object_cache() 1516 1529 *
Note: See TracChangeset
for help on using the changeset viewer.