Quickshell qstr seems not to be working, trying to implement custom translation

Add Chinese (zh_CN) translations for Quickshell interface and settings
This commit is contained in:
月月
2025-06-17 12:29:21 +08:00
parent 54dfad1d5b
commit b32734b9f5
50 changed files with 1324 additions and 187 deletions
@@ -151,7 +151,7 @@ Rectangle {
color: Appearance.m3colors.m3onSecondaryContainer
text: messageData?.role == 'assistant' ? Ai.models[messageData?.model].name :
(messageData?.role == 'user' && SystemInfo.username) ? SystemInfo.username :
qsTr("Interface")
Translation.tr("Interface")
}
}
}
@@ -173,7 +173,7 @@ Rectangle {
text: "visibility_off"
}
StyledToolTip {
content: qsTr("Not visible to model")
content: Translation.tr("Not visible to model")
}
}
@@ -200,7 +200,7 @@ Rectangle {
}
StyledToolTip {
content: qsTr("Copy")
content: Translation.tr("Copy")
}
}
AiMessageControlButton {
@@ -215,7 +215,7 @@ Rectangle {
}
}
StyledToolTip {
content: root.editing ? qsTr("Save") : qsTr("Edit")
content: root.editing ? Translation.tr("Save") : Translation.tr("Edit")
}
}
AiMessageControlButton {
@@ -226,7 +226,7 @@ Rectangle {
root.renderMarkdown = !root.renderMarkdown
}
StyledToolTip {
content: qsTr("View Markdown source")
content: Translation.tr("View Markdown source")
}
}
AiMessageControlButton {
@@ -236,7 +236,7 @@ Rectangle {
Ai.removeMessage(root.messageIndex)
}
StyledToolTip {
content: qsTr("Delete")
content: Translation.tr("Delete")
}
}
}