Opened 12 years ago

Closed 12 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, 12 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Claude Paroz, 12 years ago

Component: Core (Other)Internationalization

comment:3 by Alexey Boriskin, 12 years ago

Has patch: set

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

comment:4 by Claude Paroz, 12 years ago

Thanks, notes added on the pull request.

comment:5 by Alexey Boriskin, 12 years ago

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

comment:6 by Claude Paroz <claude@…>, 12 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