Commit d06cb782 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use context with UI marker for config UI strings of applets & wallpapers

parent 1bb74e13
......@@ -30,7 +30,7 @@ QtControls.GroupBox {
height: childrenRect.height
flat: true
title: i18n("Appearance")
title: i18nc("@title:group", "Appearance")
property alias cfg_showGrid: showGridCheckBox.checked
property alias cfg_showOffLeds: showOffLedsCheckBox.checked
......@@ -46,19 +46,19 @@ QtControls.GroupBox {
ColumnLayout {
QtControls.CheckBox {
id: showGridCheckBox
text: i18n("Draw grid")
text: i18nc("@option:check", "Draw grid")
}
QtControls.CheckBox {
id: showOffLedsCheckBox
text: i18n("Show inactive LEDs:")
text: i18nc("@option:check", "Show inactive LEDs:")
}
QtControls.CheckBox {
id: showSecondsCheckBox
text: i18n("Display seconds")
text: i18nc("@option:check", "Display seconds")
}
QtControls.CheckBox {
id: showBcdFormatCheckBox
text: i18n("Display in BCD format (decimal)")
text: i18nc("@option:check", "Display in BCD format (decimal)")
}
QtControls.Label {
text: i18n("Colors:")
......@@ -67,7 +67,7 @@ QtControls.GroupBox {
columns: 2;
QtControls.CheckBox {
id: useCustomColorForActiveCheckBox
text: i18n("Use custom color for active LEDs")
text: i18nc("@option:check", "Use custom color for active LEDs")
}
KQuickControls.ColorButton {
id: customColorForActive
......@@ -76,7 +76,7 @@ QtControls.GroupBox {
QtControls.CheckBox {
id: useCustomColorForInactiveCheckBox
text: i18n("Use custom color for inactive LEDs")
text: i18nc("@option:check", "Use custom color for inactive LEDs")
}
KQuickControls.ColorButton {
id:customColorForInactive
......@@ -85,7 +85,7 @@ QtControls.GroupBox {
QtControls.CheckBox {
id: useCustomColorForGridCheckBox
text: i18n("Use custom color for grid")
text: i18nc("@option:check", "Use custom color for grid")
}
KQuickControls.ColorButton {
id:customColorForGrid
......
......@@ -34,7 +34,7 @@ ColumnLayout {
QtControls.CheckBox {
id: autoClipboardCheckBox
Layout.fillWidth: true
text: i18n("Automatically copy color to clipboard")
text: i18nc("@option:check", "Automatically copy color to clipboard")
}
GridLayout {
......@@ -47,7 +47,7 @@ ColumnLayout {
Layout.column: 0
Layout.fillWidth: true
horizontalAlignment: Text.AlignRight
text: i18n("Default color format:")
text: i18nc("@label:listbox", "Default color format:")
}
QtControls.ComboBox {
......@@ -66,7 +66,7 @@ ColumnLayout {
Layout.column: 0
Layout.fillWidth: true
horizontalAlignment: Text.AlignRight
text: i18n("When pressing the keyboard shortcut:")
text: i18nc("@label", "When pressing the keyboard shortcut:")
}
QtControls.ExclusiveGroup {
......@@ -76,7 +76,7 @@ ColumnLayout {
QtControls.RadioButton {
Layout.row: 1
Layout.column: 1
text: i18n("Pick a color")
text: i18nc("@option:radio", "Pick a color")
exclusiveGroup: activationExclusiveGroup
checked: cfg_pickOnActivate
onCheckedChanged: cfg_pickOnActivate = checked
......@@ -85,7 +85,7 @@ ColumnLayout {
QtControls.RadioButton {
Layout.row: 2
Layout.column: 1
text: i18n("Show history")
text: i18nc("@option:radio", "Show history")
exclusiveGroup: activationExclusiveGroup
checked: !cfg_pickOnActivate
}
......
......@@ -50,13 +50,13 @@ Item {
Controls.GroupBox {
Layouts.Layout.fillWidth: true
title: i18n("Cache")
title: i18nc("@title:group", "Cache")
flat: true
Layouts.RowLayout {
Layouts.Layout.alignment: Qt.AlignRight
Controls.Label {
text: i18n("Comic cache:")
text: i18nc("@label:spinbox", "Comic cache:")
}
Controls.SpinBox {
id: maxComicLimit
......@@ -70,13 +70,13 @@ Item {
Controls.GroupBox {
Layouts.Layout.fillWidth: true
title: i18n("Error Handling")
title: i18nc("@title:group", "Error Handling")
flat: true
Layouts.ColumnLayout {
Controls.CheckBox {
id: showErrorPicture
text: i18n("Display error when getting comic failed")
text: i18nc("@option:check", "Display error when getting comic failed")
onCheckedChanged: root.configurationChanged();
}
}
......
......@@ -55,13 +55,13 @@ Item {
Controls.GroupBox {
Layouts.Layout.fillWidth: true
title: i18n("Appearance")
title: i18nc("@title:group", "Appearance")
flat: true
Layouts.ColumnLayout {
Controls.CheckBox {
id: showArrowsOnOver
text: i18n("Show arrows only on mouse over")
text: i18nc("@option:check", "Show arrows only on mouse-over")
onCheckedChanged: root.configurationChanged();
}
}
......@@ -69,28 +69,28 @@ Item {
Controls.GroupBox {
Layouts.Layout.fillWidth: true
title: i18n("Information")
title: i18nc("@title:group", "Information")
flat: true
Layouts.ColumnLayout {
Controls.CheckBox {
id: showComicTitle
text: i18n("Show comic title")
text: i18nc("@option:check", "Show comic title")
onCheckedChanged: root.configurationChanged();
}
Controls.CheckBox {
id: showIdentifier
text: i18n("Show comic identifier")
text: i18nc("@option:check", "Show comic identifier")
onCheckedChanged: root.configurationChanged();
}
Controls.CheckBox {
id: showAuthor
text: i18n("Show comic author")
text: i18nc("@option:check", "Show comic author")
onCheckedChanged: root.configurationChanged();
}
Controls.CheckBox {
id: showUrl
text: i18n("Show comic URL")
text: i18nc("@option:check", "Show comic URL")
onCheckedChanged: root.configurationChanged();
}
}
......
......@@ -60,7 +60,7 @@ Item {
Controls.GroupBox {
Layouts.Layout.fillWidth: true
title: i18n("Comic")
title: i18nc("@title:group", "Comic")
flat: true
Layouts.ColumnLayout {
......@@ -87,12 +87,12 @@ Item {
}
Controls.Button {
iconName: "get-hot-new-stuff"
text: i18n("Get New Comics...")
text: i18nc("@action:button", "Get New Comics...")
onClicked: plasmoid.nativeInterface.getNewComics();
}
Controls.CheckBox {
id: middleClickCheckBox
text: i18n("Middle-click on the comic to show it at its original size")
text: i18nc("@option:check", "Middle-click on the comic to show it at its original size")
onCheckedChanged: root.configurationChanged();
}
}
......@@ -100,14 +100,14 @@ Item {
Controls.GroupBox {
Layouts.Layout.fillWidth: true
title: i18n("Update")
title: i18nc("@title:group", "Update")
flat: true
Layouts.ColumnLayout {
Layouts.RowLayout {
Layouts.Layout.alignment: Qt.AlignRight
Controls.Label {
text: i18n("Automatically update comic plugins:")
text: i18nc("@label:spinbox", "Automatically update comic plugins:")
}
Controls.SpinBox {
id: providerUpdateInterval
......@@ -120,7 +120,7 @@ Item {
Layouts.RowLayout {
Layouts.Layout.alignment: Qt.AlignRight
Controls.Label {
text: i18n("Check for new comic strips:")
text: i18nc("@label:spinbox", "Check for new comic strips:")
}
Controls.SpinBox {
id: checkNewComicStripsInterval
......
......@@ -41,7 +41,7 @@ Item {
Label {
Layout.fillWidth: true
text: i18n("Available dictionaries:")
text: i18nc("@label:listbox", "Available dictionaries:")
}
ScrollView {
......
......@@ -42,7 +42,7 @@ Item {
QtLayouts.ColumnLayout {
QtControls.GroupBox {
title: i18n("Appearance")
title: i18nc("@title:group", "Appearance")
flat: true
QtLayouts.GridLayout {
......@@ -55,7 +55,7 @@ Item {
}
QtControls.Label {
text: i18n("Size")
text: i18nc("@label:spinbox", "Size:")
QtLayouts.Layout.alignment: Qt.AlignRight
}
......@@ -64,7 +64,7 @@ Item {
}
QtControls.Label {
text: i18n("Piece color")
text: i18nc("@label:chooser", "Piece color:")
QtLayouts.Layout.alignment: Qt.AlignRight
}
......@@ -73,7 +73,7 @@ Item {
}
QtControls.Label {
text: i18n("Number color")
text: i18nc("@label:chooser", "Number color:")
QtLayouts.Layout.alignment: Qt.AlignRight
}
......@@ -83,7 +83,7 @@ Item {
QtControls.CheckBox {
id: useImageCheckBox
text: i18n("Use custom image")
text: i18nc("@option:check", "Use custom image")
QtLayouts.Layout.alignment: Qt.AlignRight
}
......@@ -98,14 +98,14 @@ Item {
QtControls.Button {
iconName: "document-open"
tooltip: i18n("Browse...")
tooltip: i18nc("@info:tooltip", "Browse...")
onClicked: imagePicker.open()
QtDialogs.FileDialog {
id: imagePicker
title: i18n("Choose an image")
title: i18nc("@title:window", "Choose an Image")
folder: shortcuts.pictures
......@@ -122,7 +122,7 @@ Item {
QtControls.CheckBox {
id: showNumeralsCheckBox
QtLayouts.Layout.columnSpan: 2
text: i18n("Show numerals")
text: i18nc("@option:check", "Show numerals")
}
}
}
......
......@@ -36,24 +36,24 @@ Item {
QtLayouts.ColumnLayout {
QtControls.GroupBox {
title: i18n("Appearance")
title: i18nc("@title:group", "Appearance")
flat: true
QtLayouts.ColumnLayout {
QtControls.CheckBox {
id: boldCheckBox
text: i18n("Bold text")
text: i18nc("@option:check", "Bold text")
}
QtControls.CheckBox {
id: italicCheckBox
text: i18n("Italic text")
text: i18nc("@option:check", "Italic text")
}
}
}
QtControls.GroupBox {
title: i18n("Fuzzyness")
title: i18nc("@title:group", "Fuzzyness")
flat: true
QtLayouts.RowLayout {
......
......@@ -41,14 +41,14 @@ Item
Layout.fillWidth: true
readonly property string name: "Caps Lock"
checked: plasmoid.configuration.key.indexOf(name) >= 0
text: i18n("Caps Lock")
text: i18nc("@option:check", "Caps Lock")
onCheckedChanged: root.configurationChanged()
}
Controls.CheckBox {
Layout.fillWidth: true
readonly property string name: "Num Lock"
checked: plasmoid.configuration.key.indexOf(name) >= 0
text: i18n("Num Lock")
text: i18nc("@option:check", "Num Lock")
onCheckedChanged: root.configurationChanged()
}
}
......
......@@ -49,7 +49,7 @@ ColumnLayout {
Layout.row: 0
Layout.column: 0
Layout.alignment: Qt.AlignRight
text: i18n("Change picture every")
text: i18nc("@label:spinbox", "Change picture every")
}
SpinBox {
......@@ -68,7 +68,7 @@ ColumnLayout {
Layout.row: 1
Layout.column: 0
Layout.alignment: Qt.AlignRight
text: i18n("Fill mode:")
text: i18nc("@label:listbox", "Fill mode:")
}
ComboBox {
......@@ -79,37 +79,37 @@ ColumnLayout {
currentIndex: fillModeToIndex(fillMode)
model: [
{
text: i18n("Stretch"),
text: i18nc("@item:inlistbox", "Stretch"),
description: i18n("The image is scaled to fit the frame"),
value: Image.Stretch
},
{
text: i18n("Preserve aspect fit"),
text: i18nc("@item:inlistbox", "Preserve aspect fit"),
description: i18n("The image is scaled uniformly to fit without cropping"),
value: Image.PreserveAspectFit
},
{
text: i18n("Preserve aspect crop"),
text: i18nc("@item:inlistbox", "Preserve aspect crop"),
description: i18n("The image is scaled uniformly to fill, cropping if necessary"),
value: Image.PreserveAspectCrop
},
{
text: i18n("Tile"),
text: i18nc("@item:inlistbox", "Tile"),
description: i18n("The image is duplicated horizontally and vertically"),
value: Image.Tile
},
{
text: i18n("Tile vertically"),
text: i18nc("@item:inlistbox", "Tile vertically"),
description: i18n("The image is stretched horizontally and tiled vertically"),
value: Image.TileVertically
},
{
text: i18n("Tile horizontally"),
text: i18nc("@item:inlistbox", "Tile horizontally"),
description: i18n("The image is stretched vertically and tiled horizontally"),
value: Image.TileHorizontally
},
{
text: i18n("Pad"),
text: i18nc("@item:inlistbox", "Pad"),
description: i18n("The image is not transformed"),
value: Image.Pad
}
......@@ -155,22 +155,22 @@ ColumnLayout {
// these CheckBoxes should take over as their own ColumnLayout entries
CheckBox {
id: randomizeCheckBox
text: i18n("Randomize items")
text: i18nc("@option:check", "Randomize items")
}
CheckBox {
id: pauseOnMouseOverCheckBox
text: i18n("Pause on mouseover")
text: i18nc("@option:check", "Pause on mouse-over")
}
CheckBox {
id: useBackgroundCheckBox
text: i18n("Background frame")
text: i18nc("@option:check", "Background frame")
}
CheckBox {
id: leftClickOpenImageCheckBox
text: i18n("Left click image opens in external viewer")
text: i18nc("@option:check", "Left click image opens in external viewer")
}
Item { // tighten layout
......
......@@ -54,7 +54,7 @@ ColumnLayout {
visible: false
title: i18n("Choose files")
title: i18nc("@title:window", "Choose Files")
folder: shortcuts.pictures
......@@ -83,7 +83,7 @@ ColumnLayout {
visible: false
title: i18n("Choose a folder")
title: i18nc("@title:window", "Choose a Folder")
folder: shortcuts.pictures
......@@ -110,20 +110,20 @@ ColumnLayout {
Button {
iconName: "folder-new"
onClicked: folderDialog.visible = true
text: i18n("Add folder...")
text: i18nc("@action:button", "Add Folder...")
}
Button {
iconName: "document-new"
onClicked: fileDialog.visible = true
text: i18n("Add files...")
text: i18nc("@action:button", "Add Files...")
}
}
Label {
Layout.fillWidth: true
text: i18n("Paths:")
text: i18nc("@label:listbox", "Paths:")
}
ListModel {
......
......@@ -39,11 +39,11 @@ Item {
Layout.fillWidth: true
flat: true
title: i18n("Arrangement")
title: i18nc("@title:group", "Arrangement")
RowLayout {
Label {
text: vertical ? i18n("Maximum columns:") : i18n("Maximum rows:")
text: vertical ? i18nc("@label:spinbox", "Maximum columns:") : i18nc("@label:spinbox", "Maximum rows:")
}
SpinBox {
......@@ -57,17 +57,17 @@ Item {
Layout.fillWidth: true
flat: true
title: i18n("Appearance")
title: i18nc("@title:group", "Appearance")
ColumnLayout {
CheckBox {
id: showLauncherNames
text: i18n("Show launcher names")
text: i18nc("@option:check", "Show launcher names")
}
CheckBox {
id: enablePopup
text: i18n("Enable popup")
text: i18nc("@option:check", "Enable popup")
}
}
}
......@@ -76,14 +76,14 @@ Item {
Layout.fillWidth: true
flat: true
title: i18n("Title")
title: i18nc("@title:group", "Title")
visible: plasmoid.formFactor == PlasmaCore.Types.Planar
ColumnLayout {
CheckBox {
id: showTitle
checked: title.activeFocus || title.length
text: i18n("Show title")
text: i18nc("@option:check", "Show title")
onClicked: {
if (checked) {
......
......@@ -33,7 +33,7 @@ ColumnLayout {
Layout.row: 0
Layout.column: 0
Layout.alignment: Qt.AlignRight
text: i18n("History Size:")
text: i18nc("@label:spinbox", "History size:")
}
QtControls.SpinBox {
id: historySpin
......@@ -46,7 +46,7 @@ ColumnLayout {
Layout.row: 1
Layout.column: 0
Layout.alignment: Qt.AlignRight
text: i18n("Copy Automatically:")
text: i18nc("@option:check", "Copy automatically:")
}
QtControls.CheckBox {
Layout.row: 1
......
......@@ -41,20 +41,20 @@ ColumnLayout {
GroupBox {
id: setColorsManuallyGroupBox
Layout.fillWidth: true
title: i18n("Set colors manually")
title: i18nc("@option:check", "Set Colors Manually")
checkable: true
flat: true
GridLayout {
columns: 2
Label {
text: i18n("CPU")
text: i18nc("@title:group", "CPU")
Layout.columnSpan: 2
font.bold: true
}
Label {
text: i18n("User:")
text: i18nc("@label:chooser", "User:")
Layout.alignment: