• Resolved christian_gnoth

    (@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: fitcash-de_DE.mo

    but the plugin is still running in english.

    what could be the reason???

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter christian_gnoth

    (@christian_gnoth)

    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);
    }
    add_action('init','my_plugin_init');

    My mo file is named: spbid-en_EN.mo

    and it does not work.

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