Show the desktop shell in Chinese under zh_CN

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 21:29:39 -04:00
1 parent e590f22de6
commit e236713d9f
55 files changed
+867 -331

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
import QtQuick
import Quickshell.Io
import qs.Commons
import qs.Ui
BarIndicator {
@@ -12,7 +13,7 @@ BarIndicator {
activeText: icon
inactiveText: "󰍬"
activeTooltipText: state
inactiveTooltipText: "Dictate"
inactiveTooltipText: I18n.tr("Dictate")
function update(raw) {
var data = extractData(raw)
+2 -2
View File
@@ -11,8 +11,8 @@ BarIndicator {
active: dnd
activeText: "󰂛"
inactiveText: "󰂛"
activeTooltipText: "Allow Notifications"
inactiveTooltipText: "Silence Notifications"
activeTooltipText: I18n.tr("Allow Notifications")
inactiveTooltipText: I18n.tr("Silence Notifications")
onPressed: function() {
if (root.notificationService) {
+3 -2
View File
@@ -1,4 +1,5 @@
import QtQuick
import qs.Commons
import qs.Ui
BarIndicator {
@@ -9,8 +10,8 @@ BarIndicator {
active: nightlightService ? nightlightService.enabled : false
activeText: "󰔎"
inactiveText: "󰔎"
activeTooltipText: "Day Light"
inactiveTooltipText: "Night Light"
activeTooltipText: I18n.tr("Day Light")
inactiveTooltipText: I18n.tr("Night Light")
function toggle() {
if (root.nightlightService) root.nightlightService.setNightlight(!root.active)
@@ -1,5 +1,6 @@
import QtQuick
import Quickshell.Io
import qs.Commons
import qs.Ui
BarIndicator {
@@ -10,8 +11,8 @@ BarIndicator {
active: recording
activeText: "󰻂"
inactiveText: "󰻂"
activeTooltipText: "Stop recording"
inactiveTooltipText: "Screen Recording"
activeTooltipText: I18n.tr("Stop recording")
inactiveTooltipText: I18n.tr("Screen Recording")
function refresh() {
if (!root.bar || statusProc.running) return
+3 -2
View File
@@ -1,4 +1,5 @@
import QtQuick
import qs.Commons
import qs.Ui
BarIndicator {
@@ -9,8 +10,8 @@ BarIndicator {
active: idleService ? idleService.stayAwake : false
activeText: "󰅶"
inactiveText: "󰅶"
activeTooltipText: "Allow Idle Lock & Screensaver"
inactiveTooltipText: "Stay Awake"
activeTooltipText: I18n.tr("Allow Idle Lock & Screensaver")
inactiveTooltipText: I18n.tr("Stay Awake")
function toggle() {
if (root.idleService) root.idleService.setIdleEnabled(root.active)
+2 -1
View File
@@ -1,6 +1,7 @@
import QtQuick
import Quickshell
import Quickshell.Services.Pipewire
import qs.Commons
import qs.Ui
BarWidget {
@@ -40,7 +41,7 @@ BarWidget {
bar: root.bar
text: root.muted ? "󰍭" : "󰍬"
active: root.inUse
tooltipText: root.muted ? "Microphone muted" : (root.inUse ? "Microphone in use" : "Microphone live")
tooltipText: root.muted ? I18n.tr("Microphone muted") : (root.inUse ? I18n.tr("Microphone in use") : I18n.tr("Microphone live"))
onPressed: function(b) {
if (b === Qt.MiddleButton) root.bar.run("omarchy-shell shell toggle omarchy.audio")
else root.toggleMute()
+1 -1
View File
@@ -59,7 +59,7 @@ BarWidget {
text: "\uf021"
slotSize: Style.bar.statusSlot
fontSize: Style.font.caption
tooltipText: "Pending Omarchy Updates"
tooltipText: I18n.tr("Pending Omarchy Updates")
onPressed: root.runUpdate()
}
}
+5 -5
View File
@@ -410,7 +410,7 @@ BarWidget {
spacing: Style.space(8)
Text {
text: "Tray icons"
text: I18n.tr("Tray icons")
color: root.foreground
font.family: root.fontFamily
font.pixelSize: Style.font.body
@@ -418,7 +418,7 @@ BarWidget {
}
Text {
text: "Pinned icons stay visible. Hidden icons never show."
text: I18n.tr("Pinned icons stay visible. Hidden icons never show.")
color: Qt.darker(root.foreground, 1.4)
font.family: root.fontFamily
font.pixelSize: Style.font.caption
@@ -428,7 +428,7 @@ BarWidget {
Text {
visible: root.allItems.length === 0
text: "No tray items reporting."
text: I18n.tr("No tray items reporting.")
color: Qt.darker(root.foreground, 1.5)
font.family: root.fontFamily
font.pixelSize: Style.font.bodySmall
@@ -485,7 +485,7 @@ BarWidget {
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
iconText: "\uf08d"
text: rowRoot.isPinned ? "Unpin" : "Pin"
text: rowRoot.isPinned ? I18n.tr("Unpin") : I18n.tr("Pin")
foreground: root.foreground
horizontalPadding: 8
verticalPadding: 3
@@ -500,7 +500,7 @@ BarWidget {
anchors.right: rowPinBtn.left
anchors.rightMargin: Style.space(6)
iconText: "\uf06e"
text: rowRoot.isHidden ? "Show" : "Hide"
text: rowRoot.isHidden ? I18n.tr("Show") : I18n.tr("Hide")
foreground: root.foreground
horizontalPadding: 8
verticalPadding: 3