== Current status
Proposing for current sprint, since this breaks import&export for one project.
This is most likely caused due to our plural expansion/flatting code that and is triggered by `}` at the end of a plural form.
== Original report
During exports from Translatewiki.net, the following Gettext plural,
```
#: org/wikipediacleaner/gui/swing/bot/ListCWWorker.java:616
#, java-format
msgid "{0} page has been detected for algorithm {1}"
msgid_plural "{0} pages have been detected for algorithm {1}"
msgstr[0] "{0} page a été détectée pour l’algorithme {1}"
msgstr[1] "{0} pages ont été détectées pour l’algorithme {1}"
```
got exported as -
```
#: org/wikipediacleaner/gui/swing/bot/ListCWWorker.java:616
#, java-format
msgid "{0} page has been detected for algorithm {1}}"
msgid_plural "{0} pages have been detected for algorithm {1}"
msgstr[0] "{0} page a été détectée pour l’algorithme {1}}"
msgstr[1] "{0} pages ont été détectées pour l’algorithme {1}"
```
This is probably caused due to the variable `{1}` at the end of the plural.
See image created from PR -
{F31903528}
- Link to [[ https://github.com/WPCleaner/wpcleaner/pull/17/files?diff=split&w=1 | PR ]].
- Link to message on [[ https://translatewiki.net/w/i.php?title=Special:Translate&showMessage=wpcleaner-2cc343-%3D7B%3D7BPLURAL%3AGETTEXT%3D7C%3D7B0%3D7D_page_has&group=wpcleaner&language=fr&filter=&optional=1&action=translate | twn ]].
- Reported at: T255101#6251429