Plugin Translation in admin panel
-
Hello my freinds
I use .mo and .po files for translation my plugin but
it work in front end and it can not works in admin panel.
My plugin create Visual Composer module and I want to translate VC module
setting page , but it does’nt work.
I need your help.
Best Wishes,
Emadi
——————
add_action(‘plugins_loaded’,’vc_textdomain’);
function vc_textdomain() {
load_plugin_textdomain( ‘vc-anker’, false, dirname( plugin_basename(__FILE__) ) . ‘/lang/’ );
}
——————–
vc_map([
‘name’ => Config::$vc_name,
‘description’ => Config::$vc_description,
‘base’ => Config::$short_array[0],
‘category’ => Config::$vc,
“icon” => plugins_url(“../assets/icon/icon_ankerstart.png” , __FILE__),
‘params’ => [
[
‘type’ => ‘attach_image’,
‘heading’ => ‘Icon des Ankers’,
‘param_name’ => ‘cancom_anker_icon’,
********* here I want to translation work fine******************
‘description’ => _(‘Hier k?nnen Sie das Icon/Bild des Ankers festlegen’, ‘vc-anker’),
- The topic ‘Plugin Translation in admin panel’ is closed to new replies.