Info
- 2 posts
- 2 voices
- Started 4 years ago by anjap
- Latest reply from Detective
- This topic is not resolved
Howto activate a mo file for a plugin
-
- Posted 4 years ago #
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-pluginBut 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 4 years ago #
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-messagesi have a file called bb-pm-es_ES.mo. As you can see, i use the localees_ES. -
You must log in to post.