carlxaeron / django-rosetta

Automatically exported from code.google.com/p/django-rosetta
MIT License
0 stars 0 forks source link

TypeError: string indices must be integers in rosetta/views.py in home, line 63 #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you, this should be fixed as of Rev [22]

Original comment by mbonetti on 17 May 2008 at 4:21