luci-app-ttyd: fix i18n compile warn
authorPaul Donald <redacted>
Tue, 3 Feb 2026 07:01:32 +0000 (08:01 +0100)
committerPaul Donald <redacted>
Tue, 3 Feb 2026 07:49:04 +0000 (08:49 +0100)
Message contains an embedded URL.
Better move it out of the translatable string

Signed-off-by: Paul Donald <redacted>
applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js

index 114b33b3c6127278301a1de4ed853064d4baa9d0..c9d1a1d8afa318f313fd5891150c182d623ede94 100644 (file)
@@ -46,7 +46,7 @@ return view.extend({
                o = s.option(form.Value, 'signal', _('Signal'), _('Signal to send to the command when exit it (default: 1, SIGHUP)'));
                o.datatype = 'uinteger';
 
-               s.option(form.Flag, 'url_arg', _('Allow URL args'), _('Allow client to send command line arguments in URL (eg: http://localhost:7681?arg=foo&arg=bar)'));
+               s.option(form.Flag, 'url_arg', _('Allow URL args'), _('Allow client to send command line arguments in URL (eg: %s)'.format('http://localhost:7681?arg=foo&arg=bar')));
 
                s.option(form.Flag, 'readonly', _('Read-only'), _('Do not allow clients to write to the TTY'));
 
git clone https://git.99rst.org/PROJECT