Mercurial > p > roundup > code
view website/www/contents.txt @ 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 | c2fd254c9257 |
| children | 6d4b5005abf2 |
line wrap: on
line source
.. Roundup documentation master file, created by sphinx-quickstart on Tue Jan 20 17:33:20 2009. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Sitemap ======= Contents: .. toctree:: :maxdepth: 2 Home <index> Download <https://pypi.org/project/roundup/> docs Issues <https://issues.roundup-tracker.org> contact Wiki <https://wiki.roundup-tracker.org> code .. toctree:: :hidden: docs/announcement
