Menu: Close window text modification
This commit is contained in:
parent
65ad364fef
commit
5ff83f2a68
2 changed files with 13 additions and 7 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue