• Resolved simeonmeder

    (@simeonmeder)


    I can’t find the string to translate for the tooltip that appears on unregistered course/lessons hover. The tooltip has the css classes .llms-lesson-link and .llms-lesson-link-locked.

    I searched the locotranslate strings for lifterlms but couldn’t find it there. I have also synced the translation files (i try to translate to FR) and moved them to /wp-content/plugins/lifterlms/languages as one other thread here suggested.

    https://ibb.co/W5vMjXP

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Nick Mariano

    (@reddotinmotion)

    Hi @simeonmeder,

    You can change the string You must enroll in this course to access course content to something else by editing your course on the back-end and then going to Course Options > Restrictions > Content Restricted Message

    Since you can directly modify that string, you do not need to use Loco Translate to translate that. You can just change the actual string in Course Options > Restrictions > Content Restricted Message Note that you have to do this for all old courses that are already created (regardless of the publish status).

    When you try to override the default value for Course Options > Restrictions > Content Restricted Message using Loco Translate, you will only see you change for new courses you create after the translation (not before the translation). The deafult value you need to search for is You must enroll in this course to access course content That string is located in the following PHP files:

    • wp-content/plugins/lifterlms/includes/admin/post-types/meta-boxes/class.llms.meta.box.course.options.php
    • wp-content/plugins/lifterlms/libraries/lifterlms-rest/includes/server/class-llms-rest-courses-controller.php
    Thread Starter simeonmeder

    (@simeonmeder)

    Thank You @reddotinmotion !

    I changed the string in the Course Options > Restrictions directly!
    Worked perfectly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t find string to translate’ is closed to new replies.