Home Forums BP Better Messages Localization

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4845
    Anonymous
    Inactive

    For 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:

    1. Install and activate the Loco Translate plugin
    2. On the left menu of the admin dashboard, hover Loco Translate, and then click Plugins
    3. Click BP Better Messages
    4. 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
      #4846
      Anonymous
      Inactive

      Andrij, 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.

      #4977
      Albert
      Participant

      Hello!
      Function

              public 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' );
      
    Viewing 3 posts - 1 through 3 (of 3 total)
    • You must be logged in to reply to this topic.