1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-25 05:52:50 -05:00

Localization framework

This commit is contained in:
bbedward
2025-10-06 16:00:50 -04:00
parent 2ccec607a0
commit 5460c20ac3
79 changed files with 5356 additions and 396 deletions

View File

@@ -82,7 +82,7 @@ PluginComponent {
}
StyledText {
text: "Disconnect"
text: qsTr("Disconnect")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -133,14 +133,14 @@ PluginComponent {
}
StyledText {
text: "No VPN profiles found"
text: qsTr("No VPN profiles found")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceVariantText
anchors.horizontalCenter: parent.horizontalCenter
}
StyledText {
text: "Add a VPN in NetworkManager"
text: qsTr("Add a VPN in NetworkManager")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
anchors.horizontalCenter: parent.horizontalCenter

View File

@@ -55,7 +55,7 @@ Row {
}
Typography {
text: "Add Widget"
text: qsTr("Add Widget")
style: Typography.Style.Subtitle
color: Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter
@@ -155,7 +155,7 @@ Row {
}
Typography {
text: "Add Widget"
text: qsTr("Add Widget")
style: Typography.Style.Button
color: Theme.primary
anchors.verticalCenter: parent.verticalCenter
@@ -189,7 +189,7 @@ Row {
}
Typography {
text: "Defaults"
text: qsTr("Defaults")
style: Typography.Style.Button
color: Theme.warning
anchors.verticalCenter: parent.verticalCenter
@@ -223,7 +223,7 @@ Row {
}
Typography {
text: "Reset"
text: qsTr("Reset")
style: Typography.Style.Button
color: Theme.error
anchors.verticalCenter: parent.verticalCenter

View File

@@ -30,7 +30,7 @@ Rectangle {
StyledText {
id: headerText
text: "Input Devices"
text: qsTr("Input Devices")
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium

View File

@@ -30,7 +30,7 @@ Rectangle {
StyledText {
id: headerText
text: "Audio Devices"
text: qsTr("Audio Devices")
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium

View File

@@ -133,7 +133,7 @@ Rectangle {
spacing: Theme.spacingXS
StyledText {
text: "Health"
text: qsTr("Health")
font.pixelSize: Theme.fontSizeSmall
color: Theme.primary
font.weight: Font.Medium
@@ -168,7 +168,7 @@ Rectangle {
spacing: Theme.spacingXS
StyledText {
text: "Capacity"
text: qsTr("Capacity")
font.pixelSize: Theme.fontSizeSmall
color: Theme.primary
font.weight: Font.Medium
@@ -237,7 +237,7 @@ Rectangle {
width: parent.width - Theme.iconSize - Theme.spacingM
StyledText {
text: "Power Profile Degradation"
text: qsTr("Power Profile Degradation")
font.pixelSize: Theme.fontSizeLarge
color: Theme.error
font.weight: Font.Medium

View File

@@ -170,7 +170,7 @@ Item {
}
StyledText {
text: "Audio Codec Selection"
text: qsTr("Audio Codec Selection")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceTextMedium
}

View File

@@ -39,7 +39,7 @@ Rectangle {
StyledText {
id: headerText
text: "Bluetooth Settings"
text: qsTr("Bluetooth Settings")
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium
@@ -422,7 +422,7 @@ Rectangle {
StyledText {
anchors.centerIn: parent
text: "No Bluetooth adapter found"
text: qsTr("No Bluetooth adapter found")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceVariantText
}
@@ -473,7 +473,7 @@ Rectangle {
}
MenuItem {
text: "Audio Codec"
text: qsTr("Audio Codec")
height: bluetoothContextMenu.currentDevice && BluetoothService.isAudioDevice(bluetoothContextMenu.currentDevice) && bluetoothContextMenu.currentDevice.connected ? 32 : 0
visible: bluetoothContextMenu.currentDevice && BluetoothService.isAudioDevice(bluetoothContextMenu.currentDevice) && bluetoothContextMenu.currentDevice.connected
@@ -498,7 +498,7 @@ Rectangle {
}
MenuItem {
text: "Forget Device"
text: qsTr("Forget Device")
height: 32
contentItem: StyledText {

View File

@@ -44,7 +44,7 @@ Rectangle {
StyledText {
id: headerText
text: "Network Settings"
text: qsTr("Network Settings")
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium
@@ -136,7 +136,7 @@ Rectangle {
StyledText {
anchors.horizontalCenter: parent.horizontalCenter
text: "WiFi is off"
text: qsTr("WiFi is off")
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium
@@ -154,7 +154,7 @@ Rectangle {
StyledText {
anchors.centerIn: parent
text: "Enable WiFi"
text: qsTr("Enable WiFi")
color: Theme.primary
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
@@ -380,7 +380,7 @@ Rectangle {
}
MenuItem {
text: "Network Info"
text: qsTr("Network Info")
height: 32
contentItem: StyledText {
@@ -403,7 +403,7 @@ Rectangle {
}
MenuItem {
text: "Forget Network"
text: qsTr("Forget Network")
height: networkContextMenu.currentSaved || networkContextMenu.currentConnected ? 32 : 0
visible: networkContextMenu.currentSaved || networkContextMenu.currentConnected

View File

@@ -65,7 +65,7 @@ PanelWindow {
width: parent.width
StyledText {
text: "Power Options"
text: qsTr("Power Options")
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium
@@ -118,7 +118,7 @@ PanelWindow {
}
StyledText {
text: "Log Out"
text: qsTr("Log Out")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
font.weight: Font.Medium
@@ -168,7 +168,7 @@ PanelWindow {
}
StyledText {
text: "Suspend"
text: qsTr("Suspend")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
font.weight: Font.Medium
@@ -218,7 +218,7 @@ PanelWindow {
}
StyledText {
text: "Reboot"
text: qsTr("Reboot")
font.pixelSize: Theme.fontSizeMedium
color: rebootArea.containsMouse ? Theme.warning : Theme.surfaceText
font.weight: Font.Medium
@@ -268,7 +268,7 @@ PanelWindow {
}
StyledText {
text: "Power Off"
text: qsTr("Power Off")
font.pixelSize: Theme.fontSizeMedium
color: powerOffArea.containsMouse ? Theme.error : Theme.surfaceText
font.weight: Font.Medium