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)
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' ); }
Expand full source code Collapse full source code View on GitHub
User Contributed Notes User Contributed Notes
Permalink: