From 83d451be32bdecffed00e582dcb58a2e3b912a95 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin <daniel.molkentin@nokia.com> Date: Mon, 25 May 2009 13:45:00 +0200 Subject: [PATCH] Make strings consistant, part. descriptions in the 'New' wizard. --- src/plugins/coreplugin/mainwindow.cpp | 2 +- src/plugins/cppeditor/cppplugin.cpp | 4 ++-- src/plugins/designer/formeditorplugin.cpp | 4 ++-- src/plugins/duieditor/duieditorplugin.cpp | 2 +- src/plugins/qtscripteditor/qtscripteditorplugin.cpp | 2 +- src/plugins/resourceeditor/resourceeditorplugin.cpp | 4 ++-- src/plugins/texteditor/texteditorplugin.cpp | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp index a334518f3ff..a13d965d1a6 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -760,7 +760,7 @@ void MainWindow::registerDefaultActions() void MainWindow::newFile() { - showNewItemDialog(tr("New", "Title of dialog"), IWizard::allWizards()); + showNewItemDialog(tr("New...", "Title of dialog"), IWizard::allWizards()); } void MainWindow::openFile() diff --git a/src/plugins/cppeditor/cppplugin.cpp b/src/plugins/cppeditor/cppplugin.cpp index 9e17083c219..318f3f0b51a 100644 --- a/src/plugins/cppeditor/cppplugin.cpp +++ b/src/plugins/cppeditor/cppplugin.cpp @@ -165,11 +165,11 @@ bool CppPlugin::initialize(const QStringList & /*arguments*/, QString *errorMess wizardParameters.setCategory(QLatin1String("C++")); wizardParameters.setTrCategory(tr("C++")); - wizardParameters.setDescription(tr("Creates a new C++ header file.")); + wizardParameters.setDescription(tr("Creates a C++ header file.")); wizardParameters.setName(tr("C++ Header File")); addAutoReleasedObject(new CppFileWizard(wizardParameters, Header, core)); - wizardParameters.setDescription(tr("Creates a new C++ source file.")); + wizardParameters.setDescription(tr("Creates a C++ source file.")); wizardParameters.setName(tr("C++ Source File")); addAutoReleasedObject(new CppFileWizard(wizardParameters, Source, core)); diff --git a/src/plugins/designer/formeditorplugin.cpp b/src/plugins/designer/formeditorplugin.cpp index 39b1e17775b..8962f2f714a 100644 --- a/src/plugins/designer/formeditorplugin.cpp +++ b/src/plugins/designer/formeditorplugin.cpp @@ -148,14 +148,14 @@ bool FormEditorPlugin::initializeTemplates(QString *error) wizardParameters.setTrCategory(tr("Qt")); const QString formFileType = QLatin1String(Constants::FORM_FILE_TYPE); wizardParameters.setName(tr("Qt Designer Form")); - wizardParameters.setDescription(tr("This creates a new Qt Designer form file.")); + wizardParameters.setDescription(tr("Creates a Qt Designer form file (.ui).")); m_formWizard = new FormWizard(wizardParameters, this); addObject(m_formWizard); #ifdef CPP_ENABLED wizardParameters.setKind(Core::IWizard::ClassWizard); wizardParameters.setName(tr("Qt Designer Form Class")); - wizardParameters.setDescription(tr("This creates a new Qt Designer form class.")); + wizardParameters.setDescription(tr("Creates a Qt Designer form file (.ui) with a matching class.")); m_formClassWizard = new FormClassWizard(wizardParameters, this); addObject(m_formClassWizard); #endif diff --git a/src/plugins/duieditor/duieditorplugin.cpp b/src/plugins/duieditor/duieditorplugin.cpp index 09898aaaf7d..45216ebe846 100644 --- a/src/plugins/duieditor/duieditorplugin.cpp +++ b/src/plugins/duieditor/duieditorplugin.cpp @@ -95,7 +95,7 @@ bool DuiEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err addObject(m_editor); Core::BaseFileWizardParameters wizardParameters(Core::IWizard::FileWizard); - wizardParameters.setDescription(tr("Qt QML File")); + wizardParameters.setDescription(tr("Creates a Qt QML file.")); wizardParameters.setName(tr("Qt QML File")); wizardParameters.setCategory(QLatin1String("Qt")); wizardParameters.setTrCategory(tr("Qt")); diff --git a/src/plugins/qtscripteditor/qtscripteditorplugin.cpp b/src/plugins/qtscripteditor/qtscripteditorplugin.cpp index eadf2711ea8..c37e1a5ec01 100644 --- a/src/plugins/qtscripteditor/qtscripteditorplugin.cpp +++ b/src/plugins/qtscripteditor/qtscripteditorplugin.cpp @@ -94,7 +94,7 @@ bool QtScriptEditorPlugin::initialize(const QStringList & /*arguments*/, QString addObject(m_editor); Core::BaseFileWizardParameters wizardParameters(Core::IWizard::FileWizard); - wizardParameters.setDescription(tr("Qt Script file")); + wizardParameters.setDescription(tr("Creates a Qt Script file.")); wizardParameters.setName(tr("Qt Script file")); wizardParameters.setCategory(QLatin1String("Qt")); wizardParameters.setTrCategory(tr("Qt")); diff --git a/src/plugins/resourceeditor/resourceeditorplugin.cpp b/src/plugins/resourceeditor/resourceeditorplugin.cpp index bb04c71cda2..826553f2d53 100644 --- a/src/plugins/resourceeditor/resourceeditorplugin.cpp +++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp @@ -74,8 +74,8 @@ bool ResourceEditorPlugin::initialize(const QStringList &arguments, QString *err addObject(m_editor); Core::BaseFileWizardParameters wizardParameters(Core::IWizard::FileWizard); - wizardParameters.setDescription(tr("Resource file")); - wizardParameters.setName(tr("Resource file")); + wizardParameters.setDescription(tr("Create a Qt Resource file (.qrc).")); + wizardParameters.setName(tr("Qt Resource file")); wizardParameters.setCategory(QLatin1String("Qt")); wizardParameters.setTrCategory(tr("Qt")); diff --git a/src/plugins/texteditor/texteditorplugin.cpp b/src/plugins/texteditor/texteditorplugin.cpp index d1e4ce5c8fd..0eab66e3008 100644 --- a/src/plugins/texteditor/texteditorplugin.cpp +++ b/src/plugins/texteditor/texteditorplugin.cpp @@ -90,7 +90,7 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe return false; Core::BaseFileWizardParameters wizardParameters(Core::IWizard::FileWizard); - wizardParameters.setDescription(tr("This creates a new text file (.txt)")); + wizardParameters.setDescription(tr("Creates a text file (.txt).")); wizardParameters.setName(tr("Text File")); wizardParameters.setCategory(QLatin1String("General")); wizardParameters.setTrCategory(tr("General")); -- GitLab