Menu: Close window text modification

This commit is contained in:
cutefishd 2021-04-22 02:30:46 +08:00
parent 65ad364fef
commit 5ff83f2a68
2 changed files with 13 additions and 7 deletions

View file

@ -71,8 +71,9 @@ DockItem {
}
MenuItem {
text: qsTr("Close All")
visible: windowCount !== 0
text: windowCount === 1 ? qsTr("Close window")
: qsTr("Close %1 windows").arg(windowCount)
onTriggered: appModel.closeAllByAppId(model.appId)
}
}

View file

@ -4,24 +4,29 @@
<context>
<name>AppItem</name>
<message>
<location filename="../qml/AppItem.qml" line="44"/>
<location filename="../qml/AppItem.qml" line="54"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="../qml/AppItem.qml" line="56"/>
<location filename="../qml/AppItem.qml" line="66"/>
<source>Unpin</source>
<translation></translation>
</message>
<message>
<location filename="../qml/AppItem.qml" line="56"/>
<location filename="../qml/AppItem.qml" line="66"/>
<source>Pin</source>
<translation></translation>
</message>
<message>
<location filename="../qml/AppItem.qml" line="63"/>
<source>Close All</source>
<translation></translation>
<location filename="../qml/AppItem.qml" line="75"/>
<source>Close window</source>
<translation></translation>
</message>
<message>
<location filename="../qml/AppItem.qml" line="76"/>
<source>Close %1 windows</source>
<translation>%1</translation>
</message>
</context>
<context>