[Django] #30165: Deprecate ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and ungettext_lazy()

25 views
Skip to first unread message

Django

unread,
Feb 7, 2019, 9:20:43 PM2/7/19
to django-...@googlegroups.com
#30165: Deprecate ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and
ungettext_lazy()
------------------------------------------------+------------------------
Reporter: Jon Dufresne | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Utilities | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/30165>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 7, 2019, 9:23:17 PM2/7/19
to django-...@googlegroups.com
#30165: Deprecate ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and
ungettext_lazy()
-------------------------------------+-------------------------------------

Reporter: Jon Dufresne | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Utilities | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jon Dufresne):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/10957 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/30165#comment:1>

Django

unread,
Feb 8, 2019, 10:09:03 AM2/8/19
to django-...@googlegroups.com
#30165: Deprecate ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and
ungettext_lazy()
-------------------------------------+-------------------------------------

Reporter: Jon Dufresne | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: | Version: master
Internationalization |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* component: Utilities => Internationalization
* stage: Unreviewed => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/30165#comment:2>

Django

unread,
Feb 8, 2019, 10:26:28 AM2/8/19
to django-...@googlegroups.com
#30165: Deprecate ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and
ungettext_lazy()
-------------------------------------+-------------------------------------

Reporter: Jon Dufresne | Owner: nobody
Type: | Status: closed

Cleanup/optimization |
Component: | Version: master
Internationalization |
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"6eb4996672ca5ccaba20e468d91a83d1cd019801" 6eb49966]:
{{{
#!CommitTicketReference repository=""
revision="6eb4996672ca5ccaba20e468d91a83d1cd019801"
Fixed #30165 -- Deprecated ugettext(), ugettext_lazy(), ugettext_noop(),
ungettext(), and ungettext_lazy().
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30165#comment:3>

Django

unread,
Apr 20, 2020, 1:57:38 AM4/20/20
to django-...@googlegroups.com
#30165: Deprecate ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and
ungettext_lazy()
-------------------------------------+-------------------------------------

Reporter: Jon Dufresne | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: | Version: master
Internationalization |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"fb21625270ab169fd436c36dd51acb642a97ee50" fb216252]:
{{{
#!CommitTicketReference repository=""
revision="fb21625270ab169fd436c36dd51acb642a97ee50"
Refs #30165 -- Removed obsolete doc references to deprecated ugettext() &
co.

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

--
Ticket URL: <https://code.djangoproject.com/ticket/30165#comment:4>

Django

unread,
Apr 20, 2020, 1:58:26 AM4/20/20
to django-...@googlegroups.com
#30165: Deprecate ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and
ungettext_lazy()
-------------------------------------+-------------------------------------

Reporter: Jon Dufresne | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: | Version: master
Internationalization |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"c335f168553d9a664879c99187ee9222bd479f45" c335f168]:
{{{
#!CommitTicketReference repository=""
revision="c335f168553d9a664879c99187ee9222bd479f45"
[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
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30165#comment:5>

Django

unread,
Jul 28, 2020, 6:30:06 AM7/28/20
to django-...@googlegroups.com
#30165: Deprecate ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and
ungettext_lazy()
-------------------------------------+-------------------------------------

Reporter: Jon Dufresne | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: | Version: master
Internationalization |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Claude Paroz <claude@…>):

In [changeset:"bac5777bff8e8d8189193438b5af52f158a3f2a4" bac5777]:
{{{
#!CommitTicketReference repository=""
revision="bac5777bff8e8d8189193438b5af52f158a3f2a4"
Refs #30165 -- Removed leftover 'u' prefix.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30165#comment:6>

Django

unread,
Jul 29, 2020, 4:21:01 AM7/29/20
to django-...@googlegroups.com
#30165: Deprecate ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and
ungettext_lazy()
-------------------------------------+-------------------------------------

Reporter: Jon Dufresne | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: | Version: master
Internationalization |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Carlton Gibson <carlton.gibson@…>):

In [changeset:"06474e929f49c4db165b7e9c7b1e1f3c8c4d1354" 06474e9]:
{{{
#!CommitTicketReference repository=""
revision="06474e929f49c4db165b7e9c7b1e1f3c8c4d1354"
[3.1.x] Refs #30165 -- Removed leftover 'u' prefix.

Backport of bac5777bff8e8d8189193438b5af52f158a3f2a4 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30165#comment:7>

Django

unread,
Jul 29, 2020, 4:21:23 AM7/29/20
to django-...@googlegroups.com
#30165: Deprecate ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and
ungettext_lazy()
-------------------------------------+-------------------------------------

Reporter: Jon Dufresne | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: | Version: master
Internationalization |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Carlton Gibson <carlton.gibson@…>):

In [changeset:"e0397e11b560a502933fbffd84ff069b4dcbd31b" e0397e1]:
{{{
#!CommitTicketReference repository=""
revision="e0397e11b560a502933fbffd84ff069b4dcbd31b"
[3.0.x] Refs #30165 -- Removed leftover 'u' prefix.

Backport of bac5777bff8e8d8189193438b5af52f158a3f2a4 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30165#comment:8>

Django

unread,
Jan 14, 2021, 2:12:18 PM1/14/21
to django-...@googlegroups.com
#30165: Deprecate ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and
ungettext_lazy()
-------------------------------------+-------------------------------------

Reporter: Jon Dufresne | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: | Version: master
Internationalization |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"52a238ddf2ceb5211daa2ab23c626473685729b5" 52a238dd]:
{{{
#!CommitTicketReference repository=""
revision="52a238ddf2ceb5211daa2ab23c626473685729b5"
Refs #30165 -- Removed ugettext(), ugettext_lazy(), ugettext_noop(),
ungettext(), and ungettext_lazy() per deprecation timeline.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30165#comment:9>

Reply all
Reply to author
Forward
0 new messages