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

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

GIT_SILENT
parent 931f8859
......@@ -50,12 +50,12 @@ void SessionSettings::apply()
QString SessionSettings::name() const
{
return i18n("C/C++ Helpers");
return i18nc("@title:tab", "C/C++ Helpers");
}
QString SessionSettings::fullName() const
{
return i18n("Configure C/C++ Helpers");
return i18nc("@title:tab", "Configure C/C++ Helpers");
}
QIcon SessionSettings::icon() const
......
......@@ -26,16 +26,16 @@
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>Code-completion</string>
<string comment="@title:group">Code Completion</string>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<widget class="QCheckBox" name="kcfg_macros">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;If disabled, macros will not be included in the code-completion results. This can improve the responsiveness of code-completion in some cases.&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string comment="@info:tooltip">If disabled, macros will not be included in the code completion results. This can improve the responsiveness of code completion in some cases.</string>
</property>
<property name="text">
<string>Add macros to code-completion</string>
<string comment="@option:check">Add macros to code completion</string>
</property>
<property name="checked">
<bool>true</bool>
......@@ -48,7 +48,7 @@
<bool>true</bool>
</property>
<property name="text">
<string>Enable Look-ahead code-completion</string>
<string comment="@option:check">Enable Look-ahead code completion</string>
</property>
<property name="checked">
<bool>false</bool>
......@@ -61,13 +61,13 @@
<item row="1" column="0">
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>Assistants</string>
<string comment="@title:group">Assistants</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QCheckBox" name="kcfg_forwardDeclare">
<property name="text">
<string>Forward declare assistant</string>
<string comment="@option:check">Forward declare assistant</string>
</property>
<property name="checked">
<bool>true</bool>
......
......@@ -290,14 +290,14 @@ void ClangSupport::createActionsForMainWindow (Sublime::MainWindow* /*window*/,
_xmlFile = xmlFile();
QAction* renameDeclarationAction = actions.addAction(QStringLiteral("code_rename_declaration"));
renameDeclarationAction->setText( i18n("Rename Declaration") );
renameDeclarationAction->setText( i18nc("@action", "Rename Declaration") );
renameDeclarationAction->setIcon(QIcon::fromTheme(QStringLiteral("edit-rename")));
actions.setDefaultShortcut(renameDeclarationAction, Qt::CTRL | Qt::SHIFT | Qt::Key_R);
connect(renameDeclarationAction, &QAction::triggered,
m_refactoring, &ClangRefactoring::executeRenameAction);
QAction* moveIntoSourceAction = actions.addAction(QStringLiteral("code_move_definition"));
moveIntoSourceAction->setText(i18n("Move into Source"));
moveIntoSourceAction->setText(i18nc("@action", "Move into Source"));
actions.setDefaultShortcut(moveIntoSourceAction, Qt::CTRL | Qt::ALT | Qt::Key_S);
connect(moveIntoSourceAction, &QAction::triggered,
m_refactoring, &ClangRefactoring::executeMoveIntoSourceAction);
......
......@@ -96,7 +96,7 @@ void ClangRefactoring::fillContextMenu(ContextMenuExtension& extension, Context*
return;
}
auto action = new QAction(i18n("Rename %1", declaration->qualifiedIdentifier().toString()), parent);
auto action = new QAction(i18nc("@action", "Rename %1", declaration->qualifiedIdentifier().toString()), parent);
action->setData(QVariant::fromValue(IndexedDeclaration(declaration)));
action->setIcon(QIcon::fromTheme(QStringLiteral("edit-rename")));
connect(action, &QAction::triggered, this, &ClangRefactoring::executeRenameAction);
......
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