Forums

Join
bbPress Support ForumsTroubleshootingHowto activate a mo file for a plugin

Info

Howto activate a mo file for a plugin

  1. I have used this tutorial to create a mo file for a plugin:
    http://weblogtoolscollection.com/archives/2007/08/27/localizing-a-wordpress-plugin-using-poedit/

    But I cann't activate it :-(

    I have found a old topic on this issue:
    http://bbpress.org/forums/topic/how-can-i-define-a-mo-file-for-a-plugin

    But I cann't see how to "name the mo files into our main mo file"

    So can anyone tell me how to do this
    (I'm using vers. 9.0.1)

  2. Hi, this works for me:

    add_action('bb_init', 'pm_initialize');
    
    function pm_initialize() {
    	load_plugin_textdomain('bb-pm', BB_PLUGIN_DIR . 'private-messages');
    }

    Inside the folder private-messages i have a file called bb-pm-es_ES.mo. As you can see, i use the locale es_ES.

  3. You must log in to post.