forked from qt-creator/qt-creator
Translation fixes in the ClearCase plugin.
- Add translator's comments. - Capitalize Dialog titles. - Replace Qt Designer's generated rich text (hardcoded font) by simple HTML. - Remove exclamation marks (do not shout at users). Change-Id: I01623a336dfd7bdf24f7d5c0d3a2ed48454d8205 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
c5745c6e78
commit
cb87ce786b
@@ -91,7 +91,7 @@
|
||||
<item>
|
||||
<widget class="QCheckBox" name="hijackedCheckBox">
|
||||
<property name="text">
|
||||
<string>Use &Hijacked file</string>
|
||||
<string extracomment="Hijack: Unset read-only flag without check-out. This is used for local changes which the user does not want to commit.">Use &Hijacked file</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
|
@@ -710,7 +710,7 @@ void ClearCasePlugin::undoHijackCurrent()
|
||||
Ui::UndoCheckOut unhijackUi;
|
||||
QDialog unhijackDlg;
|
||||
unhijackUi.setupUi(&unhijackDlg);
|
||||
unhijackDlg.setWindowTitle(tr("Undo hijack file"));
|
||||
unhijackDlg.setWindowTitle(tr("Undo Hijack File"));
|
||||
unhijackUi.lblMessage->setText(tr("Do you want to undo hijack of '%1'?")
|
||||
.arg(QDir::toNativeSeparators(fileName)));
|
||||
if (unhijackDlg.exec() != QDialog::Accepted)
|
||||
@@ -1185,7 +1185,7 @@ ClearCaseResponse
|
||||
ClearCaseResponse response;
|
||||
if (executable.isEmpty()) {
|
||||
response.error = true;
|
||||
response.message = tr("No ClearCase executable specified!");
|
||||
response.message = tr("No ClearCase executable specified.");
|
||||
return response;
|
||||
}
|
||||
|
||||
@@ -1269,7 +1269,7 @@ bool ClearCasePlugin::vcsOpen(const QString &workingDir, const QString &fileName
|
||||
(fi.isWritable() || s_statusMap[relFile].status == FileStatus::Unknown))
|
||||
QtConcurrent::run(&sync, topLevel, QStringList(relFile)).waitForFinished();
|
||||
if (s_statusMap[relFile].status == FileStatus::CheckedOut) {
|
||||
QMessageBox::information(0, tr("ClearCase Checkout"), tr("File is already checked out!"));
|
||||
QMessageBox::information(0, tr("ClearCase Checkout"), tr("File is already checked out."));
|
||||
return true;
|
||||
}
|
||||
bool isHijacked = (s_statusMap[relFile].status & FileStatus::Hijacked);
|
||||
@@ -1492,7 +1492,7 @@ bool ClearCasePlugin::vcsAdd(const QString &workingDir, const QString &fileName)
|
||||
bool ClearCasePlugin::vcsDelete(const QString &workingDir, const QString &fileName)
|
||||
{
|
||||
const QString title(tr("ClearCase Remove Element"));
|
||||
if (QMessageBox::warning(0, title, tr("This operation is irreversible! Are you sure?"),
|
||||
if (QMessageBox::warning(0, title, tr("This operation is irreversible. Are you sure?"),
|
||||
QMessageBox::Yes | QMessageBox::No) == QMessageBox::No)
|
||||
return true;
|
||||
|
||||
|
@@ -161,7 +161,7 @@
|
||||
<item row="9" column="0">
|
||||
<widget class="QLabel" name="indexOnlyVOBsLabel">
|
||||
<property name="text">
|
||||
<string>&Index only VOBs:</string>
|
||||
<string extracomment="VOB: Versioned Object Base">&Index only VOBs:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>indexOnlyVOBsEdit</cstring>
|
||||
|
@@ -63,7 +63,7 @@
|
||||
</palette>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>The file was changed!</string>
|
||||
<string>The file was changed.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@@ -45,6 +45,9 @@ VersionSelector::VersionSelector(const QString &fileName, const QString &message
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->headerLabel->setText(ui->headerLabel->text().arg(fileName));
|
||||
ui->loadedText->setHtml(tr("<html><head/><body><p><b>NOTE: You will not be able to check in "
|
||||
"this file without merging the changes (not supported by the "
|
||||
"plugin)</b></p></body></html>"));
|
||||
m_stream = new QTextStream(message.toLocal8Bit(), QIODevice::ReadOnly | QIODevice::Text);
|
||||
QString line;
|
||||
while (!m_stream->atEnd() && !line.contains(QLatin1String("1) Loaded version")))
|
||||
|
@@ -75,15 +75,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="2">
|
||||
<widget class="QTextEdit" name="loadedText">
|
||||
<property name="html">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt; font-weight:600;">NOTE: You will not be able to check in this file without merging the changes (not supported by the plugin)</span></p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QTextEdit" name="loadedText"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@@ -113,7 +105,7 @@ p, li { white-space: pre-wrap; }
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="updatedCreatedOnHeaderLabel">
|
||||
<property name="text">
|
||||
<string>Created On:</string>
|
||||
<string extracomment="Date">Created On:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Reference in New Issue
Block a user