You have to replace the call to BBpress’ language file.
A good place to do this is a language specific file in your general languages directory. For Turkish it would probably be a file named tr_TR.php
. This will be loaded automatically and only if it matches the language of your blog. It will not be overwritten.
BBPress doesn’t use the function load_plugin_textdomain
, it uses load_textdomain
instead. Here you can find a filter:
$mofile = apply_filters( 'load_textdomain_mofile', $mofile, $domain );
So in your language php file just add a filter to change the path:
function load_bbpress_tr_mofile( $mofile, $domain )
{
if ( 'bbpress' == $domain )
{
// replace this. :)
return 'FULL_PATH_TO_YOUR_FILE';
}
return $mofile;
}
add_filter( 'load_textdomain_mofile', 'load_bbpress_tr_mofile', 10, 2 );
Related Posts:
- Why load_textdomain work but not load_plugin_textdomain?
- Language Translation is not working?
- How to set a custom title per language?
- WordPress change Language not working
- Force language in translate function
- How to handle a WordPress blog with articles in different languages?
- Language translation on a fresh english installation
- I have English words in Kurdish pages
- How do I add languages?
- How do I change a plugin language of only one page?
- WordPress Site in Multiple Languages
- How to set back-end language per user?
- What is the best page ordering plugin that works well with WPML? [closed]
- Edit plugin without hooks in functions.php
- Disable qTranslate by post type in admin + disable per page / post ID on front-end [closed]
- Force Plugin to English Translation
- Add code into on a per page/post basis
- How can I pass a variable to wp_ajax action?
- What is the purpose of adding a .po file?
- Qtranslate displays empty categories with get_categories()
- How to use load_plugin_textdomain from within a theme
- allow arabic letters when register new account
- Setting up a multilingual wordpress site
- How WordPress knows where to find locale files?
- Prepare plugin options for multi-lingual support
- WordPress language switcher
- Popup Cookie WordPress select language and section (Elementor)
- Why does deactivating a plugin cause error: “You do not have sufficient permissions to access this page”?
- Possible to add a language file to a plugin without adding .po/.mo files to plugin directory?
- load_theme_textdomain path
- More than one text-domain is being used because of the included templates for plugins
- how to load the language file in plugin?
- Change the backend language of a single plugin
- How to query the custom fields by language?
- How can I check if on specific plugin generated page or child
- Multi language site [closed]
- Custom rewrite rules not working with WPML
- polylang + category/tag custom language link
- How WordPress is able to change locale without using setlocale
- BbPress Register Page in Breadcrumbs
- Xili language plugin not showing language flag [closed]
- bbPress plugin: forum lists not showing in correct order? [closed]
- Can a plugin be run in a different language than WordPress?
- Translation plugin to translate another plugins
- Duplicate New User Registration notices (BuddyPress and bbPress both installed)
- Display site language setting in source code
- Plugin translation not working on WordPress.org
- Translation to ACF relationship field
- how to set parent forum link to menu page?
- How to completely hide a WordPress/BuddyPress Install? [closed]
- How do I determine if the user who registered is not spam?
- How to enable WPML in BuddyPress Multilingual Plugin in a single website? [closed]
- is_front_page breaks with url parameters generated by a plugin
- Translation for a text that is not printed on the screen
- Identify User Language, Redirect to the corresponding page and Save the chosen language as Cookie
- Change language in SiteOrigin Widgets
- How to implement data residency in my WordPress site
- How to translate wordpress blog to other languages?
- WPML – Stop language redirection in initial load
- How do I make my site multi language? [closed]
- How to change WordPress core language using Loco Translate?
- WPML – Hook when language is switched (change user language)
- return bbp_get_topic_author_id as integer
- WPGlobus Multilingual – REST API
- Forum creation with bbpress and front end
- Function get_locale always returns en_US in plugin?
- I have a plugin that applies a Google translation to my page–how does the browser know which language to display?
- Translation plugin with default language?
- Change localization only for plugin
- How to get the list of languages provided by a plugin
- phpBB 3 to bbPress
- How do I to override login redirect on specific pages?
- GTranslate Plugin – Showing Different Codes With if-else
- Remove embed url for internal links
- The Best Multilanguage Plugin supporting the FSE [closed]
- How to create a buddypress group automatically if a topic is created
- how to show selected options drop down menu values in attributes field in after saving post.php
- fatal erro in one line if statment in wordpress plugin [Solved]
- Add different sizes packaging boxes to orders plugin
- Can’t use updated variables in handle function
- Am having issues intergrating this api into my wordpress site, any help please?
- Social login authentication via wordpress rest api
- Multiple Post Thumbnails Not Returning URL for Background Image
- Shortcode to do math with url variables
- WordPress plugin header already sent
- Buffered output in chunks and shortcode – how do I achieve that?
- Transfer wordpress comments form on another post [closed]
- Achieve the following layout
- Change email notification language based on the site language in WPForms
- Relationship field only loads items to administrator
- Is it possible to create post in wordpress using postman?
- How does one add numbers to an admin menu?
- wp_enqueue_script doesn’t load JS in plugin
- AI Code For OpenAI
- How to Deobfuscate a sourcecop protected WordPress plugin?
- Is there any WordPress Plugin that provides video editing from front end side? [closed]
- Disappearing plugins
- Order custom post type by posts with most likes first
- WordPress website is redirecting on some different shopping page
- Pulsing circle before the post title (Breaking news flash)