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
- Multilingual WordPress Website with multiple source 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
- BBPress Customization with Custom Plugin
- Change homepage logo for each site multisite setup
- Multilanguange with domaine
- BBpress – No topics & reply post_type accessible for admin users
- How to view Plugin Manager in Notepad++
- Use Notepad++ as HEX-Editor
- fix the error : Plugin with id ‘com.android.application’ not found
- Best collection of code for your 'functions.php' file [closed]
- Tips for using WordPress as a CMS? [closed]
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- Updates for a private plugin?
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- Best way to initiate a class in a WP plugin?
- Which banner plugin is this? [closed]
- Upgrade 4.5.2 to 4.5.3 deleting row in wp_options table
- Woocommerce – adding variations to variations [closed]
- Best way to include wp-config.php
- similar of my posts in all over the internet sites and blogs [closed]
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Create custom page templates with plugins?
- Custom Post Type Templates from Plugin Folder?
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- Disable update notification for individual plugins