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 {
|
||||
text: qsTr("Close All")
|
||||
visible: windowCount !== 0
|
||||
text: windowCount === 1 ? qsTr("Close window")
|
||||
: qsTr("Close %1 windows").arg(windowCount)
|
||||
onTriggered: appModel.closeAllByAppId(model.appId)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue