Community

Connecting WordPress People

Localization

DMDeleted member 2 replies 0 views 2 readers

  1. New
    #1

    For those who want to translate this plugin:

    – This plugin is ready for localization

    – Andrij has mentioned (wordplus.org/community/forum/bp-better…) 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 (en-ca.wordpress.org/plugins/loco-trans…)

    – 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

    More reactions: press the Down arrow
    views
  2. New
    #2

    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.

    More reactions: press the Down arrow
  3. New
    #3

    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' );

    More reactions: press the Down arrow
0