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.

Diff Revision 1

This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.

orig
1
2

Commits

First Last 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
This diff has been split across 8 pages: < 1 2 3 4 5 6 7 8 >
reviewboard/admin/siteconfig.py
reviewboard/admin/validation.py
reviewboard/admin/views.py
reviewboard/admin/widgets.py
reviewboard/admin/forms/auth_settings.py
reviewboard/admin/forms/avatar_settings.py
reviewboard/admin/forms/diff_settings.py
reviewboard/admin/forms/email_settings.py
reviewboard/admin/forms/general_settings.py
reviewboard/admin/forms/logging_settings.py
reviewboard/admin/forms/privacy_settings.py
reviewboard/admin/forms/search_settings.py
reviewboard/admin/forms/ssh_settings.py
reviewboard/admin/forms/storage_settings.py
reviewboard/admin/forms/support_settings.py
reviewboard/admin/management/sites.py
reviewboard/admin/management/commands/resolve-check.py
reviewboard/attachments/admin.py
reviewboard/attachments/models.py
reviewboard/changedescs/admin.py
This diff has been split across 8 pages: < 1 2 3 4 5 6 7 8 >
Loading...