Plural translation values are not exported.

Created on 12 November 2018, about 6 years ago
Updated 28 May 2024, 7 months ago

Problem/Motivation

When extracting translations with the option "Include translations" checked, the translations for plural strings are not filled in the export.

<!--break-->

Expected result:

#: templates/test.html.twig
msgid "This is a plural test string with a single result."
msgid_plural "This is a plural test string with @num results."
msgstr[0] "Dit is een test string met een enkel resultaat."
msgstr[1] "Dit is een test string met @num resultaten"

Actual result:

#: templates/test.html.twig
msgid "This is a plural test string with a single result."
msgid_plural "This is a plural test string with @num results."
msgstr[0] ""
msgstr[1] ""
🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇳🇱Netherlands BryanDeNijs

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇱Netherlands idebr

    Patch #18 still applies to the latest dev after 1.0.0 was tagged

  • Status changed to Needs review 7 months ago
  • 🇳🇱Netherlands idebr

    The source string for languages with more than 2 plural forms is incorrect in #18. It is always the English singular and plural string.

    Attached patch fixed the source string for languages with more than 2 plural forms.

Production build 0.71.5 2024