Convert ugettext to gettext.

Review Request #12026 — Created Feb. 2, 2022 and submitted — Latest diff uploaded

Information

Review Board
master

Reviewers

Now that Django is Python 3 only, the regular gettext methods always
return unicode str types. The aliases prefixed with u were
deprecated and will be removed in Django 4.x, so we should switch over
now to silence a ton of warnings.

Ran unit tests.

Changes between revision 1 and 2

orig
1
2

Commits

Summary ID Author
Convert ugettext to gettext.
Now that Django is Python 3 only, the regular `gettext` methods always return unicode `str` types. The aliases prefixed with `u` were deprecated and will be removed in Django 4.x, so we should switch over now to silence a ton of warnings. Testing Done: Ran unit tests.
5d7cffb174f85324d432594d47f8ae81c9fadc0c David Trowbridge
Convert ugettext to gettext.
Now that Django is Python 3 only, the regular `gettext` methods always return unicode `str` types. The aliases prefixed with `u` were deprecated and will be removed in Django 4.x, so we should switch over now to silence a ton of warnings. Testing Done: Ran unit tests.
fe2dfdb587abffd4acdb816d971fbf49b918561a David Trowbridge
reviewboard/admin/decorators.py
Loading...