mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 16:49:20 +08:00
PluginBrowser strings are now translatable
CURA-3856
This commit is contained in:
parent
f5a43b48c2
commit
867dd04681
@ -8,13 +8,25 @@ UM.Dialog
|
|||||||
{
|
{
|
||||||
id: base
|
id: base
|
||||||
|
|
||||||
title: "Find & Update plugins"
|
title: catalog.i18nc("@title:window", "Find & Update plugins")
|
||||||
width: 450
|
width: 450
|
||||||
height: 450
|
height: 450
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
id: introText
|
||||||
|
text: catalog.i18nc("@label", "Here you can find a list of Third Party plugins.")
|
||||||
|
width: parent.width
|
||||||
|
height: 30
|
||||||
|
}
|
||||||
ScrollView
|
ScrollView
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height - progressbar.height - UM.Theme.getSize("default_margin").height
|
anchors.top: introText.bottom
|
||||||
|
anchors.bottom: progressbar.top
|
||||||
|
anchors.bottomMargin: UM.Theme.getSize("default_margin").height
|
||||||
frameVisible: true
|
frameVisible: true
|
||||||
ListView
|
ListView
|
||||||
{
|
{
|
||||||
@ -62,7 +74,7 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
text: !model.already_installed ? "Download" : model.can_upgrade ? "Upgrade" : "Download"
|
text: !model.already_installed ? catalog.i18nc("@action:button", "Download") : model.can_upgrade ? catalog.i18nc("@action:button", "Upgrade") : catalog.i18nc("@action:button", "Download")
|
||||||
onClicked: manager.downloadAndInstallPlugin(model.file_location)
|
onClicked: manager.downloadAndInstallPlugin(model.file_location)
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
enabled: (!model.already_installed || model.can_upgrade) && !manager.isDownloading
|
enabled: (!model.already_installed || model.can_upgrade) && !manager.isDownloading
|
||||||
@ -71,4 +83,6 @@ UM.Dialog
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
UM.I18nCatalog { id: catalog; name:"cura" }
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user