bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Howto activate a mo file for a plugin

(2 posts)
  • Started 3 months ago by anjap
  • Latest reply from Detective
  • This topic is not resolved
  1. anjap
    Member

    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)

    Posted 3 months ago #
  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.

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.