Totara Learn offers a wide range of languages, including right-to-left display support where appropriate. You can see a full list of available language packs from our website.
Installing a language pack
There are a number of different language packs available for Totara Learn.
To install a language pack:
- Select Site administration > Language > Language packs.
- Select the languages you require from the list of available language packs.
- Click Install selected language pack.
All language packs, apart from UK English, are stored in the sitedata/lang directory.
Site administrators can set language defaults across the site via Site Administration > Language > Language settings.
|L||Select whether you wish Totara Learn to detect the user's default language from their browser settings. If this option is disabled, the site default language is used.||Users can change their preferred language via their User preferences.|
|Default language||Choose a default language for the whole site.||Users can override this setting using the language menu or the setting in their personal profile. The dropdown menu will display all installed language packs.|
|Display language menu||Choose whether or not you want to display the general-purpose language menu on the home page, login page, etc.||This does not affect the user's ability to set their preferred language in their User preferences.|
|Languages on the language menu||Leave this blank to allow users to choose from any language you have in this installation of Totara Learn or create a custom language menu by entering a comma-separated list of language codes that you want. e.g. en, fr, de, nl|
Language codes have a two or four letter format. For example:
Language codes are shown in brackets after the language pack name.
|Cache language menu||If enabled, the list of available translations is cached. The cache is automatically refreshed when you install or delete a language pack via the inbuilt language packs management tool. If you install a new language pack manually, you have to use Purge all caches feature to refresh the cached list.||Purge all caches can be found under Site administration > Development > Purge all caches.|
|Cache all language strings||Caches all the language strings into compiled files in the data directory. If you are translating Totara Learn or changing strings in the Totara Learn source code then you may want to switch this off. Otherwise, leave it on to see performance benefits.||-|
|Site-wide locale||Choose a sitewide locale; this will override the format and language of dates for all language packs (though names of days in the calendar are not affected).||You need to have this locale data installed on your operating system (e.g. for linux en_US.UTF-8 or es_ES.UTF-8). In most cases, this field should be left blank.|
|Excel encoding||Choose the encoding for Excel exports. It is recommended you leave this setting as the default (Unicode) unless you have a particular reason for needing Latin encoding.||-|
Change a word or phrase
The language editing interface enables you to easily change any word or phrase used within the site. For example, you may want to change the word 'Course' to 'Area'. When language editing you can also check for untranslated words in specific areas of the system.
- Select Site administration > Language > Language customisation.
- Choose a language pack to change.
- Select Open language pack for editing.
- Once the language pack has loaded, select Continue.
- Complete the Filter strings form to locate the text you are looking for. See the 'Filter Strings' section below for details on the types of filters available.
- Select Show strings to show the component name where the string was found.
- Enter the new word or phrase in the Local customisation field.
- Select Apply changes and continue editing to make further changes or click Save changes to the language pack to save all updates.
|Show strings of these components||Click or Ctrl+click to select one or more files that contain the string you want.||Components represent the areas, modules and plugins within Totara Learn.|
|Customised only||Check this field to display only those strings that have already been changed within your site.||-|
|Help only||Check this field to display only contextual help text.|
Contextual help is identified by a question mark icon ()
|Modified only||Displays only the strings that have have been changed since last saving the string into the language pack.||Customised strings (already saved in a file) are highlighted in green. Modified strings (not saved in a file yet) are highlighted in blue.|
|Only strings containing||Insert one word or a phrase that must appear in the string. For example, if you put the word 'learner' here, you will get only those strings that contain this word.||The Only strings containing filter can be used to perform a complete search for a term used in your Totara site for the selected language pack.|
|String identifier||If you know the string identifier (it is the first parameter of the ||For example: totara_appraisal.php, report_participation, certificate.php|
Show language string origin
This option is designed to help translators. When this option is enabled, if you add the parameter strings=1 to a request URL, it will show the language file and string id beside each string that is output. To enable, go to Site administration > Development > Debugging and check the box next to