Doc - Fix UI text capitalization to follow the KDE style guide.

Reviewed-by: dt
This commit is contained in:
Leena Miettinen
2010-09-14 14:51:50 +02:00
parent 3a1b0584cf
commit 0037296d70
9 changed files with 26 additions and 26 deletions

View File

@@ -209,8 +209,8 @@ CMakeBuildConfiguration *CMakeBuildConfigurationFactory::create(ProjectExplorer:
//TODO configuration name should be part of the cmakeopenprojectwizard //TODO configuration name should be part of the cmakeopenprojectwizard
bool ok; bool ok;
QString buildConfigurationName = QInputDialog::getText(0, QString buildConfigurationName = QInputDialog::getText(0,
tr("New configuration"), tr("New Configuration"),
tr("New Configuration Name:"), tr("New configuration name:"),
QLineEdit::Normal, QLineEdit::Normal,
QString(), QString(),
&ok); &ok);

View File

@@ -285,16 +285,16 @@ void CMakeRunPage::initWidgets()
if (m_cmakeWizard->cmakeManager()->isCMakeExecutableValid()) { if (m_cmakeWizard->cmakeManager()->isCMakeExecutableValid()) {
m_cmakeExecutable = 0; m_cmakeExecutable = 0;
} else { } else {
QString text = tr("Please specify the path to the cmake executable. No cmake executable was found in the path."); QString text = tr("Please specify the path to the CMake executable. No CMake executable was found in the path.");
QString cmakeExecutable = m_cmakeWizard->cmakeManager()->cmakeExecutable(); QString cmakeExecutable = m_cmakeWizard->cmakeManager()->cmakeExecutable();
if (!cmakeExecutable.isEmpty()) { if (!cmakeExecutable.isEmpty()) {
QFileInfo fi(cmakeExecutable); QFileInfo fi(cmakeExecutable);
if (!fi.exists()) if (!fi.exists())
text += tr(" The cmake executable (%1) does not exist.").arg(cmakeExecutable); text += tr(" The CMake executable (%1) does not exist.").arg(cmakeExecutable);
else if (!fi.isExecutable()) else if (!fi.isExecutable())
text += tr(" The path %1 is not a executable.").arg(cmakeExecutable); text += tr(" The path %1 is not a executable.").arg(cmakeExecutable);
else else
text += tr(" The path %1 is not a valid cmake.").arg(cmakeExecutable); text += tr(" The path %1 is not a valid CMake.").arg(cmakeExecutable);
} }
fl->addRow(new QLabel(text, this)); fl->addRow(new QLabel(text, this));
@@ -340,31 +340,31 @@ void CMakeRunPage::initializePage()
if (m_cmakeWizard->existsUpToDateXmlFile()) { if (m_cmakeWizard->existsUpToDateXmlFile()) {
m_descriptionLabel->setText( m_descriptionLabel->setText(
tr("The directory %1 already contains a cbp file, which is recent enough. " tr("The directory %1 already contains a cbp file, which is recent enough. "
"You can pass special arguments or change the used toolchain here and rerun cmake. " "You can pass special arguments or change the used toolchain here and rerun CMake. "
"Or simply finish the wizard directly").arg(m_buildDirectory)); "Or simply finish the wizard directly.").arg(m_buildDirectory));
} else { } else {
m_descriptionLabel->setText( m_descriptionLabel->setText(
tr("The directory %1 does not contain a cbp file. Qt Creator needs to create this file by running cmake. " tr("The directory %1 does not contain a cbp file. Qt Creator needs to create this file by running CMake. "
"Some projects require command line arguments to the initial cmake call.").arg(m_buildDirectory)); "Some projects require command line arguments to the initial CMake call.").arg(m_buildDirectory));
} }
} else if (m_mode == CMakeRunPage::NeedToUpdate) { } else if (m_mode == CMakeRunPage::NeedToUpdate) {
m_descriptionLabel->setText(tr("The directory %1 contains an outdated .cbp file. Qt " m_descriptionLabel->setText(tr("The directory %1 contains an outdated .cbp file. Qt "
"Creator needs to update this file by running cmake. " "Creator needs to update this file by running CMake. "
"If you want to add additional command line arguments, " "If you want to add additional command line arguments, "
"add them below. Note that cmake remembers command " "add them below. Note that CMake remembers command "
"line arguments from the previous runs.").arg(m_buildDirectory)); "line arguments from the previous runs.").arg(m_buildDirectory));
} else if(m_mode == CMakeRunPage::Recreate) { } else if(m_mode == CMakeRunPage::Recreate) {
m_descriptionLabel->setText(tr("The directory %1 specified in a build-configuration, " m_descriptionLabel->setText(tr("The directory %1 specified in a build-configuration, "
"does not contain a cbp file. Qt Creator needs to " "does not contain a cbp file. Qt Creator needs to "
"recreate this file, by running cmake. " "recreate this file, by running CMake. "
"Some projects require command line arguments to " "Some projects require command line arguments to "
"the initial cmake call. Note that cmake remembers command " "the initial CMake call. Note that CMake remembers command "
"line arguments from the previous runs.").arg(m_buildDirectory)); "line arguments from the previous runs.").arg(m_buildDirectory));
} else if(m_mode == CMakeRunPage::ChangeDirectory) { } else if(m_mode == CMakeRunPage::ChangeDirectory) {
m_buildDirectory = m_cmakeWizard->buildDirectory(); m_buildDirectory = m_cmakeWizard->buildDirectory();
m_descriptionLabel->setText(tr("Qt Creator needs to run cmake in the new build directory. " m_descriptionLabel->setText(tr("Qt Creator needs to run CMake in the new build directory. "
"Some projects require command line arguments to the " "Some projects require command line arguments to the "
"initial cmake call.")); "initial CMake call."));
} else if (m_mode == CMakeRunPage::WantToUpdate) { } else if (m_mode == CMakeRunPage::WantToUpdate) {
m_descriptionLabel->setText(tr("Refreshing cbp file in %1.").arg(m_buildDirectory)); m_descriptionLabel->setText(tr("Refreshing cbp file in %1.").arg(m_buildDirectory));
} }
@@ -466,7 +466,7 @@ void CMakeRunPage::runCMake()
} else { } else {
m_runCMake->setEnabled(true); m_runCMake->setEnabled(true);
m_argumentsLineEdit->setEnabled(true); m_argumentsLineEdit->setEnabled(true);
m_output->appendPlainText(tr("No valid cmake executable specified.")); m_output->appendPlainText(tr("No valid CMake executable specified."));
} }
} }

