Skip to:
Content

BuddyPress.org

Changeset 1561


Ignore:
Timestamp:
06/22/2009 07:59:53 PM (15 years ago)
Author:
apeatling
Message:

Fixes #770

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/bp-core.php

    r1527 r1561  
    2121if ( !defined( 'CUSTOM_USER_META_TABLE' ) )
    2222    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' );
    2723
    2824/* Load the files containing functions that we globally will need. */
     
    15131509
    15141510/**
     1511 * bp_load_buddypress_textdomain()
     1512 *
     1513 * Load the buddypress translation file for current language
     1514 *
     1515 * @package BuddyPress Core
     1516 */
     1517function 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}
     1524add_action ( 'plugins_loaded', 'bp_core_load_buddypress_textdomain', 9 );
     1525
     1526
     1527/**
    15151528 * bp_core_clear_user_object_cache()
    15161529 *
Note: See TracChangeset for help on using the changeset viewer.