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

Use context with UI marker for more UI strings

Also adapt to HIG-recommended capitalization where needed
parent 1d6d94de
......@@ -25,7 +25,7 @@ import org.kde.plasma.configuration 2.0
ConfigModel {
ConfigCategory {
name: i18n("Appearance")
name: i18nc("@title", "Appearance")
icon: "preferences-desktop-color"
source: "configGeneral.qml"
}
......
......@@ -61,7 +61,7 @@ QtControls.GroupBox {
text: i18nc("@option:check", "Display in BCD format (decimal)")
}
QtControls.Label {
text: i18n("Colors:")
text: i18nc("@title:group", "Colors")
}
GridLayout {
columns: 2;
......
......@@ -22,7 +22,7 @@ import org.kde.plasma.configuration 2.0
ConfigModel {
ConfigCategory {
name: i18n("General")
name: i18nc("@title", "General")
icon: "preferences-desktop-color"
source: "configGeneral.qml"
}
......
......@@ -65,7 +65,7 @@ function roundComponent(n) {
function menuForColor(color) {
return [
{text: i18n("Copy to Clipboard"), section: true},
{text: i18nc("@title:menu", "Copy to Clipboard"), section: true},
{text: formatColor(color, "RRR,GGG,BBB")},
{text: formatColor(color, "rgb")},
{text: formatColor(color, "rgba")},
......
......@@ -103,8 +103,8 @@ Item {
}
Component.onCompleted: {
plasmoid.setAction("colordialog", i18n("Open Color Dialog"), "color-management")
plasmoid.setAction("clear", i18n("Clear History"), "edit-clear-history")
plasmoid.setAction("colordialog", i18nc("@action", "Open Color Dialog"), "color-management")
plasmoid.setAction("clear", i18nc("@action", "Clear History"), "edit-clear-history")
}
Plasmoid.compactRepresentation: Grid {
......@@ -119,7 +119,7 @@ Item {
PlasmaComponents.ToolButton {
width: buttonSize
height: buttonSize
tooltip: i18n("Pick Color")
tooltip: i18nc("@info:tooltip", "Pick color")
onClicked: root.pickColor()
PlasmaCore.IconItem {
......@@ -180,7 +180,7 @@ Item {
PlasmaComponents.ToolButton {
anchors.fill: parent
tooltip: i18n("Color Options")
tooltip: i18nc("@info:tooltip", "Color options")
onClicked: plasmoid.expanded = !plasmoid.expanded
// indicate viable drag...
checked: dropArea.containsAcceptableDrag
......@@ -249,7 +249,7 @@ Item {
PlasmaComponents.Button {
anchors.centerIn: parent
text: i18n("Pick Color")
text: i18nc("@action:button", "Pick Color")
visible: fullRoot.count === 0
onClicked: root.pickColor()
}
......
......@@ -111,32 +111,32 @@ void ComicApplet::init()
connect( mActionNextNewStripTab, &QAction::triggered, this, &ComicApplet::showNextNewStrip );
mActionGoFirst = new QAction(QIcon::fromTheme(QStringLiteral("go-first")),
i18n("Jump to &first Strip"), this);
i18nc("@action", "Jump to &First Strip"), this);
mActions.append( mActionGoFirst );
connect( mActionGoFirst, &QAction::triggered, this, &ComicApplet::slotFirstDay );
mActionGoLast = new QAction(QIcon::fromTheme(QStringLiteral("go-last")),
i18n("Jump to &current Strip"), this);
i18nc("@action", "Jump to &Current Strip"), this);
mActions.append( mActionGoLast );
connect( mActionGoLast, &QAction::triggered, this, &ComicApplet::slotCurrentDay );
mActionGoJump = new QAction(QIcon::fromTheme(QStringLiteral("go-jump")),
i18n("Jump to Strip ..."), this);
i18nc("@action", "Jump to Strip..."), this);
mActions.append( mActionGoJump );
connect( mActionGoJump, &QAction::triggered, this, &ComicApplet::slotGoJump );
mActionShop = new QAction( i18n( "Visit the shop &website" ), this );
mActionShop = new QAction(i18nc("@action", "Visit the Shop &Website"), this);
mActionShop->setEnabled( false );
mActions.append( mActionShop );
connect( mActionShop, &QAction::triggered, this, &ComicApplet::slotShop );
QAction *action = new QAction(QIcon::fromTheme(QStringLiteral("document-save-as")),
i18n("&Save Comic As..."), this);
i18nc("@action", "&Save Comic As..."), this);
mActions.append( action );
connect( action, &QAction::triggered, this, &ComicApplet::slotSaveComicAs );
action = new QAction(QIcon::fromTheme(QStringLiteral("application-epub+zip")),
i18n("&Create Comic Book Archive..."), this);
i18nc("@action", "&Create Comic Book Archive..."), this);
mActions.append( action );
connect( action, &QAction::triggered, this, &ComicApplet::createComicBook );
......@@ -246,7 +246,7 @@ void ComicApplet::getNewComics()
if (!m_newStuffDialog) {
m_newStuffDialog = new KNS3::DownloadDialog( QStringLiteral("comic.knsrc") );
KNS3::DownloadDialog *strong = m_newStuffDialog.data();
strong->setTitle(i18n("Download Comics"));
strong->setTitle(i18nc("@title:window", "Download Comics"));
connect(m_newStuffDialog.data(), SIGNAL(finished(int)), mEngine, SLOT(loadProviders()));
}
m_newStuffDialog.data()->show();
......
......@@ -30,7 +30,7 @@ ComicArchiveDialog::ComicArchiveDialog( const QString &pluginName, const QString
mPluginName( pluginName )
{
ui.setupUi(this);
setWindowTitle( i18n( "Create %1 Comic Book Archive", comicName ) );
setWindowTitle(i18nc("@title:window", "Create %1 Comic Book Archive", comicName));
mButtonBox = new QDialogButtonBox(this);
mButtonBox->setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
......
......@@ -22,17 +22,17 @@ import org.kde.plasma.configuration 2.0
ConfigModel {
ConfigCategory {
name: i18n("General")
name: i18nc("@title", "General")
icon: "face-smile-big"
source: "configGeneral.qml"
}
ConfigCategory {
name: i18n("Appearance")
name: i18nc("@title", "Appearance")
icon: "image"
source: "configAppearance.qml"
}
ConfigCategory {
name: i18n("Advanced")
name: i18nc("@title", "Advanced")
icon: "system-run"
source: "configAdvanced.qml"
}
......
......@@ -68,7 +68,7 @@ Item {
PlasmaCore.ToolTipArea {
anchors.fill: idLabelArea
mainText: i18n( "Jump to Strip ..." )
mainText: i18nc("@info:tooltip", "Jump to strip...")
}
}
}
......@@ -108,7 +108,7 @@ Item {
PlasmaCore.ToolTipArea {
anchors.fill: idUrlLabelArea
mainText: i18n( "Visit the comic website" )
mainText: i18nc("@info:tooltip", "Visit the comic website")
}
}
}
......
......@@ -41,7 +41,7 @@ class ChooseStripNumDialog : public QDialog
ChooseStripNumDialog(QWidget *parent, int current, int min, int max)
: QDialog( parent )
{
setWindowTitle(i18n("Go to Strip"));
setWindowTitle(i18nc("@title:window", "Go to Strip"));
QVBoxLayout *topLayout = new QVBoxLayout(this);
topLayout->setMargin(0);
......@@ -49,7 +49,7 @@ class ChooseStripNumDialog : public QDialog
numInput->setRange(min, max);
numInput->setValue(current);
QLabel *label = new QLabel(i18n("&Strip Number:"), this);
QLabel *label = new QLabel(i18nc("@label:spinbox", "&Strip number:"), this);
label->setBuddy(numInput);
topLayout->addWidget(label);
topLayout->addWidget(numInput) ;
......@@ -111,7 +111,8 @@ StringStripSelector::~StringStripSelector()
void StringStripSelector::select(const ComicData &currentStrip)
{
bool ok;
const QString strip = QInputDialog::getText(nullptr, i18n("Go to Strip"), i18n("Strip identifier:"), QLineEdit::Normal,
const QString strip = QInputDialog::getText(nullptr, i18nc("@title:window", "Go to Strip"),
i18nc("@label:textbox", "Strip identifier:"), QLineEdit::Normal,
currentStrip.current(), &ok);
if (ok) {
emit stripChosen(strip);
......
......@@ -4,7 +4,7 @@ import org.kde.plasma.configuration 2.0
ConfigModel {
ConfigCategory {
name: i18n("Dictionaries")
name: i18nc("@title", "Dictionaries")
icon: "image"
source: "ConfigDictionaries.qml"
}
......
......@@ -24,7 +24,7 @@ import org.kde.plasma.configuration 2.0
ConfigModel {
ConfigCategory {
name: i18n("Appearance")
name: i18nc("@title", "Appearance")
icon: "preferences-desktop-color"
source: "configAppearance.qml"
}
......
......@@ -190,7 +190,7 @@ Item {
id: button
Layout.fillWidth: true
iconName: "roll"
text: i18n("Shuffle");
text: i18nc("@action:button", "Shuffle");
onClicked: main.shuffleBoard();
}
......@@ -227,7 +227,7 @@ Item {
id: solvedLabel
anchors.centerIn: parent
color: theme.textColor
text: i18n("Solved! Try again.")
text: i18nc("@info", "Solved! Try again.")
z: 2
}
}
......
......@@ -24,7 +24,7 @@ import org.kde.plasma.configuration 2.0
ConfigModel {
ConfigCategory {
name: i18n("Appearance")
name: i18nc("@title", "Appearance")
icon: "preferences-desktop-color"
source: "configAppearance.qml"
}
......
......@@ -58,7 +58,7 @@ Item {
QtLayouts.RowLayout {
QtControls.Label {
text: i18n("Accurate")
text: i18nc("@item:inrange", "Accurate")
}
QtControls.Slider {
......@@ -71,7 +71,7 @@ Item {
}
QtControls.Label {
text: i18n("Fuzzy")
text: i18nc("@item:inrange", "Fuzzy")
}
}
}
......
......@@ -22,7 +22,7 @@ import org.kde.plasma.configuration 2.0
ConfigModel {
ConfigCategory {
name: i18n("Keys")
name: i18nc("@title", "Keys")
icon: "input-keyboard"
source: "configAppearance.qml"
}
......
......@@ -77,7 +77,7 @@ Item {
PlasmaComponents.Label {
id: header
text: i18n("Konsole Profiles")
text: i18nc("@title", "Konsole Profiles")
horizontalAlignment: Text.AlignHCenter | Text.AlignVCenter
width: parent.width - appIcon.width * 2
height: parent.height
......
......@@ -22,12 +22,12 @@ import org.kde.plasma.configuration 2.0
ConfigModel {
ConfigCategory {
name: i18n("General")
name: i18nc("@title", "General")
icon: "image"
source: "ConfigGeneral.qml"
}
ConfigCategory {
name: i18n("Paths")
name: i18nc("@title", "Paths")
icon: "folder"
source: "ConfigPaths.qml"
}
......
......@@ -80,37 +80,37 @@ ColumnLayout {
model: [
{
text: i18nc("@item:inlistbox", "Stretch"),
description: i18n("The image is scaled to fit the frame"),
description: i18nc("@info", "The image is scaled to fit the frame"),
value: Image.Stretch
},
{
text: i18nc("@item:inlistbox", "Preserve aspect fit"),
description: i18n("The image is scaled uniformly to fit without cropping"),
description: i18nc("@info", "The image is scaled uniformly to fit without cropping"),
value: Image.PreserveAspectFit
},
{
text: i18nc("@item:inlistbox", "Preserve aspect crop"),
description: i18n("The image is scaled uniformly to fill, cropping if necessary"),
description: i18nc("@info", "The image is scaled uniformly to fill, cropping if necessary"),
value: Image.PreserveAspectCrop
},
{
text: i18nc("@item:inlistbox", "Tile"),
description: i18n("The image is duplicated horizontally and vertically"),
description: i18nc("@info", "The image is duplicated horizontally and vertically"),
value: Image.Tile
},
{
text: i18nc("@item:inlistbox", "Tile vertically"),
description: i18n("The image is stretched horizontally and tiled vertically"),
description: i18nc("@info", "The image is stretched horizontally and tiled vertically"),
value: Image.TileVertically
},
{
text: i18nc("@item:inlistbox", "Tile horizontally"),
description: i18n("The image is stretched vertically and tiled horizontally"),
description: i18nc("@info", "The image is stretched vertically and tiled horizontally"),
value: Image.TileHorizontally
},
{
text: i18nc("@item:inlistbox", "Pad"),
description: i18n("The image is not transformed"),
description: i18nc("@info", "The image is not transformed"),
value: Image.Pad
}
] // end of ComboBox model
......
......@@ -24,7 +24,7 @@ import org.kde.plasma.configuration 2.0
ConfigModel {
ConfigCategory {
name: i18n("Appearance")
name: i18nc("@title", "Appearance")
icon: "knotes"
source: "configAppearance.qml"
}
......
Supports Markdown
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