LifterLMS::localize()
Localize the plugin
Description Description
Language files can be found in the following locations (The first loaded file takes priority):
-
wp-content/languages/lifterlms/lifterlms-{LOCALE}.mo
This is recommended "safe" location where custom language files can be stored. A file stored in this directory will never be automatically overwritten.
-
wp-content/languages/plugins/lifterlms-{LOCALE}.mo
This is the default directory where WordPress will download language files from the WordPress GlotPress server during updates. If you store a custom language file in this directory it will be overwritten during updates.
-
wp-content/plugins/lifterlms/languages/lifterlms-{LOCALE}.mo
This is the the LifterLMS plugin directory. A language file stored in this directory will be removed from the server during a LifterLMS plugin update.
Return Return
(void)
Source Source
File: class-lifterlms.php
* @return void */ public function localize() { require_once LLMS_PLUGIN_DIR . 'includes/functions/llms-functions-l10n.php'; llms_load_textdomain( 'lifterlms' );
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |