forked from Shinonome/dots-hyprland
use qsTr (for translations later)
This commit is contained in:
@@ -27,7 +27,7 @@ Item {
|
||||
color: Appearance.colors.colSubtext
|
||||
Layout.preferredWidth: preferredWidth
|
||||
elide: Text.ElideRight
|
||||
text: activeWindow?.activated ? activeWindow?.appId : "Desktop"
|
||||
text: activeWindow?.activated ? activeWindow?.appId : qsTr("Desktop")
|
||||
}
|
||||
|
||||
StyledText {
|
||||
@@ -35,7 +35,7 @@ Item {
|
||||
color: Appearance.colors.colOnLayer0
|
||||
Layout.preferredWidth: preferredWidth
|
||||
elide: Text.ElideRight
|
||||
text: activeWindow?.activated ? activeWindow?.title : `Workspace ${monitor.activeWorkspace?.id}`
|
||||
text: activeWindow?.activated ? activeWindow?.title : `${qsTr("Workspace")} ${monitor.activeWorkspace?.id}`
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import Quickshell.Services.Mpris
|
||||
|
||||
Item {
|
||||
readonly property MprisPlayer activePlayer: MprisController.activePlayer
|
||||
readonly property string cleanedTitle: activePlayer?.trackTitle.replace(/【[^】]*】/, "") || "No media"
|
||||
readonly property string cleanedTitle: activePlayer?.trackTitle.replace(/【[^】]*】/, "") || qsTr("No media")
|
||||
|
||||
Layout.fillHeight: true
|
||||
implicitWidth: rowLayout.implicitWidth + rowLayout.spacing * 2
|
||||
|
||||
Reference in New Issue
Block a user