Home › Forums › BP Better Messages › Localization
Tagged: localization, translation
- This topic has 2 replies, 2 voices, and was last updated 6 years, 1 month ago by
Albert.
Viewing 3 posts - 1 through 3 (of 3 total)
- AuthorPosts
- February 10, 2017 at 7:02 pm #4845
Anonymous
InactiveFor those who want to translate this plugin:
- This plugin is ready for localization
- Andrij has mentioned that the strings aren’t stable, because the plugin is still in development. If you do translate, be prepared to revise your language files as the plugin develops
If you want to go ahead with translation, follow these steps:
- Install and activate the Loco Translate plugin
- On the left menu of the admin dashboard, hover Loco Translate, and then click Plugins
- Click BP Better Messages
- Click Create template
- Note: You may need to navigate to /wp-content/plugins/bp-better-messages/ and create /languages/, and then make sure your WordPress site has permissions to use the new /languages/ directory
- Use Loco Translate to edit the strings to your language
February 10, 2017 at 7:08 pm #4846Anonymous
InactiveAndrij, I’m a technical writer (and native English speaker), so I created a localization file just to tidy up some of the word choice and grammar. I can send it over to you if you’re interested. Just shoot me a message.
April 16, 2017 at 2:33 pm #4977Albert
ParticipantHello!
Functionpublic function load_textDomain() { load_plugin_textdomain( 'bp-better-messages', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); }
in bp-better-messages.php calling after outputing BuddyPress nav menu.
As a solution I used this line in my plugin//подгружаем свой языковой файл для bp-better-messages load_plugin_textdomain( 'bp-better-messages', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
- AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.