Skip to content

Commit

Permalink
use ngettext not ungettext
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbrooks committed Oct 14, 2021
1 parent af6fb01 commit a1eabc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions haystack/admin.py
Expand Up @@ -4,7 +4,7 @@
from django.core.paginator import InvalidPage, Paginator
from django.shortcuts import render
from django.utils.encoding import force_str
from django.utils.translation import ungettext
from django.utils.translation import ngettext

from haystack import connections
from haystack.constants import DEFAULT_ALIAS
Expand Down Expand Up @@ -116,12 +116,12 @@ def changelist_view(self, request, extra_context=None):
else:
action_form = None

selection_note = ungettext(
selection_note = ngettext(
"0 of %(count)d selected",
"of %(count)d selected",
len(changelist.result_list),
)
selection_note_all = ungettext(
selection_note_all = ngettext(
"%(total_count)s selected",
"All %(total_count)s selected",
changelist.result_count,
Expand Down

0 comments on commit a1eabc0

Please sign in to comment.