Forum Replies Created
-
In reply to: bbPress Language Files
hi brother,
I created in /wp-content/languages/ a bbpress directory (/wp-content/languages/bbpress) and I updated bbpress-tr_TR.mo and bbpress-tr.po files to this directory and than I updated the mo and po /wp-content/plugins/bbpress/bbp-languages
I changed bbpress.php load_textdomain() function (line 524 ATM).
public function load_textdomain() {
// Allow locale to be filtered
$locale = apply_filters( ‘bbpress_locale’, get_locale() );
// Get mo file name
$mofile = sprintf( ‘bbpress-tr_TR.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 ) )
return load_textdomain( ‘bbpress-tr_TR.po’, $mofile_local );
// Look in global /wp-content/languages/ folder
elseif ( file_exists( $mofile_global ) )
return load_textdomain( ‘bbpress-tr_TR.po’, $mofile_global );
// Nothing found
return false;
}
I use bbpress plugin 2.0.1
My WP version is 3.2.1
%100 I did somethinh wrong because my english is not very good.
What can be going wrong?
Thank you.