added WP_LANG and WP_PLUGIN_DIR as parameters