LifterLMS::localize()

Load Localization files


Description Description

The first loaded file takes priority

Files can be found in the following order: WP_LANG_DIR/lifterlms/lifterlms-LOCALE.mo WP_LANG_DIR/plugins/lifterlms-LOCALE.mo


Return Return

(void)


Top ↑

Source Source

File: lifterlms.php

	public function localize() {

		// load locale
		$locale = apply_filters( 'plugin_locale', get_locale(), 'lifterlms' );

		// load a lifterlms specific locale file if one exists
		load_textdomain( 'lifterlms', WP_LANG_DIR . '/lifterlms/lifterlms-' . $locale . '.mo' );

		// load localization files
		load_plugin_textdomain( 'lifterlms', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );

	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.





Permalink: