Project

Profile

Help

Issue #8315

closed

Found some instances of bad i18n

Added by daviddavis over 1 year ago. Updated over 1 year ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
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

Related to Pulp - Task #8316: Add check for bad usages of gettextCLOSED - CURRENTRELEASE

Actions
Actions #1

Updated by daviddavis over 1 year ago

  • Tags Easy Fix added
Actions #2

Updated by daviddavis over 1 year ago

  • Related to Task #8316: Add check for bad usages of gettext added
Actions #3

Updated by daviddavis over 1 year ago

  • Description updated (diff)
Actions #4

Updated by daviddavis over 1 year ago

  • Triaged changed from No to Yes
Actions #5

Updated by pulpbot over 1 year ago

  • Status changed from NEW to POST

Added by daviddavis over 1 year ago

Revision dd19a822

Fix bad i18n

fixes #8315

Actions #6

Updated by daviddavis over 1 year ago

  • Status changed from POST to MODIFIED
Actions #7

Updated by ipanova@redhat.com over 1 year ago

  • Sprint/Milestone set to 3.11.0
Actions #8

Updated by ipanova@redhat.com over 1 year ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF