• Resolved Henk Barreveld

    (@henk-barreveld)


    Hi MailPoet team!

    I noticed something strange with some ‘translatable’ strings in MailPoet – actually, in quite a lot of them.

    Take the example below, from your file /mailpoet/views/subscription/manage_subscription.html:

    <p class="mailpoet-submit-success">
      <%= _x('Your preferences have been saved.',
        'success message after saving subscription settings') %>
    </p>
    

    The string “Your preferences have been saved.” is missing from the .po file /wp-content/languages/plugins/mailpoet-nl_NL. After syncing the file with Loco Translate, the string is still missing.

    I am not sure about your code, but the reason may be that the text domain parameter is missing from the _x() call. Strange enough, this is the case with many more of your __() and _x() calls in your code; possibly a few hundred(!) of them. I checked a number of these calls and in all cases the translatable string was missing from the .po file as well.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Strings cannot be translated’ is closed to new replies.