WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] load_plugin_textdomain (3 posts)

  1. christian_gnoth
    Member
    Posted 3 years ago #

    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???

  2. christian_gnoth
    Member
    Posted 3 years ago #

    its working....

  3. bogastyle
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic