luci-app-transmission: fix i18n compile warn
authorPaul Donald <newtwen+github@gmail.com>
Tue, 3 Feb 2026 07:17:08 +0000 (08:17 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Tue, 3 Feb 2026 07:49:05 +0000 (08:49 +0100)
Message contains an embedded URL.
Better move it out of the translatable string

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
applications/luci-app-transmission/htdocs/luci-static/resources/view/transmission.js

index 8381f8692437dea19548c5cb3f00208cff5fae27..de4a4e52de626e5dd7b6d98bfd53bbe15dbe4337 100644 (file)
@@ -176,7 +176,7 @@ return view.extend({
                o = s.option(form.Value, 'bind_address_ipv6', _('Binding address IPv6'));
 
                o = s.option(form.Value, 'peer_congestion_algorithm', _('Peer congestion algorithm'),
-                       _('This is documented on <a href="https://www.irif.fr/~jch/software/bittorrent/tcp-congestion-control.html" target="_blank" rel="noreferrer noopener">tcp-congestion-control</a>.'));
+                       _('This is documented on %s.'.format('<a href="https://www.irif.fr/~jch/software/bittorrent/tcp-congestion-control.html" target="_blank" rel="noreferrer noopener">tcp-congestion-control</a>')));
 
                o = s.option(form.Value, 'peer_id_ttl_hours', _('Recycle peer id after'), _('hours'));