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

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

GIT_SILENT
parent fb83b593
......@@ -40,7 +40,7 @@ using namespace KDevelop;
CMakeBuildDirChooser::CMakeBuildDirChooser(QWidget* parent)
: QDialog(parent)
{
setWindowTitle(i18n("Configure a build directory - %1", ICore::self()->runtimeController()->currentRuntime()->name()));
setWindowTitle(i18nc("@title:window", "Configure a Build Directory - %1", ICore::self()->runtimeController()->currentRuntime()->name()));
m_buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
m_buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
......@@ -98,7 +98,7 @@ void CMakeBuildDirChooser::setProject( IProject* project )
m_srcFolder = folder;
m_chooserUi->buildFolder->setUrl(KDevelop::proposedBuildFolder(m_srcFolder).toUrl());
setWindowTitle(i18n("Configure a build directory for %1", project->name()));
setWindowTitle(i18nc("@title:window", "Configure a Build Directory for %1", project->name()));
update();
}
......
......@@ -29,7 +29,7 @@
<item row="0" column="0">
<widget class="QLabel" name="availableLabel">
<property name="text">
<string>Available build directories:</string>
<string comment="@label:listbox">Available build directories:</string>
</property>
</widget>
</item>
......@@ -37,7 +37,7 @@
<widget class="QComboBox" name="availableBuildDirs">
<item>
<property name="text">
<string>New build directory</string>
<string comment="@item:inlistbox">New build directory</string>
</property>
</item>
</widget>
......@@ -45,7 +45,7 @@
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Build &amp;directory:</string>
<string comment="@label:chooser">Build &amp;directory:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......@@ -81,7 +81,7 @@
<item row="4" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>&amp;Installation prefix:</string>
<string comment="@label:chooser">&amp;Installation prefix:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......@@ -106,17 +106,17 @@
</size>
</property>
<property name="toolTip">
<string>The prefix under which the project will be installed. Leaving this empty will let CMake use its default install prefix.</string>
<string comment="@info:tooltip">The prefix under which the project will be installed. Leaving this empty will let CMake use its default install prefix.</string>
</property>
<property name="placeholderText">
<string>CMake's default install prefix</string>
<string comment="@info:placeholder">CMake's default install prefix</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Build &amp;type:</string>
<string comment="@label:listbox">Build &amp;type:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......@@ -159,7 +159,7 @@
<item row="6" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Extra arguments:</string>
<string comment="@label:listbox">Extra arguments:</string>
</property>
</widget>
</item>
......@@ -179,7 +179,7 @@
<item row="7" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>CMake &amp;executable:</string>
<string comment="@label:chooser">CMake &amp;executable:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......
......@@ -208,11 +208,11 @@ QVariant CMakeCodeCompletionModel::data (const QModelIndex & index, int role) co
{
switch(type)
{
case Command: return i18n("Command");
case Variable: return i18n("Variable");
case Macro: return i18n("Macro");
case Path: return i18n("Path");
case Target: return i18n("Target");
case Command: return i18nc("@item", "Command");
case Variable: return i18nc("@item", "Variable");
case Macro: return i18nc("@item", "Macro");
case Path: return i18nc("@item", "Path");
case Target: return i18nc("@item", "Target");
}
}
else if(role==Qt::DecorationRole && index.column()==CodeCompletionModel::Icon)
......
......@@ -40,11 +40,11 @@ static const std::array<QString, 6> args = {
QString(),
};
static const std::array<QString, 5> modules = {
i18n("Commands"),
i18n("Variables"),
i18n("Modules"),
i18n("Properties"),
i18n("Policies"),
i18nc("@item cmake", "Commands"),
i18nc("@item cmake", "Variables"),
i18nc("@item cmake", "Modules"),
i18nc("@item cmake", "Properties"),
i18nc("@item cmake", "Policies"),
};
CMakeCommandsContents::CMakeCommandsContents(QObject* parent)
......@@ -113,7 +113,7 @@ QString CMakeCommandsContents::descriptionForIdentifier(const QString& id, CMake
const QString rst2html = QStandardPaths::findExecutable(QStringLiteral("rst2html"));
if (rst2html.isEmpty()) {
desc = (QLatin1String("<html><body style='background:#fff'><pre><code>") + desc.toHtmlEscaped() + QLatin1String("</code></pre>")
+ i18n("<p>For better cmake documentation rendering, install rst2html</p>")
+ i18n("<p>For better CMake documentation rendering, install rst2html.</p>")
+ QLatin1String("</body></html>"));
} else {
QProcess p;
......
......@@ -71,7 +71,7 @@
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Cache Values</string>
<string comment="@title:group">Cache Values</string>
</property>
<layout class="QVBoxLayout">
<item>
......@@ -86,7 +86,7 @@
</font>
</property>
<property name="text">
<string>Comment:</string>
<string comment="@label">Comment:</string>
</property>
</widget>
</item>
......@@ -103,7 +103,7 @@
<item>
<widget class="QPushButton" name="showAdvanced">
<property name="text">
<string>Show Advanced</string>
<string comment="@action:button">Show Advanced</string>
</property>
<property name="checkable">
<bool>true</bool>
......@@ -122,7 +122,7 @@
</sizepolicy>
</property>
<property name="title">
<string>Advanced</string>
<string comment="@title:group">Advanced</string>
</property>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
......@@ -131,7 +131,7 @@
<item row="0" column="0">
<widget class="QLabel" name="installationPrefixLabel">
<property name="text">
<string>Installation prefix:</string>
<string comment="@label:chooser">Installation prefix:</string>
</property>
</widget>
</item>
......@@ -141,7 +141,7 @@
<item row="1" column="0">
<widget class="QLabel" name="buildTypeLabel">
<property name="text">
<string>Build type:</string>
<string comment="@label:listbox">Build type:</string>
</property>
</widget>
</item>
......@@ -175,7 +175,7 @@
<item row="2" column="0">
<widget class="QLabel" name="extraArgumentsLabel">
<property name="text">
<string>Extra arguments:</string>
<string comment="@label:listbox">Extra arguments:</string>
</property>
</widget>
</item>
......@@ -195,7 +195,7 @@
<item row="3" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Configure environment:</string>
<string comment="@label:chooser">Configure environment:</string>
</property>
</widget>
</item>
......@@ -210,7 +210,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Select an environment to be used</string>
<string comment="@info:tooltip">Select an environment to be used</string>
</property>
</widget>
</item>
......@@ -222,7 +222,7 @@
<item row="5" column="1">
<widget class="QCheckBox" name="showInternal">
<property name="text">
<string>Show advanced values</string>
<string comment="@option:check">Show advanced values</string>
</property>
</widget>
</item>
......@@ -232,7 +232,7 @@
<item row="4" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>CMake executable:</string>
<string comment="@label:chooser">CMake executable:</string>
</property>
</widget>
</item>
......
......@@ -47,12 +47,12 @@ void CMakeCacheModel::read()
{
// Set headers
const QStringList labels{
i18n("Name"),
i18n("Type"),
i18n("Value"),
i18n("Comment"),
i18n("Advanced"),
i18n("Strings"),
i18nc("@title:column", "Name"),
i18nc("@title:column", "Type"),
i18nc("@title:column", "Value"),
i18nc("@title:column", "Comment"),
i18nc("@title:column", "Advanced"),
i18nc("@title:column", "Strings"),
};
setHorizontalHeaderLabels(labels);
......
......@@ -389,12 +389,12 @@ void CMakePreferences::showAdvanced(bool v)
QString CMakePreferences::name() const
{
return i18n("CMake");
return i18nc("@title:tab", "CMake");
}
QString CMakePreferences::fullName() const
{
return i18n("Configure CMake settings");
return i18nc("@title:tab", "Configure CMake Settings");
}
QIcon CMakePreferences::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