luci-app-bmx7: convert to JS
authorPaul Donald <redacted>
Tue, 24 Feb 2026 02:32:35 +0000 (03:32 +0100)
committerPaul Donald <redacted>
Tue, 24 Feb 2026 02:32:35 +0000 (03:32 +0100)
follow-up to f578786152c9e792202a8a9d08312a72849bf6d5

Signed-off-by: Paul Donald <redacted>
applications/luci-app-bmx7/ucode/template/bmx7/bmxnodes.ut
applications/luci-app-bmx7/ucode/template/bmx7/bmxstatus.ut
applications/luci-app-bmx7/ucode/template/bmx7/bmxtunnels.ut

index 6718e33182bc7f8768dd214189866747cf51960f..032f1060d835459ba0c07ba41a13a4c8f2d2f20c 100644 (file)
@@ -56,7 +56,7 @@
 
 <div class="cbi-map">
 
-<h2>Mesh nodes</h2>
+<h2>{{ _('Mesh nodes') }}</h2>
 <div class="cbi-map-descr"></div>
 <div id="extra-info" class="info">
        <br />
@@ -74,7 +74,7 @@
                        <div class="th"></div>
                        <div class="th">{{_('Name')}}</div>
                        <div class="th">{{_('Short ID')}}</div>
-                       <div class="th">S/s/T/t</div>
+                       <div class="th">{{ _('S/s/T/t') }}</div>
                        <div class="th">{{_('Primary IPv6')}}</div>
                        <div class="th">{{_('Via Neighbour')}}</div>
                        <div class="th">{{_('Metric')}}</div>
                        + "<h4><u>" + name  + '</u></h4>\n'
                        + 'Node ID: ' + shortId + "</div>"
                        + "<div class='inforow'>"
-                       + "<h5>Primary IPv6 address</h5>\n"
+                       + "<h5>{{ _('Primary IPv6 address') }}</h5>\n"
                        + primaryIp + "</div>\n"
                        + "<div class='inforow'>"
-                       + "<h5>Support & Trust</h5>\n"
+                       + "<h5>{{ _('Support & Trust') }}</h5>\n"
                        + SsTt + "</div>\n"
                        + "<div class='inforow'>"
-                       + "<h5>Node key</h5>\n"
+                       + "<h5>{{ _('Node key') }}</h5>\n"
                        + nodeKey + "</div>\n"
                        + "<div class='inforow newline'>"
-                       + "<h5>Via neighbour</h5>\n"
+                       + "<h5>{{ _('Via neighbour') }}</h5>\n"
                        + nbName + "</div>\n"
                        + "<div class='inforow'>"
-                       + "<h5>Via device</h5>\n"
+                       + "<h5>{{ _('Via device') }}</h5>\n"
                        + dev + "</div>\n"
                        + "<div class='inforow'>"
-                       + "<h5>Via link-local IPv6</h5>\n"
+                       + "<h5>{{ _('Via link-local IPv6') }}</h5>\n"
                        + nbLocalIp + "</div>\n"
                        + "<div class='inforow'>"
-                       + "<h5>Route metric</h5>\n"
+                       + "<h5>{{ _('Route metric') }}</h5>\n"
                        + metric + "</div>\n"
                        + "<div class='inforow'>"
-                       + "<h5>Desc. size</h5>\n"
+                       + "<h5>{{ _('Desc. size') }}</h5>\n"
                        + descSize + "</div>\n"
                        + "\n</div>";
 
index 8063868cf92713cf39391e5c01085abf6e2ebd50..12a85187e4c335d1c06c11fa13cf7417748e5b40 100644 (file)
@@ -8,8 +8,8 @@
                <img src="{{ resource }}/bmx7/bmx7logo.png" />
                <br />
                <br />
-               A mesh routing protocol for Linux devices.<br />
-               Visit <a href="http://bmx6.net">bmx6.net</a> for more information.<br />
+               {{ _('A mesh routing protocol for Linux devices.') }}<br />
+               {{ _('Visit %s for more information.').format('<a href="http://bmx6.net">bmx6.net</a>')}}<br />
                <br />
        </center>
 
index 9477aa3cab8559d1343030bdc223d9c989bcbab8..81b9f5b73a26f27b92e3877e99b2b8b518fc38e9 100644 (file)
@@ -27,7 +27,7 @@
 
 <div class="cbi-map">
 <h2>Gateway announcements</h2>
-<div class="cbi-map-descr">Networks announced by mesh nodes</div>
+<div class="cbi-map-descr">{{ _('Networks announced by mesh nodes') }}</div>
 
 <div class="cbi-section">
        <legend>{{ _('Announcements') }}</legend>
git clone https://git.99rst.org/PROJECT