luci-app-statistics: DSL: Make labels translatable. 6453/head
authorDominik Riebeling <bluebrother@posteo.de>
Sun, 2 Jul 2023 19:27:24 +0000 (21:27 +0200)
committerDominik Riebeling <bluebrother@posteo.de>
Sun, 2 Jul 2023 19:28:40 +0000 (21:28 +0200)
Signed-off-by: Dominik Riebeling <bluebrother@posteo.de>
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/dsl.js

index b81542c570504c3ff1068e340ef0d25d158fbefc..87e2d989e4171fd2308ffa96a934cd43326156b3 100644 (file)
@@ -10,38 +10,38 @@ return L.Class.extend({
                var dtypes = graph.dataTypes(host, plugin, plugin_instance);
 
                const d_snr = {
-                       title: "DSL Signal",
+                       title: _("DSL Signal"),
                        vlabel: "dB",
                        data: {
                                types: ["snr"],
                                options: {
                                        snr_latn_up: {
-                                               title: "Line Attenuation Up (LATN)",
+                                               title: _("Line Attenuation Up (LATN)"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        snr_latn_down: {
-                                               title: "Line Attenuation Down (LATN)",
+                                               title: _("Line Attenuation Down (LATN)"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        snr_satn_up: {
-                                               title: "Signal Attenuation Up (SATN)",
+                                               title: _("Signal Attenuation Up (SATN)"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        snr_satn_down: {
-                                               title: "Signal Attenuation Down (SATN)",
+                                               title: _("Signal Attenuation Down (SATN)"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        snr_snr_up: {
-                                               title: "Noise Margin Up (SNR)",
+                                               title: _("Noise Margin Up (SNR)"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        snr_snr_down: {
-                                               title: "Noise Margin Down (SNR)",
+                                               title: _("Noise Margin Down (SNR)"),
                                                noarea: true,
                                                overlay: true
                                        },
@@ -49,20 +49,20 @@ return L.Class.extend({
                        }
                };
                const d_uptime = {
-                       title: "DSL Line Uptime",
+                       title: _("DSL Line Uptime"),
                        vlabel: "seconds",
                        data: {
                                types: ["uptime"],
                                options: {
                                        uptime: {
-                                               title: "Uptime",
+                                               title: _("Uptime"),
                                                noarea: true
                                        }
                                }
                        }
                };
                const d_flags = {
-                       title: "DSL Flags",
+                       title: _("DSL Flags"),
                        data: {
                                instances: {
                                        bool: [
@@ -74,22 +74,22 @@ return L.Class.extend({
                                },
                                options: {
                                        bool_bitswap_up: {
-                                               title: "Bitswap Up",
+                                               title: _("Bitswap Up"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        bool_bitswap_down: {
-                                               title: "Bitswap Down",
+                                               title: _("Bitswap Down"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        bool_vector_up: {
-                                               title: "Vectoring Up",
+                                               title: _("Vectoring Up"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        bool_vector_down: {
-                                               title: "Vectoring Down",
+                                               title: _("Vectoring Down"),
                                                noarea: true,
                                                overlay: true
                                        },
@@ -97,7 +97,7 @@ return L.Class.extend({
                        }
                };
                const d_bitrate = {
-                       title: "Bitrate",
+                       title: _("Bitrate"),
                        vlabel: "b/s",
                        data: {
                                instances: {
@@ -110,22 +110,22 @@ return L.Class.extend({
                                },
                                options: {
                                        bitrate_attndr_up: {
-                                               title: "Max. Attainable Data Rate (ATTNDR) Up",
+                                               title: _("Max. Attainable Data Rate (ATTNDR) Up"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        bitrate_attndr_down: {
-                                               title: "Max. Attainable Data Rate (ATTNDR) Down",
+                                               title: _("Max. Attainable Data Rate (ATTNDR) Down"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        bitrate_data_rate_up: {
-                                               title: "Data Rate Up",
+                                               title: _("Data Rate Up"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        bitrate_data_rate_down: {
-                                               title: "Data Rate Down",
+                                               title: _("Data Rate Down"),
                                                noarea: true,
                                                overlay: true
                                        }
@@ -133,38 +133,38 @@ return L.Class.extend({
                        }
                };
                        const d_count = {
-                       title: "Errors",
+                       title: _("Errors"),
                        vlabel: "count",
                        data: {
                                types: ["errors"],
                                options: {
                                        errors_rx_corrupted_far: {
-                                               title: "Rx Corrupted Far",
+                                               title: _("Rx Corrupted Far"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        errors_rx_corrupted_near: {
-                                               title: "Rx Corrupted Near",
+                                               title: _("Rx Corrupted Near"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        errors_rx_retransmitted_far: {
-                                               title: "Rx Retransmitted Far",
+                                               title: _("Rx Retransmitted Far"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        errors_tx_retransmitted_far: {
-                                               title: "Tx Retransmitted Far",
+                                               title: _("Tx Retransmitted Far"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        errors_rx_retransmitted_near: {
-                                               title: "Rx Retransmitted Near",
+                                               title: _("Rx Retransmitted Near"),
                                                noarea: true,
                                                overlay: true
                                        },
                                        errors_tx_retransmitted_near: {
-                                               title: "Tx Retransmitted Near",
+                                               title: _("Tx Retransmitted Near"),
                                                noarea: true,
                                                overlay: true
                                        },