bbpress_locale

  • apply_filters( 'bbpress_locale', get_locale() )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbpress.php :: Trac Source Line: 527
      	 *
      	 * @uses apply_filters() Calls 'bbpress_locale' with the
      	 *                        {@link get_locale()} value
      	 * @uses load_textdomain() To load the textdomain
      	 * @return bool True on success, false on failure
      	 */
      	public function load_textdomain() {
      
      		// Allow locale to be filtered
      		$locale = apply_filters( 'bbpress_locale', get_locale() );
      
      		// Get mo file name
      		$mofile = sprintf( 'bbpress-%s.mo', $locale );
      
      		// Setup paths to current locale file
      		$mofile_local  = $this->lang_dir . '/' . $mofile;
      		$mofile_global = WP_LANG_DIR . '/bbpress/' . $mofile;
      
      		// Look in local /wp-content/plugins/bbpress/bbp-languages/ folder
      		if ( file_exists( $mofile_local ) )
      

Comments are closed.