• Resolved nicmare

    (@nicmare)


    I have this template string:

    sprintf(__("Hinweis: Ich erkl?re mich damit einverstanden, dass alle eingegebenen Daten und meine IP-Adresse zum Zweck der Spamvermeidung überprüft und gespeichert werden. Weiterhin werden die eingegebenen Daten genutzt, um Kontakt mit mir aufzunehmen. Alle Details k?nnen Sie in den %s nachlesen.","lmdm"),privacy_policy_page())

    loco translate recognizes it in the interface correctly:

    But i does not show in frontend. I still see the german string even when switching to “EN”. I then double checked the generated .po file and noticed weird quotes for that string which seems wrong to me:

    so what is going on here? Why is the whole text breaking in multiple lines and each line got wrapped by quotes? and msgid is empty…

    • This topic was modified 5 months ago by nicmare.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tim W

    (@timwhitlock)

    what is going on here? Why is the whole text breaking in multiple lines and each line got wrapped by quotes? and msgid is empty…

    This is valid PO file syntax.

    WordPress doesn’t read the PO files, so this is very unlikely to be related to your display issue. You can disable the line wrapping in the plugin settings (Maximum line length) but it won’t make a difference to the text which gets compiled and then loaded into WordPress.

    Thread Starter nicmare

    (@nicmare)

    oh wow what a fancy file syntax. thank you for the quick response and clarification. will check my issue furthermore then…

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.