Forums

PLEASE help me redefine WP_LANG_DIR (1 post)

  1. cognitions
    Member
    Posted 2 years ago #

    Basically, I want this to work:

    define('WP_LANG_DIR', WP_CONTENT_DIR . '/plugins/myplugin/languages');

    I want to include a function in a plugin that enables users to select the locale (langauge). I am taking the plugin called bogog as the starting point.

    However, I want to distribute some languages (.mo files) with WordPress so people do not have to fiddle around with wp-config and uploading the .mo files.

    But when I include the below in the plugin, wordpress still looks in the default places for the .mo files (wp-includes/languages or wp-content/languages).

Topic Closed

This topic has been closed to new replies.

About this Topic