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

custom-buildsystem: add more UI context marker for strings, fix some style

GIT_SILENT
parent 02f16fc6
......@@ -35,11 +35,11 @@ ConfigWidget::ConfigWidget( QWidget* parent )
ui->buildDir->setMode(KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly);
ui->buildAction->insertItem( CustomBuildSystemTool::Build, i18n("Build"), QVariant() );
ui->buildAction->insertItem( CustomBuildSystemTool::Configure, i18n("Configure"), QVariant() );
ui->buildAction->insertItem( CustomBuildSystemTool::Install, i18n("Install"), QVariant() );
ui->buildAction->insertItem( CustomBuildSystemTool::Clean, i18n("Clean"), QVariant() );
ui->buildAction->insertItem( CustomBuildSystemTool::Prune, i18n("Prune"), QVariant() );
ui->buildAction->insertItem( CustomBuildSystemTool::Build, i18nc("@item:inlistbox build action", "Build"), QVariant() );
ui->buildAction->insertItem( CustomBuildSystemTool::Configure, i18nc("@item:inlistbox build action", "Configure"), QVariant() );
ui->buildAction->insertItem( CustomBuildSystemTool::Install, i18nc("@item:inlistbox build action", "Install"), QVariant() );
ui->buildAction->insertItem( CustomBuildSystemTool::Clean, i18nc("@item:inlistbox build action", "Clean"), QVariant() );
ui->buildAction->insertItem( CustomBuildSystemTool::Prune, i18nc("@item:inlistbox build action", "Prune"), QVariant() );
connect( ui->buildAction, QOverload<int>::of(&KComboBox::activated), this, &ConfigWidget::changeAction );
......
......@@ -16,18 +16,18 @@
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>Build Directory:</string>
<string comment="@label:chooser">Build directory:</string>
</property>
</widget>
</item>
<item>
<widget class="KUrlRequester" name="buildDir" native="true">
<property name="toolTip">
<string>Select the directory where the tools are being executed in.
<string comment="@info:tooltip">Select the directory where the tools are being executed in.
If this is the same as the source directory you can leave it empty.</string>
</property>
<property name="placeholderText" stdset="0">
<string>The directory where the tools are executed</string>
<string comment="@info:placeholder">The directory where the tools are executed in</string>
</property>
<property name="text" stdset="0">
<string/>
......@@ -39,13 +39,13 @@ If this is the same as the source directory you can leave it empty.</string>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Build Tools</string>
<string comment="@title:group">Build Tools</string>
</property>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Action:</string>
<string comment="@label:listbox">Action:</string>
</property>
</widget>
</item>
......@@ -55,7 +55,7 @@ If this is the same as the source directory you can leave it empty.</string>
<item row="1" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string>Enable:</string>
<string comment="@option:check">Enable:</string>
</property>
</widget>
</item>
......@@ -72,7 +72,7 @@ If this is the same as the source directory you can leave it empty.</string>
<bool>false</bool>
</property>
<property name="text">
<string>Executable:</string>
<string comment="@label:chooser">Executable:</string>
</property>
</widget>
</item>
......@@ -82,7 +82,7 @@ If this is the same as the source directory you can leave it empty.</string>
<bool>false</bool>
</property>
<property name="toolTip">
<string>This is the executable that should be executed when selecting the action from the Project menu</string>
<string comment="@info:tooltip">This is the executable that should be executed when selecting the action from the Project menu</string>
</property>
</widget>
</item>
......@@ -92,7 +92,7 @@ If this is the same as the source directory you can leave it empty.</string>
<bool>false</bool>
</property>
<property name="text">
<string>Arguments:</string>
<string comment="@label:textbox">Arguments:</string>
</property>
</widget>
</item>
......@@ -102,7 +102,7 @@ If this is the same as the source directory you can leave it empty.</string>
<bool>false</bool>
</property>
<property name="toolTip">
<string>The arguments that the tool needs to execute properly.</string>
<string comment="@info:tooltip">The arguments that the tool needs to execute properly.</string>
</property>
</widget>
</item>
......@@ -112,7 +112,7 @@ If this is the same as the source directory you can leave it empty.</string>
<bool>false</bool>
</property>
<property name="text">
<string>Environment:</string>
<string comment="@label:chooser">Environment:</string>
</property>
</widget>
</item>
......@@ -122,7 +122,7 @@ If this is the same as the source directory you can leave it empty.</string>
<bool>false</bool>
</property>
<property name="toolTip">
<string>Choose a pre-configured environment for your tool</string>
<string comment="@info:tooltip">Choose a pre-configured environment for your tool</string>
</property>
</widget>
</item>
......
......@@ -24,11 +24,11 @@
QString CustomBuildSystemTool::toolName(CustomBuildSystemTool::ActionType type)
{
switch (type) {
case Build: return i18nc("Custom build tool", "build");
case Configure: return i18nc("Custom build tool", "configure");
case Install: return i18nc("Custom build tool", "install");
case Clean: return i18nc("Custom build tool", "clean");
case Prune: return i18nc("Custom build tool", "prune");
default: return i18n("unknown");
case Build: return i18nc("@item:intext custom 'build' tool", "build");
case Configure: return i18nc("@item:intext custom 'configure' tool", "configure");
case Install: return i18nc("@item:intext custom 'install' tool", "install");
case Clean: return i18nc("@item:intext custom 'clean' tool", "clean");
case Prune: return i18nc("@item:intext custom 'prune' tool", "prune");
default: return i18nc("@item:intext custom 'unknown' tool", "unknown");
}
}
......@@ -28,7 +28,7 @@
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Build configuration:</string>
<string comment="@label:listbox">Build configuration:</string>
</property>
</widget>
</item>
......@@ -51,7 +51,7 @@
<item>
<widget class="QPushButton" name="addConfig">
<property name="text">
<string>Add</string>
<string comment="@action:button">Add</string>
</property>
<property name="icon">
<iconset theme="list-add"/>
......@@ -61,7 +61,7 @@
<item>
<widget class="QPushButton" name="removeConfig">
<property name="text">
<string>Remove</string>
<string comment="@action:button">Remove</string>
</property>
<property name="icon">
<iconset theme="edit-delete"/>
......
......@@ -63,7 +63,7 @@ void CustomBuildSystemKCModule::defaults()
QString CustomBuildSystemKCModule::name() const
{
return i18n("Custom Build System");
return i18nc("@title:tab", "Custom Build System");
}
QString CustomBuildSystemKCModule::fullName() 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