How to Translate LifterLMS and Change Its Default Text

Translate LifterLMS into your language and change wording such as "Mark Complete" or "My Courses" safely: language packs, the update-safe folder, Loco Translate, built-in text settings, dedicated filters and the gettext fallback.

  • Add as a preferred source on Google
Illustration for “How to Translate LifterLMS and Change Its Default Text”

There are two reasons to touch LifterLMS's built-in text. Either your site is not in English and you need to translate LifterLMS, or it is in English and you want different words: "Program" instead of "Course", "Finish lesson" instead of "Mark Complete".

Both are possible without editing the plugin, and both have a wrong way that gets wiped by the next update. This guide shows the right way for each: how LifterLMS finds its translations, how to translate or adjust strings with Loco Translate or your own language files, which wording is already a setting, and the filters a developer uses when it is not.

If you need several languages on the same site, read this first and then our guide to LifterLMS multilingual sites with WPML or Polylang.

How LifterLMS loads translations

Every string LifterLMS prints belongs to the lifterlms text domain. When WordPress runs in, say, German (de_DE), LifterLMS looks for a compiled translation file named lifterlms-de_DE.mo in three places, in this order:

  1. wp-content/languages/lifterlms/: the "safe" folder. LifterLMS created it for custom translations, and nothing ever overwrites it automatically.
  2. wp-content/languages/plugins/: where WordPress installs official language packs. Files here are replaced when a new language pack arrives.
  3. wp-content/plugins/lifterlms/languages/: inside the plugin. Anything placed here is deleted on every plugin update.

The first file found wins for each string, so a custom file in the safe folder overrides the official pack. Developers can move that folder with the llms_l10n_safe_directory filter. Strings used by LifterLMS's JavaScript, mostly in the block editor, come from separate JSON translation files that LifterLMS looks for in the same three folders.

The official LifterLMS documentation describes the same structure in how to load LifterLMS translation files.

Translate LifterLMS into your site language

Start with the official language pack

LifterLMS is translated by volunteers on WordPress.org. If your language is well covered, you may not need to do anything:

  1. Set the site language under Settings > General > Site Language.
  2. Go to Dashboard > Updates and click Update Translations if it is offered.
  3. Check a lesson, a quiz, the checkout and the student dashboard.

WordPress only ships a language pack once a locale is mostly translated, so a regional variant such as Mexican Spanish may have no pack even though Spain's Spanish does. If nothing arrives, or the pack has gaps, translate the missing strings yourself as described next, and consider contributing them back so the next site benefits.

Fill the gaps with Loco Translate

Loco Translate is a free plugin that edits translation files from the WordPress admin. It is the easiest option for non-developers.

  1. Install and activate Loco Translate.
  2. Go to Loco Translate > Plugins and choose LifterLMS.
  3. Add your language, or open the existing one. When Loco asks where to save, pick its protected custom location, never the plugin's own folder.
  4. Search for the string, type the translation, and save. Loco compiles the .mo file for you.
  5. Reload the front end to check it.

If a string you can see on screen is missing from the list, the file you are editing is older than the plugin. Run Loco's sync to pull in new strings, and back up first, as LifterLMS's own Loco Translate note warns that a careless sync can lose work.

Or upload your own files

If you translate in a desktop editor such as Poedit, start from languages/lifterlms.pot inside the plugin, save as lifterlms-de_DE.po, and upload the resulting .po and .mo files to wp-content/languages/lifterlms/. Paid LifterLMS add-ons have their own text domains and are translated the same way, with their domain at the start of the file name.

Change wording that is already a setting

Before translating or filtering anything, check whether the text is a setting. Much of what students read is.

TextWhere to change it
Button on a pricing table planThe access plan's Enroll Button Text field
Message shown to non-enrolled visitors who open a lessonThe course's Content Restricted Message under its Restrictions settings
Messages before enrollment opens or after it closesEnrollment Opens Message and Enrollment Closed Message on the course
Terms and privacy text at registration and checkoutTerms and Conditions Notice and Privacy Policy Notice under LifterLMS > Settings > Accounts
Registration and checkout field labelsThe form editor (Edit Forms on the same Accounts tab)
Notification and engagement email textEach notification under LifterLMS > Settings > Notifications, and each engagement email post
Lesson timer wordingTimer Display Format under LifterLMS > Settings > Courses
Words in URLs, such as course or lessonSettings > Permalinks, in the LifterLMS Permalinks section
Dashboard tab URLs, such as my-coursesStudent Dashboard Endpoints on the Accounts settings tab

Settings are stored per site and survive updates, so they are always the first choice.

Change default text with LifterLMS filters

When the wording is not a setting, LifterLMS often provides a filter for exactly that string. A filter changes only the text you target and passes along useful context, such as the lesson being shown.

Default textFilter
Mark Completelifterlms_mark_lesson_complete_button_text
Mark Incompletelifterlms_mark_lesson_incomplete_button_text
Lesson Completellms_lesson_complete_text
Take Quiz (on the lesson)lifterlms_start_quiz_button_text
Start Quiz (on the quiz page)lifterlms_begin_quiz_button_text
Buy Now / Enroll Now at checkoutlifterlms_checkout_buy_button_text
Registerlifterlms_registration_button_text
Course Completellms_course_continue_button_complete_text
Student dashboard tab titlesllms_get_student_dashboard_tabs

