translation
-
Hi, i’ve done a .mo file, only problem is i can’t load the translation. Is there any trick i’ve lost? The function bellow is well launch, my .mo is correct, but that’s all.
In bp-follow.php<?php
require ( dirname( __FILE__ ) . ‘/_inc/bp-follow-templatetags.php’ );
require ( dirname( __FILE__ ) . ‘/_inc/bp-follow-classes.php’ );
require ( dirname( __FILE__ ) . ‘/_inc/bp-follow-hooks.php’ );
require ( dirname( __FILE__ ) . ‘/_inc/bp-follow-widgets.php’ );/**
* bp_follow_load_textdomain()
*
* Loads the translations for the plugin.
*
*/
function bp_follow_load_textdomain() {
$plugin_dir = basename(dirname(__FILE__));
load_plugin_textdomain( ‘bp-follow’, null, $plugin_dir );
}
add_action ( ‘init’, ‘bp_follow_load_textdomain’);
You must be logged in to reply to this topic.