Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#30165 closed Cleanup/optimization (fixed)

Deprecate ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and ungettext_lazy()

Reported by: Jon Dufresne Owned by: nobody
Component: Internationalization Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Along the lines of #27753 (Cleanups when no supported version of Django supports Python 2 anymore), the legacy functions in django.utils.translation -- ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and ungettext_lazy() -- are simple aliases that remain for Python 2 Unicode backwards compatibility. As other compatibility layers have been cleaned up, these shims can be deprecated for removal.

Change History (9)

comment:1 by Jon Dufresne, 6 years ago

Has patch: set

comment:2 by Tim Graham, 6 years ago

Component: UtilitiesInternationalization
Triage Stage: UnreviewedReady for checkin

comment:3 by Tim Graham <timograham@…>, 6 years ago

Resolution: fixed
Status: newclosed

In 6eb49966:

Fixed #30165 -- Deprecated ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and ungettext_lazy().

comment:4 by GitHub <noreply@…>, 5 years ago

In fb216252:

Refs #30165 -- Removed obsolete doc references to deprecated ugettext() & co.

The u-prefixed variants were removed from the documentation in
6eb4996672ca5ccaba20e468d91a83d1cd019801.

comment:5 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

In c335f168:

[3.0.x] Refs #30165 -- Removed obsolete doc references to deprecated ugettext() & co.

The u-prefixed variants were removed from the documentation in
6eb4996672ca5ccaba20e468d91a83d1cd019801.
Backport of fb21625270ab169fd436c36dd51acb642a97ee50 from master

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

In bac5777:

Refs #30165 -- Removed leftover 'u' prefix.

comment:7 by Carlton Gibson <carlton.gibson@…>, 4 years ago

In 06474e9:

[3.1.x] Refs #30165 -- Removed leftover 'u' prefix.

Backport of bac5777bff8e8d8189193438b5af52f158a3f2a4 from master

comment:8 by Carlton Gibson <carlton.gibson@…>, 4 years ago

In e0397e1:

[3.0.x] Refs #30165 -- Removed leftover 'u' prefix.

Backport of bac5777bff8e8d8189193438b5af52f158a3f2a4 from master

comment:9 by Mariusz Felisiak <felisiak.mariusz@…>, 4 years ago

In 52a238dd:

Refs #30165 -- Removed ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and ungettext_lazy() per deprecation timeline.

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