Translate LearnWorlds LMS

This LearnWorlds LMS integration guide shows you how to translate your LearnWorlds LMS website in a few easy steps.

709

Below is step-by-step guide for integrating Localize into your LearnWorlds LMS website. These instructions assume that you have already created your website in LearnWorlds.

If you do not have a Localize Project yet, signup here!

1. Edit your LearnWorlds LMS Website

  1. From your LearnWorlds LMS dashboard, go to Website --> Design.
  2. Select Edit Website in the left navbar.
  3. Click the Edit Website button.
  4. Select the Site --> Site custom code option from the top navbar.
  5. Select the logged in / logged out slot for head scripts.
  6. Paste the following Localize snippet.
    1. This code will be added to the <head>tag on every page of your LearnWorlds LMS site.

2. Insert the Localize code snippet

<script src="https://global.localizecdn.com/localize.js"></script>

<script>(function(a){if(!a.Localize){a.Localize={X:[]};var methods="translate","untranslate","phrase","initialize","translatePage","setLanguage","getLanguage","getSourceLanguage","detectLanguage","getAvailableLanguages","setWidgetLanguages","hideLanguagesInWidget","untranslatePage","bootstrap","prefetch","on","off","hideWidget","showWidget"];for(var i=0;i<methods.length;i++){a.Localize[methods[i]]=(function(m){return function(){a.Localize.X.push([m,arguments]);};})(methods[i]);}}})(window);</script>

<script>
  Localize.initialize({
    key: '[[app:key]]',
    rememberLanguage: true,
    // other options go here, separated by commas
  });
</script>
  1. Ensure that your Project Key is displayed next to "key: '????'".
  2. Click Save to save the changes.
  3. Republish your site.

3. Add Initialization Options

Add any desired options to the Localize.initialize() call above, check here for the full list of possible options.

Some popular options include:

  • autoApprove - use to fully automate your translation workflow
  • localizeImages - allows for localization of images in your site

4. Reload your website.

  1. Visit your website in a browser.
  2. Select one of your target languages using the language-switching widget.
  3. Refresh the page.
  4. Lather, rinse, and repeat, for each page on your site.

Localize will automatically begin to detect new content on the pages that you visit and will bring it into your dashboard.

5. Approve phrases

Then head on over to the Manage Phrases page to approve phrases in the Localize dashboard.

6. Phrases not showing up?

If you are not seeing phrases show up in your Pending bin in the Localize dashboard, follow the troubleshooting instructions here.


Need Help?
Contact support for custom integration help or troubleshooting!