chore work no one wants to do :P

This commit is contained in:
Turann_
2026-02-11 02:01:33 +03:00
parent 89eccc83d4
commit ec4fd9f858
6 changed files with 24 additions and 18 deletions
+10 -3
View File
@@ -504,7 +504,8 @@
"widgets": "Widgets",
"width": "Width",
"windows": "Windows",
"yes": "Yes"
"yes": "Yes",
"confirm": "Confirm"
},
"control-center": {
"power-profile": {
@@ -1190,12 +1191,18 @@
"show-session-buttons-label": "Power controls",
"title": "Lock Screen"
},
"network": {
"connections": {
"bluetooth-description": "Activate Bluetooth management.",
"bluetooth-rssi-polling-description": "Periodically sample RSSI for connected devices via bluetoothctl. May not be available for all devices; uses minimal resources when enabled.",
"bluetooth-rssi-polling-label": "Bluetooth signal polling",
"desc": "Manage Wi-Fi and Bluetooth connections.",
"wifi-description": "Manage wireless networks (requires NetworkManager)."
"wifi-description": "Manage wireless networks (requires NetworkManager).",
"bluetooth-discoverable": "This device is discoverable as <b> {hostName} </b> while this settings tab is open.",
"bluetooth-devices-unnamed": "Devices found but filtered.",
"authentication-required": "Authentication required",
"pin-instructions": "",
"title": "Connections",
"ethernet": "Ethernet"
},
"notifications": {
"duration-critical-urgency-description": "How long critical priority notifications stay visible.",
+5 -5
View File
@@ -407,8 +407,8 @@ Item {
OsdTab {}
}
Component {
id: networkTab
NetworkTab {}
id: connectionsTab
ConnectionsTab {}
}
Component {
id: regionTab
@@ -560,10 +560,10 @@ Item {
"source": displayTab
},
{
"id": SettingsPanel.Tab.Network,
"label": "common.network",
"id": SettingsPanel.Tab.Connections,
"label": "panels.connections.title",
"icon": "settings-network",
"source": networkTab
"source": connectionsTab
},
{
"id": SettingsPanel.Tab.Location,
+1 -1
View File
@@ -84,7 +84,7 @@ SmartPanel {
Hooks,
Launcher,
Location,
Network,
Connections,
Notifications,
Plugins,
SessionMenu,
@@ -185,8 +185,7 @@ Item {
}
NText {
text: "This device is discoverable as <b>" + HostService.hostName + "</b> while this settings tab is open."
// TODO: missing: i18n
text: I18n.tr("panels.connections.bluetooth-discoverable", {hostName: HostService.hostName})
visible: (BluetoothService.enabled && isDiscoverable)
richTextEnabled: true
wrapMode: Text.WordWrap
@@ -302,7 +301,7 @@ Item {
NText {
visible: btprefs.availableDevices.length === 0 && btprefs.unnamedAvailableDevices.length > 0
text: I18n.tr("bluetooth.panel.no-named-devices")
text: I18n.tr("panels.connections.bluetooth-devices-unnamed")
pointSize: Style.fontSizeS
color: Color.mOnSurfaceVariant
horizontalAlignment: Text.AlignHCenter
@@ -328,8 +327,8 @@ Item {
// RSSI Polling
NToggle {
label: I18n.tr("panels.network.bluetooth-rssi-polling-label")
description: I18n.tr("panels.network.bluetooth-rssi-polling-description")
label: I18n.tr("panels.connections.bluetooth-rssi-polling-label")
description: I18n.tr("panels.connections.bluetooth-rssi-polling-description")
checked: Settings.data && Settings.data.network && Settings.data.network.bluetoothRssiPollingEnabled
onToggled: checked => Settings.data.network.bluetoothRssiPollingEnabled = checked
Layout.alignment: Qt.AlignVCenter
@@ -654,7 +653,7 @@ Item {
Layout.alignment: Qt.AlignHCenter
}
NText {
text: I18n.tr("common.authentication-required")
text: I18n.tr("panels.connections.authentication-required")
pointSize: Style.fontSizeXL
font.weight: Style.fontWeightBold
color: Color.mOnSurface
@@ -662,7 +661,7 @@ Item {
Layout.fillWidth: true
}
NText {
text: I18n.tr("bluetooth.panel.pin-instructions")
text: I18n.tr("panels.connections.pin-instructions")
pointSize: Style.fontSizeM
color: Color.mOnSurfaceVariant
wrapMode: Text.WordWrap
@@ -14,7 +14,7 @@ ColumnLayout {
NToggle {
label: I18n.tr("actions.enable-wifi")
description: I18n.tr("panels.network.wifi-description")
description: I18n.tr("panels.connections.wifi-description")
checked: ProgramCheckerService.nmcliAvailable && Settings.data.network.wifiEnabled
onToggled: checked => NetworkService.setWifiEnabled(checked)
enabled: ProgramCheckerService.nmcliAvailable
@@ -32,7 +32,7 @@ ColumnLayout {
checked: subTabBar.currentIndex === 1
}
NTabButton {
text: I18n.tr("wifi.label-ethernet") // TODO: I18n
text: I18n.tr("panels.connections.ethernet")
// visible: NetworkService.wifiAvailable
enabled: NetworkService.wifiAvailable // Remove when work finished, only use visibility
tabIndex: 2