1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-19 01:25:21 -04:00

Add context to font weight keys, wrap render settings, fix uptime prefix (#2529)

* fix: i18n inconsistencies

* Update UserInfoCard.qml
This commit is contained in:
Youseffo13
2026-06-01 00:10:43 +02:00
committed by GitHub
parent 98844a3b85
commit b1ac6b0ef9
4 changed files with 36 additions and 25 deletions
@@ -22,6 +22,15 @@ FloatingWindow {
signal widgetSelected(string widgetId, string targetSection)
function translateSection(section) {
switch (section.toLowerCase()) {
case "left": return I18n.tr("Left Section");
case "center": return I18n.tr("Center Section");
case "right": return I18n.tr("Right Section");
default: return section;
}
}
function updateFilteredWidgets() {
if (!searchQuery || searchQuery.length === 0) {
filteredWidgets = allWidgets.slice();
@@ -224,7 +233,7 @@ FloatingWindow {
}
StyledText {
text: I18n.tr("Add Widget to %1 Section").arg(root.targetSection)
text: I18n.tr("Add Widget to %1").arg(translateSection(root.targetSection))
font.pixelSize: Theme.fontSizeXLarge
color: Theme.surfaceText
font.weight: Font.Medium