Here is what that looks like in a small custom plugin:

<?php
/**
 * Plugin Name: LLMSX Custom Wording
 */

add_filter( 'lifterlms_mark_lesson_complete_button_text', 'llmsx_mark_complete_text', 10, 2 );
function llmsx_mark_complete_text( $text, $lesson ) {
	return 'I have finished this lesson';
}

add_filter( 'lifterlms_start_quiz_button_text', 'llmsx_take_quiz_text' );
function llmsx_take_quiz_text( $text ) {
	return 'Check your understanding';
}

add_filter( 'llms_get_student_dashboard_tabs', 'llmsx_dashboard_tab_titles' );
function llmsx_dashboard_tab_titles( $tabs ) {
	if ( isset( $tabs['view-courses'] ) ) {
		$tabs['view-courses']['title'] = 'My Programs';
	}
	return $tabs;
}

On a multilingual site, wrap your replacement strings in __() with your own text domain so they can be translated too. For a broader tour of the hook system, see our LifterLMS hooks and filters guide.

The gettext fallback for everything else

For a string with no setting and no filter, WordPress's translation filters let you swap it as it is translated. Since WordPress 5.5 there is a domain-specific version, so your code runs only for LifterLMS strings:

<?php
add_filter( 'gettext_lifterlms', 'llmsx_swap_lifterlms_strings', 10, 2 );
function llmsx_swap_lifterlms_strings( $translation, $text ) {
	$map = array(
		'Get Started' => 'Begin the program',
		'Continue'    => 'Pick up where you left off',
	);
	return isset( $map[ $text ] ) ? $map[ $text ] : $translation;
}

Three rules keep this safe:

  • Match the original English text exactly, including capitalisation and punctuation. Copy it from lifterlms.pot.
  • Remember that short strings are reused. "Continue" appears in more than one place. Check every screen it touches, or use a filter with context instead.
  • Strings with context need a different filter. Some LifterLMS strings are registered with a context, such as the URL slugs and order statuses. Those pass through gettext_with_context_lifterlms, which receives the context as an extra argument.

The gettext filter runs for every LifterLMS string on every page, so keep the callback a simple array lookup.

Renaming "Course", "Lesson" and other content types

Changing the word "Course" everywhere is the most common request and the one with the most edges. The admin labels come from the post type registration, which LifterLMS exposes through the lifterlms_register_post_type_course filter (and ..._lesson, ..._membership and so on). Front-end strings that contain the word, such as "Course Complete", have to be changed one by one with the filters above or with a custom translation file.

For a full rename in English, a custom lifterlms-en_US.mo placed in the safe folder is often cleaner than dozens of gettext entries: translate English to English for the strings you want changed and leave the rest empty. For URLs, change the bases in LifterLMS Permalinks separately.

Common mistakes when changing LifterLMS text

  • Saving translations inside the plugin folder. They vanish on the next update. Use the safe folder or Loco's protected location.
  • Overriding a template just to change a word. A template override must be maintained on every release. Use a setting or filter instead; keep template overrides for real layout changes.
  • Putting code in the theme's functions file. Switching themes loses it. A tiny custom plugin is safer, as explained in customizing LifterLMS without breaking updates.
  • Forgetting caches. After changing a translation, clear page and object caches before deciding it did not work.
  • Changing URL slugs on a live site without redirects. Old links to courses and lessons will return 404 errors.

Frequently asked questions

Where do I put a custom LifterLMS translation file?

In wp-content/languages/lifterlms/, named lifterlms-{locale}.mo, for example lifterlms-fr_FR.mo. LifterLMS checks that folder first and it is never overwritten by updates.

Why did my translation disappear after an update?

It was almost certainly saved in wp-content/plugins/lifterlms/languages/ or replaced by a new official pack in wp-content/languages/plugins/. Move it to the safe folder.

Can I change "Mark Complete" without code?

Yes, with Loco Translate: add an English translation for the string and save it to the protected location. The filter shown above does the same in code.

Do LifterLMS emails get translated too?

The wording LifterLMS supplies is translated with everything else. Email bodies you write yourself, in notifications and engagements, are content and must be written in the language you want.

Next steps

Start with settings, then official language packs, then Loco Translate for the gaps. Reach for filters only when wording is part of a wider customisation, and keep all of it in a small plugin you control.

If you want consistent terminology across LifterLMS, its add-ons and your theme, or a branded vocabulary for a corporate academy, our LifterLMS customization service can put it in place and keep it update-safe. Tell us what your students should see.

Add LifterLMS Expert to your preferred sources

Add lifterlmsexpert.com as a preferred source on Google, or open this article in your AI assistant to use it as a source.

  • Add as a preferred source on Google
Free consultation

Prefer expert help over DIY?

Skip the trial and error. Get specialist LifterLMS help and ship faster.

Talk to a LifterLMS Expert Explore our services

Replies within one business day