LifterLMS Multilingual Sites with WPML or Polylang: A Practical Guide
How LifterLMS behaves when you translate courses with WPML or Polylang: why each language is a separate course for enrollment and progress, which…
Read articleThere 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.
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:
wp-content/languages/lifterlms/: the "safe" folder. LifterLMS created it for custom translations, and nothing ever overwrites it automatically.wp-content/languages/plugins/: where WordPress installs official language packs. Files here are replaced when a new language pack arrives.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.
LifterLMS is translated by volunteers on WordPress.org. If your language is well covered, you may not need to do anything:
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.
Loco Translate is a free plugin that edits translation files from the WordPress admin. It is the easiest option for non-developers.
.mo file for you.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.
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.
Before translating or filtering anything, check whether the text is a setting. Much of what students read is.
| Text | Where to change it |
|---|---|
| Button on a pricing table plan | The access plan's Enroll Button Text field |
| Message shown to non-enrolled visitors who open a lesson | The course's Content Restricted Message under its Restrictions settings |
| Messages before enrollment opens or after it closes | Enrollment Opens Message and Enrollment Closed Message on the course |
| Terms and privacy text at registration and checkout | Terms and Conditions Notice and Privacy Policy Notice under LifterLMS > Settings > Accounts |
| Registration and checkout field labels | The form editor (Edit Forms on the same Accounts tab) |
| Notification and engagement email text | Each notification under LifterLMS > Settings > Notifications, and each engagement email post |
| Lesson timer wording | Timer Display Format under LifterLMS > Settings > Courses |
Words in URLs, such as course or lesson | Settings > Permalinks, in the LifterLMS Permalinks section |
Dashboard tab URLs, such as my-courses | Student Dashboard Endpoints on the Accounts settings tab |
Settings are stored per site and survive updates, so they are always the first choice.
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 text | Filter |
|---|---|
| Mark Complete | lifterlms_mark_lesson_complete_button_text |
| Mark Incomplete | lifterlms_mark_lesson_incomplete_button_text |
| Lesson Complete | llms_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 checkout | lifterlms_checkout_buy_button_text |
| Register | lifterlms_registration_button_text |
| Course Complete | llms_course_continue_button_complete_text |
| Student dashboard tab titles | llms_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.
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:
lifterlms.pot.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.
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.
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.
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.
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.
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.
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.
How LifterLMS behaves when you translate courses with WPML or Polylang: why each language is a separate course for enrollment and progress, which…
Read article
How to add worksheets, PDFs, templates and other downloads to LifterLMS lessons, keep them limited to enrolled students, organize a course resource…
Read article
How LifterLMS records quiz attempts, which attempt counts, how to manually grade answers with partial credit, what students see on the results…
Read articleSkip the trial and error. Get specialist LifterLMS help and ship faster.