change qsTr to Translation.tr. support translation

This commit is contained in:
woozepao
2025-10-04 17:51:24 -05:00
parent 60e18c4854
commit 7b22553f09
@@ -391,13 +391,13 @@ Variants {
id: safetyStatusText id: safetyStatusText
shown: bgRoot.wallpaperSafetyTriggered shown: bgRoot.wallpaperSafetyTriggered
statusIcon: "hide_image" statusIcon: "hide_image"
statusText: qsTr("Wallpaper safety enforced") statusText: Translation.tr("Wallpaper safety enforced")
} }
ClockStatusText { ClockStatusText {
id: lockStatusText id: lockStatusText
shown: GlobalStates.screenLocked && Config.options.lock.showLockedText shown: GlobalStates.screenLocked && Config.options.lock.showLockedText
statusIcon: "lock" statusIcon: "lock"
statusText: qsTr("Locked") statusText: Translation.tr("Locked")
} }
Item { Item {
Layout.fillWidth: bgRoot.textHorizontalAlignment !== Text.AlignRight Layout.fillWidth: bgRoot.textHorizontalAlignment !== Text.AlignRight