i18n:Replace qstr with Translation.tr and update the translation file

This commit is contained in:
月月
2025-07-12 22:46:24 +08:00
parent af5d25b575
commit fb0d3f7f40
8 changed files with 196 additions and 20 deletions
@@ -17,8 +17,8 @@ Rectangle {
property int selectedTab: 0
property bool collapsed: Persistent.states.sidebar.bottomGroup.collapsed
property var tabs: [
{"type": "calendar", "name": "Calendar", "icon": "calendar_month", "widget": calendarWidget},
{"type": "todo", "name": "To Do", "icon": "done_outline", "widget": todoWidget}
{"type": "calendar", "name": Translation.tr("Calendar"), "icon": "calendar_month", "widget": calendarWidget},
{"type": "todo", "name": Translation.tr("To Do"), "icon": "done_outline", "widget": todoWidget}
]
Behavior on implicitHeight {
@@ -85,7 +85,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter
anchors.leftMargin: 10
horizontalAlignment: Text.AlignHCenter
text: `${Notifications.list.length} notifications`
text: `${Notifications.list.length} ${Translation.tr("notifications")}`
opacity: Notifications.list.length > 0 ? 1 : 0
visible: opacity > 0