While translating rosetta's own strings to Dutch using rosetta, I ran in to
the following bug. I'm using the development version of Django and rosetta
(r21).
After I translate the last page of strings, which contains a plural form,
and press 'Save', Django raises an exception:
TypeError: string indices must be integers in rosetta/views.py in home,
line 63. That line reads:
rosetta_i18n_pofile[id].msgstr_plural[idx] =
fix_nls(rosetta_i18n_pofile[id].msgid_plural[idx], request.POST.get(k))
Although I don't know how gettext works exactly, the attached patch fixes
this issue for me.
Original issue reported on code.google.com by cas...@gmail.com on 17 May 2008 at 12:15
Original issue reported on code.google.com by
cas...@gmail.com
on 17 May 2008 at 12:15Attachments: