Skip to:
Content
Pages
Categories
Search
Top
Bottom

PHP Fatal error:  Uncaught ValueError


  • 1benk1
    Participant

    @1benk1

    Hello,
    the file wp-content/languages/plugins/buddypress-de_DE.po has in line 3687 following german translation:
    msgstr "Du hast % 1 $ d Kommentar-Antworten"

    This causes a PHP Fatal error:  Uncaught ValueError and should be:
    msgstr "Du hast %1$d Kommentar-Antworten"

    Best regards,
    Ben

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

  • 1benk1
    Participant

    @1benk1

    By the way, it is not the best idea to take a language translation that contains sprintf parameters into sprintf without any further checks.

    Thanks for your report. I agree, we should check the needed placeholders are in place inside the translated string.

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