AssertionError: More than 6 plural forms were submitted

Bug #708875 reported by Ahmed Shams
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Unassigned

Bug Description

the translation on:
https://translations.launchpad.net/wubi/trunk/+pots/wubi/ar/5/+translate
it has 5 fields for new translation and keeps giving error: (Error ID: OOPS-1853D2494)
I think it might be a problem with the pot file, thanks

Related branches

Revision history for this message
David Planella (dpm) wrote :

Moving to Launchpad, as it seems it has to do with an OOPS, nothing we can fix in Ubuntu.

affects: ubuntu-translations → launchpad
tags: added: oops
Changed in launchpad:
status: New → Triaged
importance: Undecided → Critical
summary: - error with pot file
+ AssertionError: More than 6 plural forms were submitted
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

This doesn't sound like a problem with the pot file. Note that this is happening in Arabic translation: Arabic uses all 6 forms (and in fact that is the reason why we support a maximum of exactly 6 forms). Note that there are 6 input fields, not 5, though the layout makes it a bit hard to see.

What's happening is that the check for this is completely broken. It fails if you submit exactly 6 plural forms.

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

To explain: the check does something like…

for pluralform in xrange(6):
    # …
    if pluralform not in translations_submitted_in_form:
        break
    # …
else:
    raise AssertionError("More than 6 plural forms were submitted!")

That goes wrong if you submit exactly 6 plural forms. The loop then never hits a plural-form number that didn't have a translation submitted, and drops into the "else" part.

j.c.sackett (jcsackett)
Changed in launchpad:
assignee: nobody → j.c.sackett (jcsackett)
j.c.sackett (jcsackett)
Changed in launchpad:
assignee: j.c.sackett (jcsackett) → nobody
Curtis Hovey (sinzui)
tags: added: trivial
Curtis Hovey (sinzui)
Changed in launchpad:
milestone: none → 11.06
assignee: nobody → Curtis Hovey (sinzui)
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
milestone: 11.06 → none
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
Changed in launchpad:
assignee: Curtis Hovey (sinzui) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.