diff options
author | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2016-09-30 16:46:35 +0200 |
---|---|---|
committer | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2016-10-11 08:24:28 +0000 |
commit | 5e8ff37a776ed67daff2b3863bb1d0fdc36b4ce8 (patch) | |
tree | ecae9a54ee7e620d5bff8da707ca099c579c2101 /src | |
parent | 0f33cdf2b06a662bc2792f2b72145d8661c6a7c5 (diff) |
Fix UI text capitalization and punctuation
Follow the conventions used in Visual Studio also in
Qt VS Tools UI text.
Change-Id: I0ec1ef66ac21a562c2681d1a0c599906ec9928ed
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/qrceditor/mainwindow.cpp | 12 | ||||
-rw-r--r-- | src/qrceditor/shared/qrceditor.cpp | 6 | ||||
-rw-r--r-- | src/qrceditor/shared/resourceview.cpp | 4 | ||||
-rw-r--r-- | src/qttemplates/designer/designer.vstemplate | 4 | ||||
-rw-r--r-- | src/qttemplates/dialogbuttonbottom/dialogbuttonbottom.vstemplate | 2 | ||||
-rw-r--r-- | src/qttemplates/dialogbuttonright/dialogbuttonright.vstemplate | 2 | ||||
-rw-r--r-- | src/qtvstools/QtMenus.vsct | 62 |
7 files changed, 46 insertions, 46 deletions
diff --git a/src/qrceditor/mainwindow.cpp b/src/qrceditor/mainwindow.cpp index 91b4ceb4..9e7aba07 100644 --- a/src/qrceditor/mainwindow.cpp +++ b/src/qrceditor/mainwindow.cpp @@ -51,7 +51,7 @@ MainWindow::MainWindow() : QToolBar* tb = new QToolBar("Title", this); tb->setMovable(false); addToolBar(Qt::TopToolBarArea, tb); - + QAction* oa = fMenu->addAction(tr("&Open...")); oa->setShortcut(tr("Ctrl+O", "File|Open")); oa->setIcon(style()->standardIcon(QStyle::SP_DialogOpenButton)); @@ -108,12 +108,12 @@ void MainWindow::openFile(QString fileName) setWindowTitle(tr("Qt Resource Editor") + " - " + fi.fileName()); } else - statusBar()->showMessage(tr("Unable to open %1!").arg(fileName)); + statusBar()->showMessage(tr("Unable to open %1.").arg(fileName)); } void MainWindow::slotOpen() { - const QString fileName = QFileDialog::getOpenFileName(this, tr("Choose resource file"), + const QString fileName = QFileDialog::getOpenFileName(this, tr("Choose Resource File"), QString(), tr("Resource files (*.qrc)")); this->openFile(fileName); @@ -125,7 +125,7 @@ void MainWindow::slotSave() QString fileName = oldFileName; if (fileName.isEmpty()) { - fileName = QFileDialog::getSaveFileName(this, tr("Save resource file"), + fileName = QFileDialog::getSaveFileName(this, tr("Save Resource File"), QString(), tr("Resource files (*.qrc)")); if (fileName.isEmpty()) @@ -137,7 +137,7 @@ void MainWindow::slotSave() statusBar()->showMessage(tr("%1 written").arg(fileName)); sendFileNameToQtAppWrapper(); } else { - statusBar()->showMessage(tr("Unable to write %1!").arg(fileName)); + statusBar()->showMessage(tr("Unable to write %1.").arg(fileName)); m_qrcEditor->setFileName(oldFileName); } } @@ -177,7 +177,7 @@ int MainWindow::fileChangedDialog() QMessageBox message(this); message.setText(tr("The .qrc file has been modified.")); message.setWindowTitle("Qt Resource Editor"); - message.setInformativeText(tr("Do you want the changes to be saved?")); + message.setInformativeText(tr("Do you want to save the changes?")); message.setStandardButtons(QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel); message.setDefaultButton(QMessageBox::Yes); return message.exec(); diff --git a/src/qrceditor/shared/qrceditor.cpp b/src/qrceditor/shared/qrceditor.cpp index 9d7a3d1b..abc065ca 100644 --- a/src/qrceditor/shared/qrceditor.cpp +++ b/src/qrceditor/shared/qrceditor.cpp @@ -226,7 +226,7 @@ void QrcEditor::resolveLocationIssues(QStringList &files) } else { // Path troublesome -> query user QMessageBox message(this); - message.setWindowTitle(tr("Invalid file location")); + message.setWindowTitle(tr("Invalid File Location")); message.setIcon(QMessageBox::Warning); QPushButton * const copyButton = message.addButton(tr("Copy"), QMessageBox::ActionRole); QPushButton * skipButton = NULL; @@ -262,7 +262,7 @@ void QrcEditor::resolveLocationIssues(QStringList &files) } if (QFile::exists(copyName)) { if (!QFile::remove(copyName)) { - QMessageBox::critical(this, tr("Overwrite failed"), + QMessageBox::critical(this, tr("Overwrite Failed"), tr("Could not overwrite file %1.") .arg(QDir::toNativeSeparators(copyName))); // Remove file @@ -273,7 +273,7 @@ void QrcEditor::resolveLocationIssues(QStringList &files) } } if (!QFile::copy(file, copyName)) { - QMessageBox::critical(this, tr("Copying failed"), + QMessageBox::critical(this, tr("Copying Failed"), tr("Could not copy the file to %1.") .arg(QDir::toNativeSeparators(copyName))); // Remove file diff --git a/src/qrceditor/shared/resourceview.cpp b/src/qrceditor/shared/resourceview.cpp index c61a82e4..4e937560 100644 --- a/src/qrceditor/shared/resourceview.cpp +++ b/src/qrceditor/shared/resourceview.cpp @@ -405,7 +405,7 @@ QModelIndex ResourceView::addPrefix() QStringList ResourceView::fileNamesToAdd() { - return QFileDialog::getOpenFileNames(this, tr("Open file"), + return QFileDialog::getOpenFileNames(this, tr("Open File"), m_qrcModel->absolutePath(QString()), tr("All files (*)")); } @@ -500,7 +500,7 @@ void ResourceView::changePrefix(const QModelIndex &index) QString dummy; m_qrcModel->getItem(preindex, prefixBefore, dummy); - QString const prefixAfter = QInputDialog::getText(this, tr("Change Prefix"), tr("Input Prefix:"), + QString const prefixAfter = QInputDialog::getText(this, tr("Change Prefix"), tr("Input prefix:"), QLineEdit::Normal, prefixBefore, &ok); if (ok) diff --git a/src/qttemplates/designer/designer.vstemplate b/src/qttemplates/designer/designer.vstemplate index e8ab9609..748daa7e 100644 --- a/src/qttemplates/designer/designer.vstemplate +++ b/src/qttemplates/designer/designer.vstemplate @@ -34,8 +34,8 @@ xmlns:sdk="http://schemas.microsoft.com/developer/vstemplate-sdkextension/2010" Type="Project" > <TemplateData> - <Name>Qt Custom Designer Widget</Name> - <Description>This wizard generates a Qt Custom Designer widget.</Description> + <Name>Qt Designer Custom Widget</Name> + <Description>This wizard generates a Qt Designer Custom widget.</Description> <ProjectType>VC</ProjectType> <SortOrder>1000</SortOrder> <CreateNewFolder>true</CreateNewFolder> diff --git a/src/qttemplates/dialogbuttonbottom/dialogbuttonbottom.vstemplate b/src/qttemplates/dialogbuttonbottom/dialogbuttonbottom.vstemplate index affb9b3b..c6b1b2b4 100644 --- a/src/qttemplates/dialogbuttonbottom/dialogbuttonbottom.vstemplate +++ b/src/qttemplates/dialogbuttonbottom/dialogbuttonbottom.vstemplate @@ -34,7 +34,7 @@ xmlns:sdk="http://schemas.microsoft.com/developer/vstemplate-sdkextension/2010" Type="Item"> <TemplateData> - <Name>Qt Dialog Form File (Button bottom)</Name> + <Name>Qt Dialog Form File (Button Bottom)</Name> <Icon>dialogbuttonbottom.ico</Icon> <ProjectType>VC</ProjectType> <AppliesTo>VisualC</AppliesTo> diff --git a/src/qttemplates/dialogbuttonright/dialogbuttonright.vstemplate b/src/qttemplates/dialogbuttonright/dialogbuttonright.vstemplate index 60794e83..76406071 100644 --- a/src/qttemplates/dialogbuttonright/dialogbuttonright.vstemplate +++ b/src/qttemplates/dialogbuttonright/dialogbuttonright.vstemplate @@ -34,7 +34,7 @@ xmlns:sdk="http://schemas.microsoft.com/developer/vstemplate-sdkextension/2010" Type="Item"> <TemplateData> - <Name>Qt Dialog Form File (Button right)</Name> + <Name>Qt Dialog Form File (Button Right)</Name> <Icon>dialogbuttonright.ico</Icon> <ProjectType>VC</ProjectType> <AppliesTo>VisualC</AppliesTo> diff --git a/src/qtvstools/QtMenus.vsct b/src/qtvstools/QtMenus.vsct index 8857c474..80f874d4 100644 --- a/src/qtvstools/QtMenus.vsct +++ b/src/qtvstools/QtMenus.vsct @@ -180,8 +180,8 @@ <Icon guid="MenuImages" id="LaunchDesignerBitmap" /> <CommandFlag>DefaultDisabled</CommandFlag> <Strings> - <ButtonText>Launch Designer</ButtonText> - <ToolTipText>This will start Qt Designer.</ToolTipText> + <ButtonText>Launch Qt Designer</ButtonText> + <ToolTipText>Start Qt Designer</ToolTipText> </Strings> </Button> <Button guid="MainMenuGuid" id="LaunchLinguistId" priority="0x0100" type="Button"> @@ -189,8 +189,8 @@ <Icon guid="MenuImages" id="LaunchLinguistBitmap" /> <CommandFlag>DefaultDisabled</CommandFlag> <Strings> - <ButtonText>Launch Linguist</ButtonText> - <ToolTipText>This will start Qt Linguist.</ToolTipText> + <ButtonText>Launch Qt Linguist</ButtonText> + <ToolTipText>Start Qt Linguist</ToolTipText> </Strings> </Button> @@ -199,7 +199,7 @@ <Icon guid="MenuImages" id="OpenProFileBitmap" /> <Strings> <ButtonText>Open Qt Project File (.pro)...</ButtonText> - <ToolTipText>Opens a Qt Project File (.pro) and creates a new solution respectively adds a new project to the current solution.</ToolTipText> + <ToolTipText>Open a Qt Project File (.pro), create a new solution, and add a new project to it</ToolTipText> </Strings> </Button> <Button guid="MainMenuGuid" id="ImportPriFileId" priority="0x0100" type="Button"> @@ -208,7 +208,7 @@ <CommandFlag>DefaultDisabled</CommandFlag> <Strings> <ButtonText>Import .pri File to Project...</ButtonText> - <ToolTipText>This will import a .pri file and create a Qt project from it.</ToolTipText> + <ToolTipText>Import a .pri file and create a Qt project from it</ToolTipText> </Strings> </Button> <Button guid="MainMenuGuid" id="ExportPriFileId" priority="0x0100" type="Button"> @@ -217,7 +217,7 @@ <CommandFlag>DefaultDisabled</CommandFlag> <Strings> <ButtonText>Export Project to .pri File...</ButtonText> - <ToolTipText>This will export the current project to a .pri file.</ToolTipText> + <ToolTipText>Export the current project to a .pri file</ToolTipText> </Strings> </Button> <Button guid="MainMenuGuid" id="ExportProFileId" priority="0x0100" type="Button"> @@ -225,8 +225,8 @@ <Icon guid="MenuImages" id="CreateProFileBitmap" /> <CommandFlag>DefaultDisabled</CommandFlag> <Strings> - <ButtonText>Create basic .pro File...</ButtonText> - <ToolTipText>This will export the current project to a Qt Project file (.pro).</ToolTipText> + <ButtonText>Create Basic .pro File...</ButtonText> + <ToolTipText>Export the current project to a Qt project file (.pro)</ToolTipText> </Strings> </Button> @@ -234,8 +234,8 @@ <Parent guid="MainMenuGuid" id="OthersMenuGroup" /> <CommandFlag>DefaultDisabled</CommandFlag> <Strings> - <ButtonText>Create new Translation File</ButtonText> - <ToolTipText>Creates a new translation file for Qt Linguist.</ToolTipText> + <ButtonText>Create New Translation File</ButtonText> + <ToolTipText>Create a new translation file that you can open in Qt Linguist</ToolTipText> </Strings> </Button> <Button guid="MainMenuGuid" id="ConvertToQtId" priority="0x0100" type="Button"> @@ -244,7 +244,7 @@ <CommandFlag>DefaultInvisible</CommandFlag> <CommandFlag>DynamicVisibility</CommandFlag> <Strings> - <ButtonText>Convert project to Qt VS Tools project</ButtonText> + <ButtonText>Convert Project to Qt VS Tools Project</ButtonText> </Strings> </Button> <Button guid="MainMenuGuid" id="ConvertToQmakeId" priority="0x0100" type="Button"> @@ -252,7 +252,7 @@ <CommandFlag>DefaultDisabled</CommandFlag> <CommandFlag>DynamicVisibility</CommandFlag> <Strings> - <ButtonText>Convert project to QMake generated project</ButtonText> + <ButtonText>Convert Project to QMake Generated Project</ButtonText> </Strings> </Button> <Button guid="MainMenuGuid" id="QtProjectSettingsId" priority="0x0100" type="Button"> @@ -261,7 +261,7 @@ <CommandFlag>DynamicVisibility</CommandFlag> <Strings> <ButtonText>Qt Project Settings</ButtonText> - <ToolTipText>Edit Qt settings of the current project.</ToolTipText> + <ToolTipText>Edit Qt settings of the current project</ToolTipText> </Strings> </Button> <Button guid="MainMenuGuid" id="ChangeProjectQtVersionId" priority="0x0100" type="Button"> @@ -270,7 +270,7 @@ <CommandFlag>DefaultInvisible</CommandFlag> <CommandFlag>DynamicVisibility</CommandFlag> <Strings> - <ButtonText>Change project's Qt Version</ButtonText> + <ButtonText>Change Project's Qt Version</ButtonText> </Strings> </Button> @@ -279,7 +279,7 @@ <Icon guid="MenuImages" id="QtLogoBitmap" /> <Strings> <ButtonText>Qt Options</ButtonText> - <ToolTipText>Configure the default Qt settings.</ToolTipText> + <ToolTipText>Configure the default Qt settings</ToolTipText> </Strings> </Button> @@ -294,7 +294,7 @@ <CommandFlag>DefaultInvisible</CommandFlag> <CommandFlag>DynamicVisibility</CommandFlag> <Strings> - <ButtonText>lupdate all .ts files in solution</ButtonText> + <ButtonText>lupdate All .ts Files in Solution</ButtonText> </Strings> </Button> <Button guid="SolutionContextMenuGuid" id="lReleaseOnSolutionId" priority="0x0100" type="Button"> @@ -304,7 +304,7 @@ <CommandFlag>DefaultInvisible</CommandFlag> <CommandFlag>DynamicVisibility</CommandFlag> <Strings> - <ButtonText>lrelease all .ts files in solution</ButtonText> + <ButtonText>lrelease All .ts Files in Solution</ButtonText> </Strings> </Button> @@ -315,7 +315,7 @@ <CommandFlag>DynamicVisibility</CommandFlag> <Strings> <ButtonText>Change Solution's Qt Version</ButtonText> - <ToolTipText>Change the Qt version for this solution and all contained projects.</ToolTipText> + <ToolTipText>Change the Qt version for this solution and all contained projects</ToolTipText> </Strings> </Button> @@ -329,7 +329,7 @@ <CommandFlag>DefaultDisabled</CommandFlag> <Strings> <ButtonText>Import .pri File to Project...</ButtonText> - <ToolTipText>This will import a .pri file and create a Qt project from it.</ToolTipText> + <ToolTipText>Import a .pri file and create a Qt project from it</ToolTipText> </Strings> </Button> <Button guid="ProjectContextMenuGuid" id="ExportPriFileProjectId" priority="0x0100" type="Button"> @@ -338,7 +338,7 @@ <CommandFlag>DefaultDisabled</CommandFlag> <Strings> <ButtonText>Export Project to .pri File...</ButtonText> - <ToolTipText>This will export the current project to a .pri file.</ToolTipText> + <ToolTipText>Export the current project to a .pri file</ToolTipText> </Strings> </Button> <Button guid="ProjectContextMenuGuid" id="ExportProFileProjectId" priority="0x0100" type="Button"> @@ -346,8 +346,8 @@ <Icon guid="MenuImages" id="CreateProFileBitmap" /> <CommandFlag>DefaultDisabled</CommandFlag> <Strings> - <ButtonText>Create basic .pro File...</ButtonText> - <ToolTipText>This will export the current project to a Qt Project file (.pro).</ToolTipText> + <ButtonText>Create Basic .pro File...</ButtonText> + <ToolTipText>Export the current project to a Qt Project file (.pro)</ToolTipText> </Strings> </Button> @@ -355,8 +355,8 @@ <Parent guid="ProjectContextMenuGuid" id="ProjectContextTsMenuGroup" /> <CommandFlag>DefaultDisabled</CommandFlag> <Strings> - <ButtonText>Create new Translation File</ButtonText> - <ToolTipText>Creates a new translation file for Qt Linguist.</ToolTipText> + <ButtonText>Create New Translation File</ButtonText> + <ToolTipText>Create a new translation file that you can open in Qt Linguist</ToolTipText> </Strings> </Button> <Button guid="ProjectContextMenuGuid" id="lUpdateOnProjectId" priority="0x0100" type="Button"> @@ -364,7 +364,7 @@ <Icon guid="MenuImages" id="LaunchLinguistBitmap" /> <CommandFlag>DefaultDisabled</CommandFlag> <Strings> - <ButtonText>lupdate all .ts files in project</ButtonText> + <ButtonText>lupdate All .ts Files in Project</ButtonText> </Strings> </Button> <Button guid="ProjectContextMenuGuid" id="lReleaseOnProjectId" priority="0x0100" type="Button"> @@ -372,7 +372,7 @@ <Icon guid="MenuImages" id="LaunchLinguistBitmap" /> <CommandFlag>DefaultDisabled</CommandFlag> <Strings> - <ButtonText>lrelease all .ts files in project</ButtonText> + <ButtonText>lrelease All .ts Files in Project</ButtonText> </Strings> </Button> @@ -382,7 +382,7 @@ <CommandFlag>DefaultInvisible</CommandFlag> <CommandFlag>DynamicVisibility</CommandFlag> <Strings> - <ButtonText>Convert project to Qt VS Tools project</ButtonText> + <ButtonText>Convert Project to Qt VS Tools Project</ButtonText> </Strings> </Button> <Button guid="ProjectContextMenuGuid" id="ConvertToQmakeProjectId" priority="0x0100" type="Button"> @@ -390,7 +390,7 @@ <CommandFlag>DefaultDisabled</CommandFlag> <CommandFlag>DynamicVisibility</CommandFlag> <Strings> - <ButtonText>Convert project to QMake generated project</ButtonText> + <ButtonText>Convert Project to QMake Generated Project</ButtonText> </Strings> </Button> <Button guid="ProjectContextMenuGuid" id="QtProjectSettingsProjectId" priority="0x0100" type="Button"> @@ -399,7 +399,7 @@ <CommandFlag>DynamicVisibility</CommandFlag> <Strings> <ButtonText>Qt Project Settings</ButtonText> - <ToolTipText>Edit Qt settings of the current project.</ToolTipText> + <ToolTipText>Edit Qt settings of the current project</ToolTipText> </Strings> </Button> <Button guid="ProjectContextMenuGuid" id="ChangeProjectQtVersionProjectId" priority="0x0100" type="Button"> @@ -408,7 +408,7 @@ <CommandFlag>DefaultInvisible</CommandFlag> <CommandFlag>DynamicVisibility</CommandFlag> <Strings> - <ButtonText>Change project's Qt Version</ButtonText> + <ButtonText>Change Project's Qt Version</ButtonText> </Strings> </Button> <Button guid="ProjectContextMenuGuid" id="ProjectAddNewQtClassProjectId" priority="0x0100" type="Button"> |