Plugin translation not working on back end
-
Hey i am running this function to add translation to my plugin:
function yydev_lang() { load_plugin_textdomain( 'yydev_accessibility', false, basename( dirname( __FILE__ ) ) . '/languages' ); } // function yydev_lang() { add_action( 'plugins_loaded', 'yydev_lang' );
I have notices that that i run translation code on the front added with ‘wp_footer’ action for example it works well but on some parts on the admin panel i can’t get it to work.
For example right after the plugin if i try to run translation code it doesn’t works.
Is there a way to make the translation work globally on the admin panel as well?Right after the language load i try to run a function to insert translated data into db with the translated text but it doesn’t work.
function yydev_accessibility_create_database() { require_once('include/install.php'); } // function yydev_accessibility_create_database() { register_activation_hook(__FILE__, 'yydev_accessibility_create_database');
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Plugin translation not working on back end’ is closed to new replies.