1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-08 06:25:37 -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

@@ -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
}