• Resolved tmflmw

    (@tmflmw)


    Hello, I am using TranslatePress (free version) and I am unable to translate a specific error message string: ‘The password must have a minimum strength of Medium’.

    This string comes from the ‘Profile Builder’ plugin.

    I have added the translations for both the template string (The password must have a minimum strength of %s) and the variable (Medium) in your ‘String Translation’ tab. The translations are saved correctly in your interface, but they do not appear on the front-end, even after clearing all caches.

    This suggests a compatibility issue where your plugin cannot correctly intercept and replace this specific gettext string from Profile Builder.

    Can you please advise? Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Anca

    (@ancavictoria)

    Hello @tmflmw

    TranslatePress should work correctly with the Profile Builder and Paid Membership Subscriptions plugins.

    The first recommendation is to make sure the “Disable translation for gettext strings” option is not enabled in TranslatePress → Advanced Settings → Debug.

    Next, please visit the page where the form appears, open the Translation Editor, trigger the message in question, and check if you can select and translate it.

    There should be two separate strings you need to translate individually:
    • “The password must have a minimum strength of %s” – when translating this string, make sure to include the %s at the end of your translation.
    • “Medium” – this is the second string that should be translated separately.

    After translating and saving both strings, the translations should appear correctly on the front-end.

    If the translation still doesn’t show on the page, even though it appears in the Translation Editor, please temporarily disable any security, caching, or optimization plugins active on the site to test for conflicts.

    If the issue persists, kindly send me the URL of the page where the issue occurs, along with screenshots of the translations you’ve added.
    Note: You can use a site like https://snipboard.io/ to share the screenshots.

    Let me know how this goes.

    Kind regards,

    Anca

    Thread Starter tmflmw

    (@tmflmw)

    Hello @ancavictoria

    I hope you’re well, to my great surprise, the translations have appeared (it took a while, I don’t know why, maybe due to the cache?). But I’m having another problem, I can’t get some dynamic messages to translate. I’m doing the translations right, saving them and clearing my website cache. But it doesn’t work, could you please help me?
    I’m attaching some screenshots that I find useful.
    I’ve noticed that it’s only the dynamic elements that do this to me, everything else works. I’m also trying to select them with the pencil, but that doesn’t work either
    I’m attaching some screenshots that I find useful.

    https://snipboard.io/uheLz5.jpg
    https://snipboard.io/Rjzrde.jpg


    Best regards,
    @tmflmw

    Plugin Support Anca

    (@ancavictoria)

    Hello @tmflmw

    I have just tested it, and the translation of the string “Please enter a group name.” should work without any issues. You should be able to select and translate this string directly from the PMS register page.

    In your screenshot, the domain for this string is missing, which suggests the string might not have been identified correctly.

    Please make sure that the “Disable dynamic translation” option in TranslatePress Advanced Settings → Troubleshooting is not enabled.
    Also, check the exclusions configured in TranslatePress Advanced Settings → Exclude strings & pages.

    After these checks, visit the PMS register page again, trigger the message, and you should be able to select and translate the string properly.

    Let me know how this goes.

    Kind regards,

    Anca

    Thread Starter tmflmw

    (@tmflmw)

    Hi @ancavictoria,

    I’ve added a filter so that I can filter correctly and make sure I’m translating the string correctly. As before, the translation is written and saved but still doesn’t appear on my screen. What’s more, the options you told me about are disabled. And there’s nothing in the ‘string text exclusions’. On the other hand, yes, it’s strange that I don’t have a domain written next to it, but in any case, I’ve never seen a domain written since I’ve been using it.
    Do you have any other leads? 🙁

    https://snipboard.io/eoMsn9.jpg
    https://snipboard.io/iZ6nq0.jpg
    https://snipboard.io/nvRwCp.jpg
    https://snipboard.io/xzdIvL.jpg

    Kind regards
    @tmflmw

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

The topic ‘Cannot translate a gettext string from ‘Profile Builder’ and ‘PMS’plugin’ is closed to new replies.