forked from Shinonome/dots-hyprland
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:
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user