• Hello,

    First of all I’d like to say Loco Translate is an amazing plugin, keep up the good work!

    Secondly, I’m kind of stuck on some translations, as they won’t translate at all.
    Only the ones who have a context added to them won’t show up in the plug-in.

    I’ve attached 2 pictures to illustrate my problem.

    1

    2

    Am I doing something wrong here?

    Thanks in advance!

    Kind regards,
    Kilian Macharis

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tim W

    (@timwhitlock)

    I downloaded this wp-invoice plugin and the string “E-mail Address:” has no context attribute.

    My guess is your translation file does not reflect the strings used in the code of the plugin.

    Thread Starter DataWireActivity

    (@datawire)

    Hello Tim,

    Thank you for your answer.
    Can I add these strings manually? Or that won’t help?

    Any other way to fix this?

    Thanks!

    Plugin Author Tim W

    (@timwhitlock)

    I don’t recommend adding strings manually.

    Ensure your PO files are in sync with the actual strings that are translatable.

    Relevant manual pages:
    * Configuring your bundle
    * Working with templates

    Thread Starter DataWireActivity

    (@datawire)

    Is it possible that a particular string isn’t translatable at all?
    My PO files should be in sync.

    Thanks!

    Plugin Author Tim W

    (@timwhitlock)

    Is it possible that a particular string isn’t translatable at all?

    That’s always possible, but doesn’t seem to be the case for the “E-mail Address:” string.

    My PO files should be in sync.

    I downloaded your plugin and can clearly see that none of the source code uses message context. So either your PO files are NOT in sync, or you’re not running the same plugin I downloaded. Please clarify the exact version.

    Thread Starter DataWireActivity

    (@datawire)

    It’s WP-Invoice: https://ww.wp.xz.cn/plugins/wp-invoice/
    Version: 4.1.7

    In the PO file it says:

    #: lib/ui/user_selection_form.php:15
    msgctxt “E-mailadres:”
    msgid “E-mail Address:”
    msgstr “E-mailadres:”

    But I don’t see how the msgctxt was added. It is for some of the translations, and those are the ones that don’t translate on the website.

    Plugin Author Tim W

    (@timwhitlock)

    Version: 4.1.7

    Good, we’re talking about the same plugin.

    But I don’t see how the msgctxt was added.

    It’s probably an old file. The wp-invoice plugin has probably been updated since your file was created and the author changed a load of the strings.

    and those are the ones that don’t translate on the website

    Exactly as I’ve been saying. Your PO file is not in sync with the plugin code. See the links I posted earlier today for how to update your translations when the plugin changes its strings.

    Thread Starter DataWireActivity

    (@datawire)

    Most helpful, there appeared to be something wrong with the template file indeed.
    Problem is solved, thank you very much!

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

The topic ‘Context Attributed strings do not translate’ is closed to new replies.