mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-10 09:57:35 +03:00
update qml tranlation string to proper use
This commit is contained in:
parent
7fa05eaea3
commit
bd044010de
@ -104,8 +104,8 @@ Loader {
|
||||
|
||||
property bool wheelIsBlocked: false;
|
||||
readonly property double opacityStep: 0.1
|
||||
readonly property string tooltip: i18nc("opacity for background under edit mode, %0% is opacity percentage",
|
||||
"You can use mouse wheel to change background opacity of %0%").arg(Math.round(plasmoid.configuration.editBackgroundOpacity * 100))
|
||||
readonly property string tooltip: i18nc("opacity for background under edit mode, %1 is opacity percentage",
|
||||
"You can use mouse wheel to change background opacity of %1%",Math.round(plasmoid.configuration.editBackgroundOpacity * 100))
|
||||
|
||||
onWheel: {
|
||||
processWheel(wheel);
|
||||
|
@ -151,8 +151,8 @@ Loader {
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
text: dialog.advancedLevel ?
|
||||
i18nc("view settings width scale","Width %0%").arg(userScaleWidth * 100) :
|
||||
i18nc("view settings width scale","Width %0% / Height %1%").arg(userScaleWidth * 100).arg(userScaleHeight * 100)
|
||||
i18nc("view settings width scale","Width %1%",userScaleWidth * 100) :
|
||||
i18nc("view settings width scale","Width %1% / Height %2%", userScaleWidth * 100, userScaleHeight * 100)
|
||||
visible: dragCorner.isActive
|
||||
}
|
||||
|
||||
@ -358,7 +358,7 @@ Loader {
|
||||
model: latteView.extendedInterface.latteTasksModel
|
||||
|
||||
PlasmaComponents.TabButton {
|
||||
text: index >= 1 ? i18nc("tasks header and index","Tasks <%0>").arg(index+1) : i18n("Tasks")
|
||||
text: index >= 1 ? i18nc("tasks header and index","Tasks <%1>", index+1) : i18n("Tasks")
|
||||
onCheckedChanged: {
|
||||
if (checked && pagesStackView.currentItem !== tasksRepeater.itemAt(index)) {
|
||||
pagesStackView.forwardSliding = (pagesStackView.currentItem.pageIndex > (tabBar.visibleStaticPages + index));
|
||||
|
@ -38,7 +38,7 @@ Item{
|
||||
readonly property bool containsMouse: rulerMouseArea.containsMouse
|
||||
readonly property int thickness: theme.defaultFont.pixelSize
|
||||
|
||||
readonly property string tooltip: i18nc("maximum length tooltip, %0% is maximum length percentage","You can use mouse wheel to change maximum length of %0%").arg(plasmoid.configuration.maxLength)
|
||||
readonly property string tooltip: i18nc("maximum length tooltip, %1 is maximum length percentage","You can use mouse wheel to change maximum length of %1%",plasmoid.configuration.maxLength)
|
||||
|
||||
readonly property int userMaxLength: {
|
||||
if (root.isHorizontal) {
|
||||
|
@ -112,7 +112,7 @@ PlasmaComponents.Page {
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: i18nc("number in pixels, e.g. 12 px.", "%0 px.").arg(appletsSizeSlider.value)
|
||||
text: i18nc("number in pixels, e.g. 12 px.", "%1 px.", appletsSizeSlider.value)//.arg(appletsSizeSlider.value)
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
@ -170,8 +170,8 @@ PlasmaComponents.Page {
|
||||
|
||||
text: proportionSizeSlider.value !== proportionSizeSlider.from ?
|
||||
(absoluteSizeLblMouseArea.containsMouse ?
|
||||
i18nc("number in pixels, e.g. 64 px.","%0 px.").arg(latteView.metrics.maxIconSize) :
|
||||
i18nc("number in percentage, e.g. 85 %","%0 %").arg(proportionSizeSlider.value.toFixed(1))) :
|
||||
i18nc("number in pixels, e.g. 64 px.","%1 px.", latteView.metrics.maxIconSize) :
|
||||
i18nc("number in percentage, e.g. 85 %","%1 %", proportionSizeSlider.value.toFixed(1))) :
|
||||
i18nc("no value in percentage","--- %")
|
||||
horizontalAlignment: Text.AlignRight
|
||||
enabled: proportionSizeSlider.value !== proportionSizeSlider.from
|
||||
@ -225,7 +225,7 @@ PlasmaComponents.Page {
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: i18nc("number in percentage, e.g. 85 %","%0 %").arg(Number((zoomSlider.value * 100) - 100).toFixed(0))
|
||||
text: i18nc("number in percentage, e.g. 85 %","%1 %", Number((zoomSlider.value * 100) - 100).toFixed(0))
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
@ -332,7 +332,7 @@ PlasmaComponents.Page {
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: i18nc("number in percentage, e.g. 85 %","%0 %").arg(maxLengthSlider.value)
|
||||
text: i18nc("number in percentage, e.g. 85 %","%1 %", maxLengthSlider.value)
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
@ -415,7 +415,7 @@ PlasmaComponents.Page {
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: i18nc("number in percentage, e.g. 85 %","%0 %").arg(minLengthSlider.value)
|
||||
text: i18nc("number in percentage, e.g. 85 %","%1 %", minLengthSlider.value)
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
@ -545,7 +545,7 @@ PlasmaComponents.Page {
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: i18nc("number in percentage, e.g. 85 %","%0 %").arg(offsetSlider.value)
|
||||
text: i18nc("number in percentage, e.g. 85 %","%1 %", offsetSlider.value)
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
@ -629,8 +629,8 @@ PlasmaComponents.Page {
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: lengthMarginLblMouseArea.containsMouse ?
|
||||
i18nc("number in pixels, e.g. 8 px.","%0 px.").arg(currentValueInPixels) :
|
||||
i18nc("number in percentage, e.g. 85 %","%0 %").arg(lengthExtMarginSlider.value)
|
||||
i18nc("number in pixels, e.g. 8 px.","%1 px.", currentValueInPixels) :
|
||||
i18nc("number in percentage, e.g. 85 %","%1 %", lengthExtMarginSlider.value)
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
@ -675,8 +675,8 @@ PlasmaComponents.Page {
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: thickMarginLblMouseArea.containsMouse ?
|
||||
i18nc("number in pixels, e.g. 8 px.","%0 px.").arg(currentValueInPixels) :
|
||||
i18nc("number in percentage, e.g. 85 %","%0 %").arg(currentValue)
|
||||
i18nc("number in pixels, e.g. 8 px.","%1 px.", currentValueInPixels) :
|
||||
i18nc("number in percentage, e.g. 85 %","%1 %", currentValue)
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
@ -720,7 +720,7 @@ PlasmaComponents.Page {
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: currentValue < 0 ? "---" : i18nc("number in pixels, e.g. 85 px.","%0 px.").arg(currentValue)
|
||||
text: currentValue < 0 ? "---" : i18nc("number in pixels, e.g. 85 px.","%1 px.", currentValue)
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
@ -908,7 +908,7 @@ PlasmaComponents.Page {
|
||||
|
||||
PlasmaComponents.Label {
|
||||
enabled: showBackground.checked
|
||||
text: i18nc("number in percentage, e.g. 85 %","%0 %").arg(panelSizeSlider.value)
|
||||
text: i18nc("number in percentage, e.g. 85 %","%1 %", panelSizeSlider.value)
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
@ -958,7 +958,7 @@ PlasmaComponents.Page {
|
||||
|
||||
PlasmaComponents.Label {
|
||||
enabled: transparencySlider.enabled
|
||||
text: i18nc("number in percentage, e.g. 85 %","%0 %").arg(transparencySlider.value)
|
||||
text: i18nc("number in percentage, e.g. 85 %","%1 %", transparencySlider.value)
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
@ -1000,7 +1000,7 @@ PlasmaComponents.Page {
|
||||
|
||||
PlasmaComponents.Label {
|
||||
enabled: radiusSlider.enabled
|
||||
text: radiusSlider.value >= 0 ? i18nc("number in percentage, e.g. 85 %","%0 %").arg(radiusSlider.value) : i18nc("Default word abbreviation", "Def.")
|
||||
text: radiusSlider.value >= 0 ? i18nc("number in percentage, e.g. 85 %","%1 %", radiusSlider.value) : i18nc("Default word abbreviation", "Def.")
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
@ -1043,7 +1043,7 @@ PlasmaComponents.Page {
|
||||
|
||||
PlasmaComponents.Label {
|
||||
enabled: shadowSlider.enabled
|
||||
text: shadowSlider.value >= 0 ? i18nc("number in pixels, e.g. 12 px.", "%0 px.").arg(shadowSlider.value ) : i18nc("Default word abbreviation", "Def.")
|
||||
text: shadowSlider.value >= 0 ? i18nc("number in pixels, e.g. 12 px.", "%1 px.", shadowSlider.value ) : i18nc("Default word abbreviation", "Def.")
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
|
@ -112,7 +112,7 @@ PlasmaComponents.Page {
|
||||
|
||||
PlasmaComponents.Label {
|
||||
enabled: showAppletShadow.checked
|
||||
text: i18nc("number in percentage, e.g. 85 %","%0 %").arg(shadowSizeSlider.value)
|
||||
text: i18nc("number in percentage, e.g. 85 %","%1 %", shadowSizeSlider.value)
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
@ -160,7 +160,7 @@ PlasmaComponents.Page {
|
||||
PlasmaComponents.Label {
|
||||
id: shadowOpacityLbl
|
||||
enabled: showAppletShadow.checked
|
||||
text: i18nc("number in percentage, e.g. 85 %","%0 %").arg(shadowOpacitySlider.value)
|
||||
text: i18nc("number in percentage, e.g. 85 %","%1 %", shadowOpacitySlider.value)
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
||||
|
@ -30,7 +30,7 @@ LatteComponents.ComboBoxButton{
|
||||
checkable: true
|
||||
|
||||
buttonToolTip: custom.type === "download:" ? i18n("Download indicator styles from the internet") :
|
||||
i18n("Use %0 style for your indicators").arg(buttonText)
|
||||
i18n("Use %1 style for your indicators", buttonText)
|
||||
|
||||
buttonIsTransparent: true
|
||||
comboBoxButtonIsTransparent: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user