KeyError for excessive plural forms
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
Jeroen T. Vermeulen |
Bug Description
The latest Hausa translation for nautilus in Jaunty did something funny: it tried to translate a message to 28 plural forms! Launchpad only supports 6 forms, so at form 6 (counting from 0) we get a KeyError in the gettext parser instead of a proper error report to the user:
https:/
In POParser.
Various syntax-colouring stop recognizing this as valid after plural form 9. If that is correct, then forms 6—9 inclusive should be reported as unsupported in Launchpad and forms 10 or higher perhaps as syntax errors.
It'd be best to intercept this weirdness right where it lands, where _parseFreshLine recognizes that msgstr is followed by an opening bracket ("if line.startswith
The offending message is at https:/
Original upload is at http://
Changed in rosetta: | |
assignee: | nobody → jtv |
status: | Triaged → In Progress |
Changed in rosetta: | |
milestone: | none → 2.2.4 |
Changed in rosetta: | |
status: | Fix Committed → Fix Released |
Related to bug #187655.