Skip to content

Commit

Permalink
ENT-2779: call format() on translated string
Browse files Browse the repository at this point in the history
Replace the placeholders in the translated string rather than the
English string, as the English string with replacements cannot be
translated.

RHBZ: 1663390, 1663402, 1663429
Card ID: ENT-2779

(cherry picked from commit b5f9bbe)
  • Loading branch information
ptoscano committed Apr 12, 2021
1 parent 9882b19 commit 59044c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/subscription_manager/managercli.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,8 @@ def show(self):
if syspurpose is not None and self.attr in syspurpose and syspurpose[self.attr]:
val = syspurpose[self.attr]
values = val if not isinstance(val, list) else ", ".join(val)
print(_("Current {name}: {val}".format(name=self.name.capitalize(),
val=values)))
print(_("Current {name}: {val}").format(name=self.name.capitalize(),
val=values))
else:
print(_("{name} not set.").format(name=self.name.capitalize()))

Expand Down

0 comments on commit 59044c4

Please sign in to comment.