diff roundup/roundupdb.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 2b0089104f08
children 24549122f9b1
line wrap: on
line diff
--- a/roundup/roundupdb.py	Wed Feb 28 22:40:32 2024 -0500
+++ b/roundup/roundupdb.py	Fri Mar 01 14:04:05 2024 -0500
@@ -137,7 +137,7 @@
             # Try to make error message less cryptic to the user.
             if str(e) == 'node with key "%s" exists' % username:
                 raise ValueError(
-                    _("Username '%s' already exists." % username))
+                    _("Username '%s' already exists.") % username)
             else:
                 raise
 

Roundup Issue Tracker: http://roundup-tracker.org/