diff --git a/quickshell/Modules/ControlCenter/Components/HeaderPane.qml b/quickshell/Modules/ControlCenter/Components/HeaderPane.qml index 68e5c949..66e3a59d 100644 --- a/quickshell/Modules/ControlCenter/Components/HeaderPane.qml +++ b/quickshell/Modules/ControlCenter/Components/HeaderPane.qml @@ -60,7 +60,7 @@ Rectangle { } Typography { - text: DgopService.uptime || I18n.tr("Unknown") + text: DgopService.uptime ? I18n.tr("up") + " " + DgopService.uptime.slice(3) : I18n.tr("Unknown") style: Typography.Style.Caption color: Theme.surfaceVariantText } diff --git a/quickshell/Modules/DankDash/Overview/UserInfoCard.qml b/quickshell/Modules/DankDash/Overview/UserInfoCard.qml index 0d90b44e..dfe10c49 100644 --- a/quickshell/Modules/DankDash/Overview/UserInfoCard.qml +++ b/quickshell/Modules/DankDash/Overview/UserInfoCard.qml @@ -99,7 +99,9 @@ Card { } StyledText { - text: DgopService.shortUptime || I18n.tr("up") + text: DgopService.shortUptime + ? I18n.tr("up") + DgopService.shortUptime.slice(2) + : I18n.tr("up") font.pixelSize: Theme.fontSizeSmall color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.7) anchors.verticalCenter: parent.verticalCenter diff --git a/quickshell/Modules/Settings/TypographyMotionTab.qml b/quickshell/Modules/Settings/TypographyMotionTab.qml index 1be986b4..283effec 100644 --- a/quickshell/Modules/Settings/TypographyMotionTab.qml +++ b/quickshell/Modules/Settings/TypographyMotionTab.qml @@ -251,59 +251,59 @@ Item { settingKey: "fontWeight" text: I18n.tr("Font Weight") description: I18n.tr("Select font weight for UI text") - options: [I18n.tr("Thin"), I18n.tr("Extra Light"), I18n.tr("Light"), I18n.tr("Regular"), I18n.tr("Medium"), I18n.tr("Demi Bold"), I18n.tr("Bold"), I18n.tr("Extra Bold"), I18n.tr("Black")] + options: [I18n.tr("Thin", "font weight"), I18n.tr("Extra Light", "font weight"), I18n.tr("Light", "font weight"), I18n.tr("Regular", "font weight"), I18n.tr("Medium", "font weight"), I18n.tr("Demi Bold", "font weight"), I18n.tr("Bold", "font weight"), I18n.tr("Extra Bold", "font weight"), I18n.tr("Black", "font weight")] currentValue: { switch (SettingsData.fontWeight) { case Font.Thin: - return I18n.tr("Thin"); + return I18n.tr("Thin", "font weight"); case Font.ExtraLight: - return I18n.tr("Extra Light"); + return I18n.tr("Extra Light", "font weight"); case Font.Light: - return I18n.tr("Light"); + return I18n.tr("Light", "font weight"); case Font.Normal: - return I18n.tr("Regular"); + return I18n.tr("Regular", "font weight"); case Font.Medium: - return I18n.tr("Medium"); + return I18n.tr("Medium", "font weight"); case Font.DemiBold: - return I18n.tr("Demi Bold"); + return I18n.tr("Demi Bold", "font weight"); case Font.Bold: - return I18n.tr("Bold"); + return I18n.tr("Bold", "font weight"); case Font.ExtraBold: - return I18n.tr("Extra Bold"); + return I18n.tr("Extra Bold", "font weight"); case Font.Black: - return I18n.tr("Black"); + return I18n.tr("Black", "font weight"); default: - return I18n.tr("Regular"); + return I18n.tr("Regular", "font weight"); } } onValueChanged: value => { var weight; switch (value) { - case I18n.tr("Thin"): + case I18n.tr("Thin", "font weight"): weight = Font.Thin; break; - case I18n.tr("Extra Light"): + case I18n.tr("Extra Light", "font weight"): weight = Font.ExtraLight; break; - case I18n.tr("Light"): + case I18n.tr("Light", "font weight"): weight = Font.Light; break; - case I18n.tr("Regular"): + case I18n.tr("Regular", "font weight"): weight = Font.Normal; break; - case I18n.tr("Medium"): + case I18n.tr("Medium", "font weight"): weight = Font.Medium; break; - case I18n.tr("Demi Bold"): + case I18n.tr("Demi Bold", "font weight"): weight = Font.DemiBold; break; - case I18n.tr("Bold"): + case I18n.tr("Bold", "font weight"): weight = Font.Bold; break; - case I18n.tr("Extra Bold"): + case I18n.tr("Extra Bold", "font weight"): weight = Font.ExtraBold; break; - case I18n.tr("Black"): + case I18n.tr("Black", "font weight"): weight = Font.Black; break; default: @@ -347,7 +347,7 @@ Item { buttonPadding: parent.width < 480 ? Theme.spacingS : Theme.spacingL minButtonWidth: parent.width < 480 ? 64 : 96 textSize: parent.width < 480 ? Theme.fontSizeSmall : Theme.fontSizeMedium - model: ["Native", "Qt", "Curve"] + model: [I18n.tr("Native"), I18n.tr("Qt"), I18n.tr("Curve")] selectionMode: "single" currentIndex: { switch (SettingsData.textRenderType) { @@ -455,7 +455,7 @@ Item { buttonPadding: parent.width < 480 ? Theme.spacingXS : Theme.spacingS minButtonWidth: parent.width < 480 ? 40 : 56 textSize: parent.width < 480 ? Theme.fontSizeSmall : Theme.fontSizeMedium - model: ["Default", "Low", "Normal", "High", "Very High"] + model: [I18n.tr("Default"), I18n.tr("Low"), I18n.tr("Normal"), I18n.tr("High"), I18n.tr("Very High")] selectionMode: "single" currentIndex: SettingsData.textRenderQuality onSelectionChanged: (index, selected) => { diff --git a/quickshell/Modules/Settings/WidgetSelectionPopup.qml b/quickshell/Modules/Settings/WidgetSelectionPopup.qml index 446f3376..322ae192 100644 --- a/quickshell/Modules/Settings/WidgetSelectionPopup.qml +++ b/quickshell/Modules/Settings/WidgetSelectionPopup.qml @@ -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