Installed the latest version osqa.

When open the page "Questions", "Unanswered" I get this error:

Original Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/django/template/debug.py", line 71, in render_node
    result = node.render(context)
  File "/usr/lib/python2.6/site-packages/django/templatetags/i18n.py", line 80, in render
    result = translation.ungettext(singular, plural, count)
  File "/usr/lib/python2.6/site-packages/django/utils/translation/__init__.py", line 65, in ungettext
    return real_ungettext(singular, plural, number)
  File "/usr/lib/python2.6/site-packages/django/utils/translation/trans_real.py", line 320, in ungettext
    return do_ntranslate(singular, plural, number, 'ungettext')
  File "/usr/lib/python2.6/site-packages/django/utils/translation/trans_real.py", line 302, in do_ntranslate
    return getattr(t, translation_function)(singular, plural, number)
  File "/usr/lib/python2.6/gettext.py", line 409, in ungettext
    tmsg = self._catalog[(msgid1, self.plural(n))]
  File "<string>", line 1, in <lambda>
TypeError: unsupported operand type(s) for %: 'Page' and 'int'

Patch is available here.

asked 01 Apr '10, 08:06

ekalinin's gravatar image

ekalinin
116135
accept rate: 25%

closed 29 Apr '11, 12:57

Andrew_S's gravatar image

Andrew_S ♦
5.6k45674

The patch was applied here http://github.com/OSQA/osqa/commit/64e0dd8e953b950f80a325cbe5e56fb38dfb9282 . The stupid git shows the entire file as modified :-P . Could you create an account at jira.osqa.net and use it for this kind of issues?

(01 Apr '10, 09:43) Hernani Cerq... ♦♦

Ok. Thanks. Created an account in Jira ;).

(01 Apr '10, 23:34) ekalinin

The question has been closed for the following reason "Other - patch has been applied" by Andrew_S 29 Apr '11, 12:57

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×166
×23

Asked: 01 Apr '10, 08:06

Seen: 608 times

Last updated: 29 Apr '11, 12:57

powered by OSQA