luci-app-frpc: fix i18n compile warn
authorPaul Donald <newtwen+github@gmail.com>
Tue, 3 Feb 2026 07:14:34 +0000 (08:14 +0100)
committerPaul Donald <newtwen+github@gmail.com>
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 <newtwen+github@gmail.com>
applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js

index a1bf2442cc4f50babd5b903e1f8ce694871ecf01..443254b18dc3e36d657c559f2edd6bbf102724f3 100644 (file)
@@ -12,7 +12,7 @@ var startupConf = [
        [widgets.UserSelect, 'user', _('Run daemon as user')],
        [widgets.GroupSelect, 'group', _('Run daemon as group')],
        [form.Flag, 'respawn', _('Respawn when crashed')],
-       [form.DynamicList, 'env', _('Environment variable'), _('OS environments pass to frp for config file template, see <a href="https://github.com/fatedier/frp#configuration-file-template">frp README</a>'), {placeholder: 'ENV_NAME=value'}],
+       [form.DynamicList, 'env', _('Environment variable'), _('OS environments pass to frp for config file template, see %s.'.format('<a href="https://github.com/fatedier/frp#configuration-file-template">frp README</a>')), {placeholder: 'ENV_NAME=value'}],
        [form.DynamicList, 'conf_inc', _('Additional configs'), _('Config files include in temporary config file'), {placeholder: '/etc/frp/frpc.d/frpc_full.ini'}]
 ];