Mercurial > p > roundup > code
view roundup/dist/command/install_lib.py @ 7750:216662fbaaee
fix(i18n): fix incorrect lookup of some translations
The code had:
_("some term %s here" % term)
this extracts the template, but looks up the string with %s replaced.
So the translation is broken. Changed to:
_("some term %s here") % term
which looks up the template and substitutes in the translation of the
template.
Found by ruff INT ruleset.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 01 Mar 2024 14:04:05 -0500 |
| parents | 42bf0a707763 |
| children |
line wrap: on
line source
from roundup.dist.command.build import build_message_files, check_manifest from setuptools.command.install_lib import install_lib as base class install_lib(base): def run(self): check_manifest() build_message_files(self) base.run(self)
