Changeset 4934
- Timestamp:
- 05/20/2013 08:35:02 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bbpress.php
r4930 r4934 437 437 * @since bbPress (r2596) 438 438 * 439 * @uses apply_filters() Calls 'bbpress_locale' with the 440 * {@link get_locale()} value 439 * @uses apply_filters() Calls 'plugin_locale' with {@link get_locale()} value 441 440 * @uses load_textdomain() To load the textdomain 442 * @return bool True on success, false on failure443 441 */ 444 442 public function load_textdomain() { 445 443 446 444 // Traditional WordPress plugin locale filter 447 $locale = apply_filters( 'plugin_locale', 445 $locale = apply_filters( 'plugin_locale', get_locale(), $this->domain ); 448 446 $mofile = sprintf( '%1$s-%2$s.mo', $this->domain, $locale ); 449 447 … … 453 451 454 452 // Look in global /wp-content/languages/bbpress folder 455 if ( file_exists( $mofile_global ) ) { 456 return load_textdomain( $this->domain, $mofile_global ); 453 load_textdomain( $this->domain, $mofile_global ); 457 454 458 455 // Look in local /wp-content/plugins/bbpress/bbp-languages/ folder 459 } elseif ( file_exists( $mofile_local ) ) { 460 return load_textdomain( $this->domain, $mofile_local ); 461 } 462 463 // Nothing found 464 return false; 456 load_textdomain( $this->domain, $mofile_local ); 465 457 } 466 458
Note: See TracChangeset
for help on using the changeset viewer.