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

@@ -549,7 +549,7 @@ Rectangle {
StyledText {
id: clearText
text: "Clear"
text: qsTr("Clear")
color: parent.isHovered ? Theme.primary : Theme.surfaceVariantText
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium
@@ -642,7 +642,7 @@ Rectangle {
StyledText {
id: clearText
text: "Clear"
text: qsTr("Clear")
color: clearButton.isHovered ? Theme.primary : Theme.surfaceVariantText
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium

View File

@@ -24,7 +24,7 @@ Item {
StyledText {
anchors.horizontalCenter: parent.horizontalCenter
text: "Nothing to see here"
text: qsTr("Nothing to see here")
font.pixelSize: Theme.fontSizeLarge
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.3)
font.weight: Font.Medium

View File

@@ -19,7 +19,7 @@ Item {
spacing: Theme.spacingXS
StyledText {
text: "Notifications"
text: qsTr("Notifications")
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium
@@ -53,7 +53,7 @@ Item {
StyledText {
id: tooltipText
text: "Do Not Disturb"
text: qsTr("Do Not Disturb")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -120,7 +120,7 @@ Item {
}
StyledText {
text: "Clear All"
text: qsTr("Clear All")
font.pixelSize: Theme.fontSizeSmall
color: clearArea.containsMouse ? Theme.primary : Theme.surfaceText
font.weight: Font.Medium

View File

@@ -32,7 +32,7 @@ Rectangle {
}
StyledText {
text: "Del: Clear • Shift+Del: Clear All • 1-9: Actions • F10: Help • Esc: Close"
text: qsTr("Del: Clear • Shift+Del: Clear All • 1-9: Actions • F10: Help • Esc: Close")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
width: parent.width

View File

@@ -105,7 +105,7 @@ Rectangle {
spacing: Theme.spacingM
StyledText {
text: "Notification Settings"
text: qsTr("Notification Settings")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Bold
color: Theme.surfaceText
@@ -128,7 +128,7 @@ Rectangle {
}
StyledText {
text: "Do Not Disturb"
text: qsTr("Do Not Disturb")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter
@@ -150,14 +150,14 @@ Rectangle {
}
StyledText {
text: "Notification Timeouts"
text: qsTr("Notification Timeouts")
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium
color: Theme.surfaceVariantText
}
DankDropdown {
text: "Low Priority"
text: qsTr("Low Priority")
description: "Timeout for low priority notifications"
currentValue: getTimeoutText(SettingsData.notificationTimeoutLow)
options: timeoutOptions.map(opt => opt.text)
@@ -172,7 +172,7 @@ Rectangle {
}
DankDropdown {
text: "Normal Priority"
text: qsTr("Normal Priority")
description: "Timeout for normal priority notifications"
currentValue: getTimeoutText(SettingsData.notificationTimeoutNormal)
options: timeoutOptions.map(opt => opt.text)
@@ -187,7 +187,7 @@ Rectangle {
}
DankDropdown {
text: "Critical Priority"
text: qsTr("Critical Priority")
description: "Timeout for critical priority notifications"
currentValue: getTimeoutText(SettingsData.notificationTimeoutCritical)
options: timeoutOptions.map(opt => opt.text)
@@ -228,13 +228,13 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: "Notification Overlay"
text: qsTr("Notification Overlay")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
}
StyledText {
text: "Display all priorities over fullscreen apps"
text: qsTr("Display all priorities over fullscreen apps")
font.pixelSize: Theme.fontSizeSmall - 1
color: Theme.surfaceVariantText
}

View File

@@ -487,7 +487,7 @@ PanelWindow {
StyledText {
id: clearText
text: "Clear"
text: qsTr("Clear")
color: clearButton.isHovered ? Theme.primary : Theme.surfaceVariantText
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium