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
+3 -2
View File
@@ -4,6 +4,7 @@ pragma ComponentBehavior: Bound
// From https://github.com/caelestia-dots/shell/ (`quickshell` branch) with modifications.
// License: GPLv3
import "root:/services/"
import Quickshell
import Quickshell.Io
import Quickshell.Hyprland
@@ -140,13 +141,13 @@ Singleton {
GlobalShortcut {
name: "brightnessIncrease"
description: qsTr("Increase brightness")
description: Translation.tr("Increase brightness")
onPressed: root.increaseBrightness()
}
GlobalShortcut {
name: "brightnessDecrease"
description: qsTr("Decrease brightness")
description: Translation.tr("Decrease brightness")
onPressed: root.decreaseBrightness()
}
}