Issue #8315
Found some instances of bad i18n
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix
Sprint:
Quarter:
Description
$ grep "_(f" **/*.py
pulpcore/app/models/content.py: _(f"Checksum algorithms {bad_keys} are forbidden for this Pulp instance.")
pulpcore/app/models/content.py: _(f"Missing required checksum algorithms {missing_keys}.")
pulpcore/app/models/content.py: _(f"Checksum algorithm {algorithm} forbidden for this Pulp instance.")
pulpcore/app/models/content.py: _(f"Checksum algorithm {algorithm} forbidden for this Pulp instance.")
pulpcore/app/serializers/content.py: _(f"Checksum algorithms {bad_algs} forbidden for this Pulp instance.")
Variables in f-strings are interpolated before being passed to gettext. We need to switch these to _("{}").format(var)
.
Related issues
Associated revisions
History
#1
Updated by daviddavis about 1 month ago
- Tags Easy Fix added
#2
Updated by daviddavis about 1 month ago
- Related to Task #8316: Add check for bad usages of gettext added
#3
Updated by daviddavis about 1 month ago
- Description updated (diff)
#4
Updated by daviddavis about 1 month ago
- Triaged changed from No to Yes
#5
Updated by pulpbot about 1 month ago
- Status changed from NEW to POST
#6
Updated by daviddavis about 1 month ago
- Status changed from POST to MODIFIED
Applied in changeset pulpcore|dd19a822455f6f972853e66369d62eb819a84af6.
#7
Updated by ipanova@redhat.com about 1 month ago
- Sprint/Milestone set to 3.11.0
#8
Updated by ipanova@redhat.com 30 days ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Please register to edit this issue
Fix bad i18n
fixes #8315