Commit 9d252c40 authored by Nate Graham's avatar Nate Graham
Browse files

[kcms/fonts] Fix string puzzle in font chooser tooltips

These tooltips' text was built up by embedding one string inside
another, which is a recipe for string puzzles. Instead let's assign
the whole text individually, which will allow translators to
translate the entire string properly.

BUG: 428026
FIXED-IN: 5.21
parent b39c32c0
......@@ -28,6 +28,7 @@ import org.kde.kcm 1.0
FocusScope {
id: root
property string label
property alias tooltipText: tooltip.text
property string category
property font font
Kirigami.FormData.label: root.label
......@@ -61,9 +62,7 @@ FocusScope {
kcm.adjustFont(root.font, root.category)
}
QtControls.ToolTip {
visible: parent.hovered
text: i18n("Select %1 Font...", label.replace(':', ''))
font.capitalization: Font.Capitalize
id: tooltip
}
}
}
......
......@@ -105,6 +105,7 @@ KCM.SimpleKCM {
FontWidget {
id: generalFontWidget
label: i18n("General:")
tooltipText: i18n("Select general font")
category: "font"
font: kcm.fontsSettings.font
......@@ -116,6 +117,7 @@ KCM.SimpleKCM {
FontWidget {
id: fixedWidthFontWidget
label: i18n("Fixed width:")
tooltipText: i18n("Select fixed width font")
category: "fixed"
font: kcm.fontsSettings.fixed
......@@ -127,6 +129,7 @@ KCM.SimpleKCM {
FontWidget {
id: smallFontWidget
label: i18n("Small:")
tooltipText: i18n("Select small font")
category: "smallestReadableFont"
font: kcm.fontsSettings.smallestReadableFont
......@@ -138,6 +141,7 @@ KCM.SimpleKCM {
FontWidget {
id: toolbarFontWidget
label: i18n("Toolbar:")
tooltipText: i18n("Select toolbar font")
category: "toolBarFont"
font: kcm.fontsSettings.toolBarFont
......@@ -149,6 +153,7 @@ KCM.SimpleKCM {
FontWidget {
id: menuFontWidget
label: i18n("Menu:")
tooltipText: i18n("Select menu font")
category: "menuFont"
font: kcm.fontsSettings.menuFont
......@@ -159,6 +164,7 @@ KCM.SimpleKCM {
}
FontWidget {
label: i18n("Window title:")
tooltipText: i18n("Select window title font")
category: "activeFont"
font: kcm.fontsSettings.activeFont
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment