forked from qt-creator/qt-creator
ClangFormat: Fix terminology
It is either `ClangFormat` (the product) or `clang-format` (the executable). Change-Id: I018abd8c6f3d33a7d93259f79ce09174e451a5df Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
@@ -15239,12 +15239,12 @@ Zum Beispiel bewirkt die Angabe "Revision: 15" dass der Branch auf Rev
|
||||
<translation>Fallback-Stil:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Clang Format command:</source>
|
||||
<translation>Ausführbare Datei von Clang Format:</translation>
|
||||
<source>ClangFormat command:</source>
|
||||
<translation>Ausführbare Datei von ClangFormat:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Clang Format</source>
|
||||
<translation>Clang Format</translation>
|
||||
<source>ClangFormat</source>
|
||||
<translation>ClangFormat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Use file uncrustify.cfg defined in project files</source>
|
||||
|
@@ -15352,12 +15352,12 @@ Par exemple, « Revision : 15 » laissera la branche à la révis
|
||||
<translation>Style de repli :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Clang Format command:</source>
|
||||
<translation>Commande de Clang Format :</translation>
|
||||
<source>ClangFormat command:</source>
|
||||
<translation>Commande de ClangFormat :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Clang Format</source>
|
||||
<translation>Clang Format</translation>
|
||||
<source>ClangFormat</source>
|
||||
<translation>ClangFormat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No description available.</source>
|
||||
|
@@ -150,7 +150,7 @@ AbstractSettings::AbstractSettings(const QString &name, const QString &ending)
|
||||
command.setSettingsKey("command");
|
||||
command.setExpectedKind(PathChooser::ExistingCommand);
|
||||
command.setCommandVersionArguments({"--version"});
|
||||
command.setPromptDialogTitle(BeautifierTool::msgCommandPromptDialogTitle("Clang Format"));
|
||||
command.setPromptDialogTitle(BeautifierTool::msgCommandPromptDialogTitle("ClangFormat"));
|
||||
command.setValidatePlaceHolder(true);
|
||||
command.addOnChanged(this, [this] { m_version = {}; version(); });
|
||||
|
||||
|
@@ -54,8 +54,8 @@ public:
|
||||
: AbstractSettings(SETTINGS_NAME, ".clang-format")
|
||||
{
|
||||
command.setDefaultValue("clang-format");
|
||||
command.setPromptDialogTitle(BeautifierTool::msgCommandPromptDialogTitle("Clang Format"));
|
||||
command.setLabelText(Tr::tr("Clang Format command:"));
|
||||
command.setPromptDialogTitle(BeautifierTool::msgCommandPromptDialogTitle("ClangFormat"));
|
||||
command.setLabelText(Tr::tr("ClangFormat command:"));
|
||||
|
||||
usePredefinedStyle.setSettingsKey("usePredefinedStyle");
|
||||
usePredefinedStyle.setDefaultValue(true);
|
||||
@@ -530,7 +530,7 @@ public:
|
||||
ClangFormatSettingsPage()
|
||||
{
|
||||
setId("ClangFormat");
|
||||
setDisplayName(Tr::tr("Clang Format"));
|
||||
setDisplayName(Tr::tr("ClangFormat"));
|
||||
setCategory(Constants::OPTION_CATEGORY);
|
||||
setWidgetCreator([] { return new ClangFormatSettingsPageWidget; });
|
||||
}
|
||||
|
@@ -375,9 +375,11 @@ public:
|
||||
private:
|
||||
void slotImportClicked() final
|
||||
{
|
||||
const FilePath filePath =
|
||||
FileUtils::getOpenFilePath(this, Tr::tr("Import Code Format"), {},
|
||||
Tr::tr("Clang Format (*clang-format*);;All files (*)"));
|
||||
const FilePath filePath = FileUtils::getOpenFilePath(
|
||||
this,
|
||||
Tr::tr("Import Code Format"),
|
||||
{},
|
||||
Tr::tr("ClangFormat (*clang-format*);;All files (*)"));
|
||||
if (!filePath.isEmpty()) {
|
||||
QString name = QInputDialog::getText(
|
||||
this,
|
||||
@@ -407,7 +409,7 @@ private:
|
||||
this,
|
||||
Tr::tr("Export Code Format"),
|
||||
FileUtils::homePath(),
|
||||
Tr::tr("Clang Format (*clang-format*);;All files (*)"));
|
||||
Tr::tr("ClangFormat (*clang-format*);;All files (*)"));
|
||||
if (!filePath.isEmpty()) {
|
||||
FilePath clangFormatFile = filePathToCurrentSettings(currentPreferences);
|
||||
clangFormatFile.copyFile(filePath);
|
||||
|
Reference in New Issue
Block a user