View File

@@ -345,7 +345,7 @@ CMakeRunConfigurationWidget::CMakeRunConfigurationWidget(CMakeRunConfiguration *
boxlayout->addWidget(m_workingDirectoryEdit); boxlayout->addWidget(m_workingDirectoryEdit);
boxlayout->addWidget(resetButton); boxlayout->addWidget(resetButton);
fl->addRow(tr("Working Directory:"), boxlayout); fl->addRow(tr("Working directory:"), boxlayout);
QWidget *debuggerLabelWidget = new QWidget(this); QWidget *debuggerLabelWidget = new QWidget(this);
QVBoxLayout *debuggerLabelLayout = new QVBoxLayout(debuggerLabelWidget); QVBoxLayout *debuggerLabelLayout = new QVBoxLayout(debuggerLabelWidget);

View File

@@ -38,7 +38,7 @@
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="coreLabel"> <widget class="QLabel" name="coreLabel">
<property name="text"> <property name="text">
<string>Core File:</string> <string>Core file:</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@@ -173,8 +173,8 @@ BuildConfiguration *GenericBuildConfigurationFactory::create(ProjectExplorer::Ta
// wizards will show up, that incorporate choosing the name // wizards will show up, that incorporate choosing the name
bool ok; bool ok;
QString buildConfigurationName = QInputDialog::getText(0, QString buildConfigurationName = QInputDialog::getText(0,
tr("New configuration"), tr("New Configuration"),
tr("New Configuration Name:"), tr("New configuration name:"),
QLineEdit::Normal, QLineEdit::Normal,
QString(), QString(),
&ok); &ok);

View File

@@ -359,7 +359,7 @@ void BuildSettingsWidget::cloneConfiguration(BuildConfiguration *sourceConfigura
return; return;
//: Title of a the cloned BuildConfiguration window, text of the window //: Title of a the cloned BuildConfiguration window, text of the window
QString newDisplayName(QInputDialog::getText(this, tr("Clone configuration"), tr("New Configuration Name:"))); QString newDisplayName(QInputDialog::getText(this, tr("Clone Configuration"), tr("New configuration name:")));
if (newDisplayName.isEmpty()) if (newDisplayName.isEmpty())
return; return;

View File

@@ -98,7 +98,7 @@ CustomExecutableConfigurationWidget::CustomExecutableConfigurationWidget(CustomE
m_workingDirectory = new CustomDirectoryPathChooser(this); m_workingDirectory = new CustomDirectoryPathChooser(this);
m_workingDirectory->setExpectedKind(Utils::PathChooser::Directory); m_workingDirectory->setExpectedKind(Utils::PathChooser::Directory);
layout->addRow(tr("Working Directory:"), m_workingDirectory); layout->addRow(tr("Working directory:"), m_workingDirectory);
m_useTerminalCheck = new QCheckBox(tr("Run in &Terminal"), this); m_useTerminalCheck = new QCheckBox(tr("Run in &Terminal"), this);
layout->addRow(QString(), m_useTerminalCheck); layout->addRow(QString(), m_useTerminalCheck);

View File

@@ -700,8 +700,8 @@ BuildConfiguration *Qt4BuildConfigurationFactory::create(ProjectExplorer::Target
bool ok; bool ok;
QString buildConfigurationName = QInputDialog::getText(0, QString buildConfigurationName = QInputDialog::getText(0,
tr("New configuration"), tr("New Configuration"),
tr("New Configuration Name:"), tr("New configuration name:"),
QLineEdit::Normal, QLineEdit::Normal,
version->displayName(), version->displayName(),
&ok); &ok);

View File

@@ -692,8 +692,8 @@ void BookmarkManager::removeBookmarkItem(QTreeView *treeView,
QString data = index.data(Qt::UserRole + 10).toString(); QString data = index.data(Qt::UserRole + 10).toString();
if (data == QLatin1String("Folder") && item->rowCount() > 0) { if (data == QLatin1String("Folder") && item->rowCount() > 0) {
int value = QMessageBox::question(treeView, tr("Remove"), int value = QMessageBox::question(treeView, tr("Remove"),
tr("You are going to delete a Folder which will also<br>" tr("Deleting a folder also removes its content.<br>"
"remove its content. Are you sure you would like to continue?"), "Do you want to continue?"),
QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel); QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel);
if (value == QMessageBox::Cancel) if (value == QMessageBox::Cancel)