Opened 11 years ago

Closed 11 years ago

#19704 closed Cleanup/optimization (fixed)

Make use of new ungettext_lazy function at appropriate places

Reported by: Alexey Boriskin Owned by: nobody
Component: Internationalization Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

There are two places at the codebase, where new possibilities of ungettext_lazy may make code prettier:

  1. django.contrib.comments.admin
  2. django.utils.timesince

There are hacks with lambdas at both places.

Change History (6)

comment:1 by Claude Paroz, 11 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Claude Paroz, 11 years ago

Component: Core (Other)Internationalization

comment:3 by Alexey Boriskin, 11 years ago

Has patch: set

I made pull request for the ticket: https://github.com/django/django/pull/702

comment:4 by Claude Paroz, 11 years ago

Thanks, notes added on the pull request.

comment:5 by Alexey Boriskin, 11 years ago

I updated pull request, fixing problems you've pointed out

comment:6 by Claude Paroz <claude@…>, 11 years ago

Resolution: fixed
Status: newclosed

In d18f796a481e79a3800d4672d6189e4c496cce3d:

Fixed #19704 -- Make use of new ungettext_lazy function at appropriate places

Note: See TracTickets for help on using tickets.
Back to Top