buddypress_locale

  • apply_filters( 'buddypress_locale', get_locale() )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-functions.php :: Trac Source Line: 892
      }
      add_action( 'wp_footer', 'bp_core_print_generation_time' );
      
      /**
       * Load the buddypress translation file for current language
       *
       * @package BuddyPress Core
       */
      function bp_core_load_buddypress_textdomain() {
      	$locale        = apply_filters( 'buddypress_locale', get_locale() );
      	$mofile        = sprintf( 'buddypress-%s.mo', $locale );
      	$mofile_global = WP_LANG_DIR . '/' . $mofile;
      	$mofile_local  = BP_PLUGIN_DIR . '/bp-languages/' . $mofile;
      
      	if ( file_exists( $mofile_global ) )
      		return load_textdomain( 'buddypress', $mofile_global );
      	elseif ( file_exists( $mofile_local ) )
      		return load_textdomain( 'buddypress', $mofile_local );
      	else
      		return false;
      

Comments are closed.