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 { MenuItem {
text: qsTr("Close All")
visible: windowCount !== 0 visible: windowCount !== 0
text: windowCount === 1 ? qsTr("Close window")
: qsTr("Close %1 windows").arg(windowCount)
onTriggered: appModel.closeAllByAppId(model.appId) onTriggered: appModel.closeAllByAppId(model.appId)
} }
} }

View file

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