• Resolved snigurmd

    (@snigurmd)


    The Courses page has several strings that are not translated. They are both in the html templates single-course-template-default.html and single-course-offline-template-default.html:

    “Last update”

    “Releated course” (this one has a typo)

    Needs to be translated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi snigurmd,

    Thank you for reaching out.

    In order to investigate this issue more effectively and provide you with a precise solution, could you please provide us with a bit more information? Specifically, we would like to know the following:

    Which theme are you currently using on your site?

    Could you share a screenshot or short video showing the areas where the strings “Last update” and “Related course” appear and cannot be translated?

    This information will help us determine whether these strings come from the plugin core or the theme’s templates so that we can advise you on the best way to translate them.

    We look forward to your response!

    Best regards,
    Brianvu-tp

    Thread Starter snigurmd

    (@snigurmd)

    Hello,

    Here is the link to the screenshots, i ve uploaded them to the cloud:
    https://disk.yandex.ru/d/CV9fb3yHGww54g

    I am using the theme twenty twenty-five.
    I have found the exact place where this comes from, it is two HTML templates in /wp-content/plugins/learnpress/templates/block/html

    Sending the screenshots.
    Also there are some other places where there is no translation. The words on the course site: Session , Lessons, Questions.

    Plugin Support brianvu-tp

    (@briantp)

    Hi snigurmd,

    Thank you for providing the screenshots!

    Based on your findings, here’s how you can translate and correct those strings:

    For “Last Update” or “Related Course” (Gutenberg Blocks):
    Since these strings are part of the block templates, you can edit them directly in the WordPress site editor without a translation plugin.

    Navigate to Templates or Patterns, and find the specific course templates you mentioned.

    Go to Appearance > Editor (Edit Site).

    Click on the Related Course block. You can then type over the text to correct the typo.

    For curriculum strings (sections, lessons, and questions):
    These strings are part of the core logic of the LearnPress plugin. We recommend using the free Loco Translate plugin to translate them.

    Install and activate Loco Translate.

    Go to Loco Translate > Plugins > LearnPress.

    Click New Language if you haven’t started translating yet or click Edit to modify an existing language file.

    Search for “Session,” “Lessons,” “Questions,” etc., to enter your translations.

    Pro tip: If you don’t see the latest strings, click the “Sync” button in Loco Translate to update the list from the plugin’s latest source code.

    Please try these steps and let us know if you can update everything to your liking.

    Best regards,
    Brianvu-tp

    Thread Starter snigurmd

    (@snigurmd)

    Yeah, this works, thank you.

    It would be great if the template also had a translation so that it won’t be overwritten with the next update.

    Plugin Support brianvu-tp

    (@briantp)

    Hi snigurmd,

    I’m glad to hear that worked for you!

    Regarding your concern about updates: Rest assured that your changes will not be lost.

    Best regards,
    Brianvu-tp

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.