BlackBerry: fix UI text and messages

Fix punctuation and capitalization in UI text and
messages.

Change-Id: Ie3beaeda820090ecec94832b773c2f29a7bd0d95
Reviewed-by: Mehdi Fekari <mfekari@blackberry.com>
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
This commit is contained in:
Leena Miettinen
2014-03-07 16:23:25 +01:00
parent 944d0bfa8e
commit fc1e1d1728
13 changed files with 37 additions and 37 deletions

View File

@@ -17,14 +17,14 @@
<item> <item>
<widget class="QCheckBox" name="checkRuntime"> <widget class="QCheckBox" name="checkRuntime">
<property name="text"> <property name="text">
<string>Check Device Runtime</string> <string>Check device runtime</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="checkDebugToken"> <widget class="QCheckBox" name="checkDebugToken">
<property name="text"> <property name="text">
<string>Check Debug Token</string> <string>Check debug token</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@@ -95,7 +95,7 @@ bool BlackBerryCreatePackageStep::init()
const QString packageCmd = target()->activeBuildConfiguration()->environment().searchInPath(QLatin1String(PACKAGER_CMD)); const QString packageCmd = target()->activeBuildConfiguration()->environment().searchInPath(QLatin1String(PACKAGER_CMD));
if (packageCmd.isEmpty()) { if (packageCmd.isEmpty()) {
raiseError(tr("Could not find packager command '%1' in the build environment") raiseError(tr("Could not find packager command '%1' in the build environment.")
.arg(QLatin1String(PACKAGER_CMD))); .arg(QLatin1String(PACKAGER_CMD)));
return false; return false;
} }
@@ -105,18 +105,18 @@ bool BlackBerryCreatePackageStep::init()
QList<BarPackageDeployInformation> packagesToDeploy = deployConfig->deploymentInfo()->enabledPackages(); QList<BarPackageDeployInformation> packagesToDeploy = deployConfig->deploymentInfo()->enabledPackages();
if (packagesToDeploy.isEmpty()) { if (packagesToDeploy.isEmpty()) {
raiseError(tr("No packages enabled for deployment")); raiseError(tr("No packages enabled for deployment."));
return false; return false;
} }
foreach (const BarPackageDeployInformation &info, packagesToDeploy) { foreach (const BarPackageDeployInformation &info, packagesToDeploy) {
if (info.appDescriptorPath().isEmpty()) { if (info.appDescriptorPath().isEmpty()) {
raiseError(tr("Application descriptor file not specified, please check deployment settings")); raiseError(tr("BAR application descriptor file not specified. Check deployment settings."));
return false; return false;
} }
if (info.packagePath().isEmpty()) { if (info.packagePath().isEmpty()) {
raiseError(tr("No package specified, please check deployment settings")); raiseError(tr("No package specified. Check deployment settings."));
return false; return false;
} }
@@ -124,7 +124,7 @@ bool BlackBerryCreatePackageStep::init()
QDir dir(buildDir); QDir dir(buildDir);
if (!dir.exists()) { if (!dir.exists()) {
if (!dir.mkpath(buildDir)) { if (!dir.mkpath(buildDir)) {
raiseError(tr("Could not create build directory '%1'").arg(buildDir)); raiseError(tr("Could not create build directory '%1'.").arg(buildDir));
return false; return false;
} }
} }
@@ -146,7 +146,7 @@ bool BlackBerryCreatePackageStep::init()
dlg.setCskPassword(m_cskPassword); dlg.setCskPassword(m_cskPassword);
dlg.setStorePassword(m_keystorePassword); dlg.setStorePassword(m_keystorePassword);
if (dlg.exec() == QDialog::Rejected) { if (dlg.exec() == QDialog::Rejected) {
raiseError(tr("Missing passwords for signing packages")); raiseError(tr("Missing passwords for signing packages."));
return false; return false;
} }
@@ -170,7 +170,7 @@ bool BlackBerryCreatePackageStep::init()
(QtSupport::QtKitInformation::qtVersion(target()->kit())); (QtSupport::QtKitInformation::qtVersion(target()->kit()));
if (!qtVersion) { if (!qtVersion) {
raiseError(tr("Qt version configured for BlackBerry kit " raiseError(tr("Qt version configured for BlackBerry kit "
"is not a BlackBerry Qt version")); "is not a BlackBerry Qt version."));
return false; return false;
} }
@@ -317,14 +317,14 @@ bool BlackBerryCreatePackageStep::prepareAppDescriptorFile(const QString &appDes
{ {
BlackBerryQtVersion *qtVersion = dynamic_cast<BlackBerryQtVersion *>(QtSupport::QtKitInformation::qtVersion(target()->kit())); BlackBerryQtVersion *qtVersion = dynamic_cast<BlackBerryQtVersion *>(QtSupport::QtKitInformation::qtVersion(target()->kit()));
if (!qtVersion) { if (!qtVersion) {
raiseError(tr("Error preparing application descriptor file")); raiseError(tr("Error preparing BAR application descriptor file."));
return false; return false;
} }
BarDescriptorDocument doc; BarDescriptorDocument doc;
QString errorString; QString errorString;
if (!doc.open(&errorString, appDescriptorPath)) { if (!doc.open(&errorString, appDescriptorPath)) {
raiseError(tr("Error opening application descriptor file '%1' - %2") raiseError(tr("Error opening BAR application descriptor file '%1' - %2")
.arg(QDir::toNativeSeparators(appDescriptorPath)) .arg(QDir::toNativeSeparators(appDescriptorPath))
.arg(errorString)); .arg(errorString));
return false; return false;
@@ -396,7 +396,7 @@ bool BlackBerryCreatePackageStep::prepareAppDescriptorFile(const QString &appDes
doc.setFilePath(preparedFilePath); doc.setFilePath(preparedFilePath);
if (!doc.save(&errorString)) { if (!doc.save(&errorString)) {
raiseError(tr("Error saving prepared application descriptor file '%1' - %2") raiseError(tr("Error saving prepared BAR application descriptor file '%1' - %2")
.arg(QDir::toNativeSeparators(preparedFilePath)) .arg(QDir::toNativeSeparators(preparedFilePath))
.arg(errorString)); .arg(errorString));
return false; return false;

View File

@@ -58,9 +58,9 @@ BlackBerryCreatePackageStepConfigWidget::BlackBerryCreatePackageStepConfigWidget
m_qtLibraryExplanations[1] = tr("Include Qt libraries in the package. " m_qtLibraryExplanations[1] = tr("Include Qt libraries in the package. "
"This will increase the package size."); "This will increase the package size.");
m_qtLibraryExplanations[2] = tr("Use deployed Qt libraries on the device."); m_qtLibraryExplanations[2] = tr("Use deployed Qt libraries on the device.");
m_ui->qtLibrary->addItem(tr("Use pre-installed Qt"), BlackBerryCreatePackageStep::PreInstalledQt); m_ui->qtLibrary->addItem(tr("Use Pre-installed Qt"), BlackBerryCreatePackageStep::PreInstalledQt);
m_ui->qtLibrary->addItem(tr("Bundle Qt in package"), BlackBerryCreatePackageStep::BundleQt); m_ui->qtLibrary->addItem(tr("Bundle Qt in Package"), BlackBerryCreatePackageStep::BundleQt);
m_ui->qtLibrary->addItem(tr("Use deployed Qt"), BlackBerryCreatePackageStep::DeployedQt); m_ui->qtLibrary->addItem(tr("Use Deployed Qt"), BlackBerryCreatePackageStep::DeployedQt);
connect(m_ui->signPackages, SIGNAL(toggled(bool)), this, SLOT(setPackageMode(bool))); connect(m_ui->signPackages, SIGNAL(toggled(bool)), this, SLOT(setPackageMode(bool)));
connect(m_ui->cskPassword, SIGNAL(textChanged(QString)), m_step, SLOT(setCskPassword(QString))); connect(m_ui->cskPassword, SIGNAL(textChanged(QString)), m_step, SLOT(setCskPassword(QString)));

View File

@@ -178,7 +178,7 @@
<item row="0" column="3"> <item row="0" column="3">
<widget class="QPushButton" name="deployNowButton"> <widget class="QPushButton" name="deployNowButton">
<property name="text"> <property name="text">
<string>Deploy now</string> <string>Deploy Now</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@@ -19,7 +19,7 @@
<item> <item>
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="text"> <property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Debug Token: &lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Debug token: &lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@@ -111,10 +111,10 @@ void BlackBerryDeployConfiguration::setupBarDescriptor()
QDialogButtonBox::StandardButton button = Utils::CheckableMessageBox::question(Core::ICore::mainWindow(), QDialogButtonBox::StandardButton button = Utils::CheckableMessageBox::question(Core::ICore::mainWindow(),
tr("Setup Application Descriptor File"), tr("Setup Application Descriptor File"),
tr("You need to set up a bar descriptor file to enable " tr("You need to set up a BAR descriptor file to enable "
"packaging.\nDo you want Qt Creator to generate it for your project (%1)?") "packaging.\nDo you want Qt Creator to generate it for your project (%1)?")
.arg(target()->project()->projectFilePath()), .arg(target()->project()->projectFilePath()),
tr("Don't ask again for this project"), &m_appBarDesciptorSetup); tr("Don not ask again for this project"), &m_appBarDesciptorSetup);
if (button == QDialogButtonBox::No) if (button == QDialogButtonBox::No)
return; return;
@@ -132,7 +132,7 @@ void BlackBerryDeployConfiguration::setupBarDescriptor()
if (!reader.fetch(barDescriptorTemplate)) { if (!reader.fetch(barDescriptorTemplate)) {
QMessageBox::warning(Core::ICore::mainWindow(), QMessageBox::warning(Core::ICore::mainWindow(),
tr("Cannot Set up Application Descriptor File"), tr("Cannot Set up Application Descriptor File"),
tr("Reading the bar descriptor template failed."), tr("Reading the BAR descriptor template failed."),
QMessageBox::Ok); QMessageBox::Ok);
return; return;
} }
@@ -152,7 +152,7 @@ void BlackBerryDeployConfiguration::setupBarDescriptor()
if (!writer.finalize()) { if (!writer.finalize()) {
QMessageBox::warning(Core::ICore::mainWindow(), QMessageBox::warning(Core::ICore::mainWindow(),
tr("Cannot Set up Application Descriptor File"), tr("Cannot Set up Application Descriptor File"),
tr("Writing the bar descriptor file failed."), tr("Writing the BAR descriptor file failed."),
QMessageBox::Ok); QMessageBox::Ok);
return; return;
} }

View File

@@ -195,7 +195,7 @@ void BlackBerryDeployQtLibrariesDialog::handleRemoteProcessCompleted()
// Directory exists // Directory exists
if (m_processRunner->processExitCode() == 0) { if (m_processRunner->processExitCode() == 0) {
int answer = QMessageBox::question(this, windowTitle(), int answer = QMessageBox::question(this, windowTitle(),
tr("The remote directory '%1' already exist. " tr("The remote directory '%1' already exists. "
"Deploying to that directory will remove any files " "Deploying to that directory will remove any files "
"already present.\n\n" "already present.\n\n"
"Are you sure you want to continue?") "Are you sure you want to continue?")

View File

@@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Deploy Qt to BlackBerry device</string> <string>Deploy Qt to BlackBerry Device</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>

View File

@@ -132,7 +132,7 @@ void BlackBerryDeviceConfigurationWidget::debugTokenEditingFinished()
void BlackBerryDeviceConfigurationWidget::importDebugToken() void BlackBerryDeviceConfigurationWidget::importDebugToken()
{ {
const QString debugToken = QFileDialog::getOpenFileName(this, tr("Select Debug Token"), const QString debugToken = QFileDialog::getOpenFileName(this, tr("Select Debug Token"),
QString(), tr("Bar file (*.bar)")); QString(), tr("BAR file (*.bar)"));
if (debugToken.isEmpty()) if (debugToken.isEmpty())
return; return;

View File

@@ -265,7 +265,7 @@ void BlackBerryDeviceConfigurationWizardQueryPage::processQueryFinished(int stat
checkAndGenerateSSHKeys(); checkAndGenerateSSHKeys();
else else
setState(Done, tr("Cannot connect to the device. " setState(Done, tr("Cannot connect to the device. "
"Check if the device is in development mode and has matching host name and password.")); "Check that the device is in development mode and has matching host name and password."));
} }
void BlackBerryDeviceConfigurationWizardQueryPage::checkAndGenerateSSHKeys() void BlackBerryDeviceConfigurationWizardQueryPage::checkAndGenerateSSHKeys()
@@ -415,7 +415,7 @@ void BlackBerryDeviceConfigurationWizardConfigPage::generateDebugToken()
void BlackBerryDeviceConfigurationWizardConfigPage::importDebugToken() void BlackBerryDeviceConfigurationWizardConfigPage::importDebugToken()
{ {
const QString debugToken = QFileDialog::getOpenFileName(this, tr("Select Debug Token"), const QString debugToken = QFileDialog::getOpenFileName(this, tr("Select Debug Token"),
QString(), tr("Bar file (*.bar)")); QString(), tr("BAR file (*.bar)"));
if (debugToken.isEmpty()) if (debugToken.isEmpty())
return; return;

View File

@@ -19,7 +19,7 @@
<item> <item>
<widget class="QRadioButton" name="apiLevelButton"> <widget class="QRadioButton" name="apiLevelButton">
<property name="text"> <property name="text">
<string>Install API Level</string> <string>Install API level</string>
</property> </property>
</widget> </widget>
</item> </item>
@@ -46,14 +46,14 @@
<item> <item>
<widget class="QRadioButton" name="installButton"> <widget class="QRadioButton" name="installButton">
<property name="text"> <property name="text">
<string>Install New Target</string> <string>Install new target</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QRadioButton" name="addButton"> <widget class="QRadioButton" name="addButton">
<property name="text"> <property name="text">
<string>Add Existing Target</string> <string>Add existing target</string>
</property> </property>
</widget> </widget>
</item> </item>
@@ -64,14 +64,14 @@
<item> <item>
<widget class="QRadioButton" name="simulatorButton"> <widget class="QRadioButton" name="simulatorButton">
<property name="text"> <property name="text">
<string>Install Simulator</string> <string>Install simulator</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QRadioButton" name="runtimeButton"> <widget class="QRadioButton" name="runtimeButton">
<property name="text"> <property name="text">
<string>Install Runtime</string> <string>Install runtime</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@@ -307,7 +307,7 @@ void BlackBerryNDKSettingsWidget::updateUi(QTreeWidgetItem *item)
m_ui->informationBox->setVisible(true); m_ui->informationBox->setVisible(true);
m_ui->informationBox->setTitle(isRuntimeItem ? m_ui->informationBox->setTitle(isRuntimeItem ?
tr("Runtime Information") : tr("API Level Information")); tr("Runtime Information") : tr("API Level Information"));
m_ui->pathLabel->setText(isRuntimeItem ? tr("Path:") : tr("Environment File:")); m_ui->pathLabel->setText(isRuntimeItem ? tr("Path:") : tr("Environment file:"));
m_ui->hostLabel->setVisible(!isRuntimeItem); m_ui->hostLabel->setVisible(!isRuntimeItem);
m_ui->host->setVisible(!isRuntimeItem); m_ui->host->setVisible(!isRuntimeItem);
m_ui->targetLabel->setVisible(!isRuntimeItem); m_ui->targetLabel->setVisible(!isRuntimeItem);
@@ -411,7 +411,7 @@ void BlackBerryNDKSettingsWidget::populateDefaultConfigurationCombo()
QList<BlackBerryApiLevelConfiguration*> configurations = m_bbConfigManager.apiLevels(); QList<BlackBerryApiLevelConfiguration*> configurations = m_bbConfigManager.apiLevels();
m_ui->apiLevelCombo->addItem(tr("Newest version"), m_ui->apiLevelCombo->addItem(tr("Newest Version"),
QVariant::fromValue(static_cast<void*>(0))); QVariant::fromValue(static_cast<void*>(0)));
if (configurations.isEmpty()) if (configurations.isEmpty())

View File

@@ -123,13 +123,13 @@ bool QNXPlugin::initialize(const QStringList &arguments, QString *errorString)
Core::MimeGlobPattern barDescriptorGlobPattern(QLatin1String("*.xml"), Core::MimeGlobPattern::MinWeight + 1); Core::MimeGlobPattern barDescriptorGlobPattern(QLatin1String("*.xml"), Core::MimeGlobPattern::MinWeight + 1);
Core::MimeType barDescriptorMimeType; Core::MimeType barDescriptorMimeType;
barDescriptorMimeType.setType(QLatin1String(Constants::QNX_BAR_DESCRIPTOR_MIME_TYPE)); barDescriptorMimeType.setType(QLatin1String(Constants::QNX_BAR_DESCRIPTOR_MIME_TYPE));
barDescriptorMimeType.setComment(tr("Bar descriptor file (BlackBerry)")); barDescriptorMimeType.setComment(tr("BAR descriptor file (BlackBerry)"));
barDescriptorMimeType.setGlobPatterns(QList<Core::MimeGlobPattern>() << barDescriptorGlobPattern); barDescriptorMimeType.setGlobPatterns(QList<Core::MimeGlobPattern>() << barDescriptorGlobPattern);
barDescriptorMimeType.addMagicMatcher(QSharedPointer<Core::IMagicMatcher>(new BarDescriptorMagicMatcher)); barDescriptorMimeType.addMagicMatcher(QSharedPointer<Core::IMagicMatcher>(new BarDescriptorMagicMatcher));
barDescriptorMimeType.setSubClassesOf(QStringList() << QLatin1String("application/xml")); barDescriptorMimeType.setSubClassesOf(QStringList() << QLatin1String("application/xml"));
if (!Core::MimeDatabase::addMimeType(barDescriptorMimeType)) { if (!Core::MimeDatabase::addMimeType(barDescriptorMimeType)) {
*errorString = tr("Could not add mime-type for bar-descriptor.xml editor."); *errorString = tr("Could not add MIME type for bar-descriptor.xml editor.");
return false; return false;
} }
addAutoReleasedObject(new BarDescriptorEditorFactory); addAutoReleasedObject(new BarDescriptorEditorFactory);
@@ -142,13 +142,13 @@ bool QNXPlugin::initialize(const QStringList &arguments, QString *errorString)
void QNXPlugin::extensionsInitialized() void QNXPlugin::extensionsInitialized()
{ {
ProjectExplorer::TaskHub::addCategory(Constants::QNX_TASK_CATEGORY_BARDESCRIPTOR, ProjectExplorer::TaskHub::addCategory(Constants::QNX_TASK_CATEGORY_BARDESCRIPTOR,
tr("Bar Descriptor")); tr("BAR Descriptor"));
// Debug support // Debug support
QnxAttachDebugSupport *debugSupport = new QnxAttachDebugSupport(this); QnxAttachDebugSupport *debugSupport = new QnxAttachDebugSupport(this);
m_attachToQnxApplication = new QAction(this); m_attachToQnxApplication = new QAction(this);
m_attachToQnxApplication->setText(tr("Attach to Remote QNX Application...")); m_attachToQnxApplication->setText(tr("Attach to remote QNX application..."));
connect(m_attachToQnxApplication, SIGNAL(triggered()), debugSupport, SLOT(showProcessesDialog())); connect(m_attachToQnxApplication, SIGNAL(triggered()), debugSupport, SLOT(showProcessesDialog()));
const Core::Context globalcontext(Core::Constants::C_GLOBAL); const Core::Context globalcontext(Core::Constants::C_GLOBAL);