Support » Plugins » load_plugin_textdomain

  • Resolved christian_gnoth


    I am using in a plugin:

    $plugin_path = dirname(plugin_basename(__FILE__)) . '/lang';
    load_plugin_textdomain( 'fitcash', false, $plugin_path );

    to set the lagnuage folder for the plugin. my blog is running in german language.

    the mo file is named:

    but the plugin is still running in english.

    what could be the reason???

Viewing 2 replies - 1 through 2 (of 2 total)
  • its working….

    How You resolve this?
    I have code:

    // set text domain
    function my_plugin_init() {
    	$langDir = plugin_basename(dirname(__FILE__)) . '/lang';
    	load_plugin_textdomain('spbid', false, $langDir);

    My mo file is named:

    and it does not work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘load_plugin_textdomain’ is closed to new replies.