1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 06: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

@@ -311,7 +311,7 @@ DankPopout {
spacing: Theme.spacingXS
StyledText {
text: "Health"
text: qsTr("Health")
font.pixelSize: Theme.fontSizeSmall
color: Theme.primary
font.weight: Font.Medium
@@ -346,7 +346,7 @@ DankPopout {
spacing: Theme.spacingXS
StyledText {
text: "Capacity"
text: qsTr("Capacity")
font.pixelSize: Theme.fontSizeSmall
color: Theme.primary
font.weight: Font.Medium
@@ -415,7 +415,7 @@ DankPopout {
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

@@ -96,7 +96,7 @@ DankPopout {
height: 32
StyledText {
text: "VPN Connections"
text: qsTr("VPN Connections")
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium
@@ -206,7 +206,7 @@ DankPopout {
}
StyledText {
text: "Disconnect"
text: qsTr("Disconnect")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -262,14 +262,14 @@ DankPopout {
}
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

@@ -140,7 +140,7 @@ Rectangle {
id: cpuBaseline
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium
text: "100%"
text: qsTr("100%")
}
width: root.minimumWidth ? Math.max(cpuBaseline.width, paintedWidth) : paintedWidth

View File

@@ -140,7 +140,7 @@ Rectangle {
id: tempBaseline
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium
text: "100°"
text: qsTr("100°")
}
width: root.minimumWidth ? Math.max(tempBaseline.width, paintedWidth) : paintedWidth

View File

@@ -225,7 +225,7 @@ Rectangle {
id: diskBaseline
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium
text: "100%"
text: qsTr("100%")
}
width: Math.max(diskBaseline.width, paintedWidth)

View File

@@ -207,7 +207,7 @@ Rectangle {
id: gpuTempBaseline
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium
text: "100°"
text: qsTr("100°")
}
width: root.minimumWidth ? Math.max(gpuTempBaseline.width, paintedWidth) : paintedWidth

View File

@@ -141,7 +141,7 @@ Rectangle {
id: ramBaseline
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium
text: "100%"
text: qsTr("100%")
}
width: root.minimumWidth ? Math.max(ramBaseline.width, paintedWidth) : paintedWidth

View File

@@ -610,7 +610,7 @@ Rectangle {
StyledText {
anchors.centerIn: parent
text: "Close"
text: qsTr("Close")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Normal

View File

@@ -445,7 +445,7 @@ Rectangle {
}
StyledText {
text: "Back"
text: qsTr("Back")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter