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

meson: add more UI context marker for strings, fix some style

GIT_SILENT
parent cbc18c5d
......@@ -74,7 +74,7 @@ public:
void start() override
{
QMessageBox::critical(nullptr, i18n("Importing project failed"), m_error);
QMessageBox::critical(nullptr, i18nc("@title:window", "Project Import Failed"), m_error);
setError(KJob::UserDefinedError + 1); // Indicate that there was an error
setErrorText(m_error);
......
......@@ -26,14 +26,14 @@
<item>
<widget class="QPushButton" name="b_showAdvanced">
<property name="text">
<string>Show advanced configuration</string>
<string comment="@action:button">Show Advanced Configuration</string>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="container">
<property name="title">
<string>Advanced configuration</string>
<string comment="@title:group">Advanced Configuration</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
......@@ -41,7 +41,7 @@
<item row="0" column="0">
<widget class="QLabel" name="l_mesonArgs">
<property name="text">
<string>Extra Meson arguments:</string>
<string comment="@label:textbox">Extra Meson arguments:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......@@ -54,7 +54,7 @@
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>Meson backend:</string>
<string comment="@label:listbox">Meson backend:</string>
</property>
<property name="scaledContents">
<bool>false</bool>
......@@ -67,7 +67,7 @@
<item row="2" column="0">
<widget class="QLabel" name="l_mesonExe">
<property name="text">
<string>Meson executable:</string>
<string comment="@label:chooser">Meson executable:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......@@ -77,10 +77,7 @@
<item row="0" column="1">
<widget class="KLineEdit" name="i_mesonArgs">
<property name="toolTip">
<string>Changing this will reset the build options</string>
</property>
<property name="placeholderText">
<string>Extra meson configuration arguments</string>
<string comment="@info:tooltip">Changing this will reset the build options.</string>
</property>
<property name="showClearButton" stdset="0">
<bool>true</bool>
......@@ -93,7 +90,7 @@
<item row="2" column="1">
<widget class="KUrlRequester" name="i_mesonExe">
<property name="placeholderText">
<string>Path to the meson executable</string>
<string comment="@info:placeholder">/path/to/mesonexecutable</string>
</property>
</widget>
</item>
......@@ -102,7 +99,7 @@
<item>
<widget class="QPushButton" name="b_hideAdvanced">
<property name="text">
<string>Hide advanced configuration</string>
<string comment="@action:button">Hide Advanced Configuration</string>
</property>
</widget>
</item>
......
......@@ -342,12 +342,12 @@ void MesonConfigPage::emitChanged()
QString MesonConfigPage::name() const
{
return i18n("Meson");
return i18nc("@title:tab", "Meson");
}
QString MesonConfigPage::fullName() const
{
return i18n("Meson project configuration");
return i18nc("@title:tab", "Meson Project Configuration");
}
QIcon MesonConfigPage::icon() const
......
......@@ -49,7 +49,7 @@ MesonNewBuildDir::MesonNewBuildDir(IProject* project, QWidget* parent)
Q_ASSERT(mgr); // This dialog only works with the MesonManager
setWindowTitle(
i18n("Configure a build directory - %1", ICore::self()->runtimeController()->currentRuntime()->name()));
i18nc("@title:window", "Configure a Build Directory - %1", ICore::self()->runtimeController()->currentRuntime()->name()));
m_ui = new Ui::MesonNewBuildDir;
m_ui->setupUi(this);
......
......@@ -416,8 +416,8 @@ void MesonRewriterPage::newOption()
dialog.setOption(QInputDialog::UseListViewForComboBoxItems, true);
dialog.setInputMode(QInputDialog::TextInput);
dialog.setWindowTitle(i18n("Select meson option to add"));
dialog.setLabelText(i18n("Select one new meson option to add"));
dialog.setWindowTitle(i18nc("@title:window", "Select Additional Meson Option"));
dialog.setLabelText(i18nc("@label:listbox", "Meson option to add:"));
dialog.setComboBoxItems(total);
if (dialog.exec() != QDialog::Accepted) {
......@@ -448,12 +448,12 @@ void MesonRewriterPage::emitChanged()
QString MesonRewriterPage::name() const
{
return i18n("Project");
return i18nc("@title:tab", "Project");
}
QString MesonRewriterPage::fullName() const
{
return i18n("Meson project settings");
return i18nc("@title:tab", "Meson Project Settings");
}
QIcon MesonRewriterPage::icon() const
......
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