Fix "read more" not being translated

Yeah, i know, this breaks the stringfreeze. But this wasn't translated in the
first place. So the actual effect here is zero (but at least it will be translated
in the next round!)

CURA-9146
This commit is contained in:
Jaime van Kessel 2022-04-19 11:19:58 +02:00
parent 05263b9a58
commit 3aff3d5825

View File

@ -19,7 +19,6 @@ Rectangle
implicitHeight: childrenRect.height + 2 * UM.Theme.getSize("default_margin").height implicitHeight: childrenRect.height + 2 * UM.Theme.getSize("default_margin").height
color: UM.Theme.getColor("action_panel_secondary") color: UM.Theme.getColor("action_panel_secondary")
// Icon
UM.ColorImage UM.ColorImage
{ {
id: onboardingIcon id: onboardingIcon
@ -33,7 +32,6 @@ Rectangle
height: UM.Theme.getSize("banner_icon_size").height height: UM.Theme.getSize("banner_icon_size").height
} }
// Close button
UM.SimpleButton UM.SimpleButton
{ {
id: onboardingClose id: onboardingClose
@ -52,8 +50,8 @@ Rectangle
onClicked: onRemove() onClicked: onRemove()
} }
// Body UM.Label
Label { {
id: infoText id: infoText
anchors anchors
{ {
@ -63,11 +61,8 @@ Rectangle
margins: UM.Theme.getSize("default_margin").width margins: UM.Theme.getSize("default_margin").width
} }
font: UM.Theme.getFont("default")
renderType: Text.NativeRendering renderType: Text.NativeRendering
color: UM.Theme.getColor("primary_text") color: UM.Theme.getColor("primary_text")
wrapMode: Text.Wrap
elide: Text.ElideRight elide: Text.ElideRight
onLineLaidOut: (line) => onLineLaidOut: (line) =>
@ -102,7 +97,7 @@ Rectangle
id: readMoreButton id: readMoreButton
anchors.left: infoText.left anchors.left: infoText.left
anchors.bottom: infoText.bottom anchors.bottom: infoText.bottom
text: "Learn More" text: catalog.i18nc("@button:label", "Learn More")
textFont: UM.Theme.getFont("default") textFont: UM.Theme.getFont("default")
textColor: infoText.color textColor: infoText.color
leftPadding: 0 leftPadding: 0