Title: Hardcoded strings translation
Last modified: March 8, 2026

---

# Hardcoded strings translation

 *  Resolved [snigurmd](https://wordpress.org/support/users/snigurmd/)
 * (@snigurmd)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/hardcoded-strings-translation/)
 * 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](https://wordpress.org/support/users/briantp/)
 * (@briantp)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/hardcoded-strings-translation/#post-18844609)
 * 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](https://wordpress.org/support/users/snigurmd/)
 * (@snigurmd)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/hardcoded-strings-translation/#post-18844806)
 * Hello,
 * Here is the link to the screenshots, i ve uploaded them to the cloud:
   [https://disk.yandex.ru/d/CV9fb3yHGww54g](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](https://wordpress.org/support/users/briantp/)
 * (@briantp)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/hardcoded-strings-translation/#post-18846035)
 * 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)](https://prnt.sc/6462XEu6-7t6).
 * Click on the Related Course block. You can then [type over the text ](https://prnt.sc/AMoeM73X3HSl)
   to correct the typo.
 * For [curriculum strings](https://prnt.sc/OZmkN_W73O0D) (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](https://prnt.sc/gY-RQHWonAGd).
 * Pro tip: If you don’t see the latest strings, click the [“Sync” button](https://prnt.sc/1oy0mjybGP-6)
   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](https://wordpress.org/support/users/snigurmd/)
 * (@snigurmd)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/hardcoded-strings-translation/#post-18846503)
 *  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](https://wordpress.org/support/users/briantp/)
 * (@briantp)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/hardcoded-strings-translation/#post-18847430)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhardcoded-strings-translation%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/learnpress/assets/icon-256x256.gif?rev=3254420)
 * [LearnPress - WordPress LMS Plugin for Create and Sell Online Courses](https://wordpress.org/plugins/learnpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/learnpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/learnpress/)
 * [Active Topics](https://wordpress.org/support/plugin/learnpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/learnpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/learnpress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [brianvu-tp](https://wordpress.org/support/users/briantp/)
 * Last activity: [1 month, 2 weeks ago](https://wordpress.org/support/topic/hardcoded-strings-translation/#post-18847430)
 * Status: resolved