{"id":138,"date":"2022-10-01T10:00:00","date_gmt":"2022-10-01T00:00:00","guid":{"rendered":"http:\/\/localhost:10138\/?p=138"},"modified":"2022-10-22T15:16:34","modified_gmt":"2022-10-22T04:16:34","slug":"language-strings-totara-lms","status":"publish","type":"post","link":"https:\/\/dev-train-well.pantheonsite.io\/language-strings-totara-lms\/","title":{"rendered":"Modify the correct language string easily in Totara LMS"},"content":{"rendered":"\n

When you wish to change some default text in Totara LMS, it is hard to figure out which particular language string to modify in the language pack for this to take effect. Use the &strings=1<\/mark><\/strong> parameter to debug language strings and filter or find the correct string to modify.<\/p>\n\n\n\n

For example, when you wish to change the Other evidence tab on the Record of Learning page (\/totara\/plan\/record\/courses.php?status=all<\/em>). It is hard to figure out which particular language string to modify in the language pack for this to take effect.<\/p>\n\n\n

\n
\"Typical
Typical Record of Learning page showing the tabs.<\/figcaption><\/figure><\/div>\n\n\n

How to identify which strings to modify<\/h2>\n\n\n\n

Use the &strings=1<\/strong> parameter to debug language strings and show the origin of language strings (component\/string identifier).<\/p>\n\n\n\n

Therefore when we change the URL to \/totara\/plan\/record\/courses.php?status=all&strings=1<\/mark><\/strong><\/em> we see all the text that can be modified. <\/p>\n\n\n

\n
\"Record
Record of learning page with strings enabled<\/figcaption><\/figure><\/div>\n\n\n

The URL parameter &strings=1<\/strong> can be used against any default page in Totara LMS to look for text that can be modified\/customised.<\/p>\n\n\n\n

How to filter and modify the correct language string<\/h2>\n\n\n\n

Now go to the Language Customisation page (\/admin\/tool\/customlang\/index.php<\/em>) and filter the correct string to modify as illustrated below for the Other evidence<\/strong> tab:<\/p>\n\n\n\n