How to load LifterLMS translation files (or language packs)

Loading Translation Files

# Top

LifterLMS will load translation files from the WordPress Language directory first (defaults to wp-content/languages, but will respect any path customizations to the location of the language directory on your server), and will then load any core language files from LifterLMS itself.

To load a custom language file, create a directory at wp-content/languages/lifterlms/ and upload your .po and .mo files in the following format: lifterlms-en_US where “en_US” is your translations locale string.


Loading Add-on Translation Files

# Top

All of the official LifterLMS add-ons will also load translations from the directory at wp-content/languages/lifterlms.

Translation files should be named using the add-on’s text-domain followed by a dash and then the locale string/

For example, LifterLMS WooCommerce’s file should be named lifterlms-woocommerce-en_US.mo where “en_US” is your chosen locale string.

Directory Structure

# Top

See the intended directory structure of language files is as follows:

 wp-content/
 |
 +-- languages/ (WordPress default language directory)
 | |
 | +-- en_US.mo
 | +-- en_US.po
 | +-- lifterlms/ (Add your custom LifterLMS language files here)
 | |
 | +-- lifterlms-en_US.mo
 | +-- lifterlms-en_US.po
 |
 +-- plugins/
 | |
 | +-- lifterlms.php
 | +-- languages/ (core language files)
 | |
 | +-- lifterlms-en_US.mo
 | +-- lifterlms-en_US.po
 | +-- lifterlms-addon-en_US.mo
 | +-- lifterlms-addon-en_US.po
 | +-- ...
 |
 +-- themes
 |
 +-- uploads

Additional Resources

# Top

More information on LifterLMS translations are available, see:

Last Updated on
Was this article helpful?