1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 22:15:38 -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

@@ -194,7 +194,7 @@ Column {
spacing: 4
StyledText {
text: "Memory"
text: qsTr("Memory")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Bold
color: Theme.surfaceText
@@ -269,7 +269,7 @@ Column {
spacing: 4
StyledText {
text: "Swap"
text: qsTr("Swap")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Bold
color: Theme.surfaceText
@@ -359,7 +359,7 @@ Column {
spacing: Theme.spacingXS
StyledText {
text: "Network"
text: qsTr("Network")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Bold
color: Theme.surfaceText
@@ -425,7 +425,7 @@ Column {
spacing: Theme.spacingXS
StyledText {
text: "Disk"
text: qsTr("Disk")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Bold
color: Theme.surfaceText

View File

@@ -85,7 +85,7 @@ Popup {
anchors.left: parent.left
anchors.leftMargin: Theme.spacingS
anchors.verticalCenter: parent.verticalCenter
text: "Copy PID"
text: qsTr("Copy PID")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Normal
@@ -118,7 +118,7 @@ Popup {
anchors.left: parent.left
anchors.leftMargin: Theme.spacingS
anchors.verticalCenter: parent.verticalCenter
text: "Copy Process Name"
text: qsTr("Copy Process Name")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Normal
@@ -168,7 +168,7 @@ Popup {
anchors.left: parent.left
anchors.leftMargin: Theme.spacingS
anchors.verticalCenter: parent.verticalCenter
text: "Kill Process"
text: qsTr("Kill Process")
font.pixelSize: Theme.fontSizeSmall
color: parent.enabled ? (killArea.containsMouse ? Theme.error : Theme.surfaceText) : Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.5)
font.weight: Font.Normal
@@ -204,7 +204,7 @@ Popup {
anchors.left: parent.left
anchors.leftMargin: Theme.spacingS
anchors.verticalCenter: parent.verticalCenter
text: "Force Kill Process"
text: qsTr("Force Kill Process")
font.pixelSize: Theme.fontSizeSmall
color: parent.enabled ? (forceKillArea.containsMouse ? Theme.error : Theme.surfaceText) : Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.5)
font.weight: Font.Normal

View File

@@ -38,7 +38,7 @@ Column {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: "Process"
text: qsTr("Process")
font.pixelSize: Theme.fontSizeSmall
font.family: SettingsData.monoFontFamily
font.weight: DgopService.currentSort === "name" ? Font.Bold : Font.Medium

View File

@@ -48,7 +48,7 @@ Row {
spacing: 2
StyledText {
text: "CPU"
text: qsTr("CPU")
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium
color: DgopService.sortBy === "cpu" ? Theme.primary : Theme.secondary
@@ -163,7 +163,7 @@ Row {
spacing: 2
StyledText {
text: "Memory"
text: qsTr("Memory")
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium
color: DgopService.sortBy === "memory" ? Theme.primary : Theme.secondary
@@ -315,7 +315,7 @@ Row {
spacing: 2
StyledText {
text: "GPU"
text: qsTr("GPU")
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium
color: Theme.secondary
@@ -388,7 +388,7 @@ Row {
id: gpuContextMenu
MenuItem {
text: "Enable GPU Temperature"
text: qsTr("Enable GPU Temperature")
checkable: true
checked: {
if (!DgopService.availableGpus || DgopService.availableGpus.length === 0) {

View File

@@ -127,7 +127,7 @@ DankFlickable {
}
StyledText {
text: "System"
text: qsTr("System")
font.pixelSize: Theme.fontSizeSmall
font.family: SettingsData.monoFontFamily
font.weight: Font.Bold
@@ -411,7 +411,7 @@ DankFlickable {
}
StyledText {
text: "Storage & Disks"
text: qsTr("Storage & Disks")
font.pixelSize: Theme.fontSizeLarge
font.family: SettingsData.monoFontFamily
font.weight: Font.Bold
@@ -431,7 +431,7 @@ DankFlickable {
spacing: Theme.spacingS
StyledText {
text: "Device"
text: qsTr("Device")
font.pixelSize: Theme.fontSizeSmall
font.family: SettingsData.monoFontFamily
font.weight: Font.Bold
@@ -442,7 +442,7 @@ DankFlickable {
}
StyledText {
text: "Mount"
text: qsTr("Mount")
font.pixelSize: Theme.fontSizeSmall
font.family: SettingsData.monoFontFamily
font.weight: Font.Bold
@@ -453,7 +453,7 @@ DankFlickable {
}
StyledText {
text: "Size"
text: qsTr("Size")
font.pixelSize: Theme.fontSizeSmall
font.family: SettingsData.monoFontFamily
font.weight: Font.Bold
@@ -464,7 +464,7 @@ DankFlickable {
}
StyledText {
text: "Used"
text: qsTr("Used")
font.pixelSize: Theme.fontSizeSmall
font.family: SettingsData.monoFontFamily
font.weight: Font.Bold
@@ -475,7 +475,7 @@ DankFlickable {
}
StyledText {
text: "Available"
text: qsTr("Available")
font.pixelSize: Theme.fontSizeSmall
font.family: SettingsData.monoFontFamily
font.weight: Font.Bold
@@ -486,7 +486,7 @@ DankFlickable {
}
StyledText {
text: "Use%"
text: qsTr("Use%")
font.pixelSize: Theme.fontSizeSmall
font.family: SettingsData.monoFontFamily
font.weight: Font.Bold