forked from qt-creator/qt-creator
SCXML editor: Fix UI text
... capitalization, punctualization, and grammar Change-Id: I15205b899387e8a91529c3a6b6a2e81cf4315a4a Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -98,7 +98,7 @@ void ColorThemes::updateColorThemeMenu()
|
||||
for (const QString &key: keys) {
|
||||
const QString actionText = key == Constants::C_COLOR_SCHEME_DEFAULT
|
||||
? tr("Factory Default") : key == Constants::C_COLOR_SCHEME_SCXMLDOCUMENT
|
||||
? tr("Colors from SCXML-document")
|
||||
? tr("Colors from SCXML Document")
|
||||
: key;
|
||||
QAction *action = m_menu->addAction(actionText, this, [this, key]() {
|
||||
selectColorTheme(key);
|
||||
|
@@ -33,7 +33,7 @@ IdWarningItem::IdWarningItem(QGraphicsItem *parent)
|
||||
{
|
||||
setSeverity(OutputPane::Warning::ErrorType);
|
||||
setTypeName(tr("State"));
|
||||
setDescription(tr("Each State has to be unique ID."));
|
||||
setDescription(tr("Each state must have a unique ID."));
|
||||
setReason(tr("Missing ID"));
|
||||
setX(-boundingRect().width());
|
||||
}
|
||||
|
@@ -35,8 +35,8 @@ InitialWarningItem::InitialWarningItem(InitialStateItem *parent)
|
||||
{
|
||||
setSeverity(OutputPane::Warning::ErrorType);
|
||||
setTypeName(tr("Initial"));
|
||||
setDescription(tr("It is possible to have max 1 initial-state in the same level."));
|
||||
setReason(tr("Too many initial states in the same level"));
|
||||
setDescription(tr("One level can contain only one initial state."));
|
||||
setReason(tr("Too many initial states at the same level"));
|
||||
}
|
||||
|
||||
void InitialWarningItem::updatePos()
|
||||
|
@@ -262,16 +262,16 @@ void ScxmlDocument::initErrorMessage(const QXmlStreamReader &xml, QIODevice *io)
|
||||
QString errorString;
|
||||
switch (xml.error()) {
|
||||
case QXmlStreamReader::Error::UnexpectedElementError:
|
||||
errorString = tr("Unexpected element");
|
||||
errorString = tr("Unexpected element.");
|
||||
break;
|
||||
case QXmlStreamReader::Error::NotWellFormedError:
|
||||
errorString = tr("Not well formed");
|
||||
errorString = tr("Not well formed.");
|
||||
break;
|
||||
case QXmlStreamReader::Error::PrematureEndOfDocumentError:
|
||||
errorString = tr("Premature end of document");
|
||||
errorString = tr("Premature end of document.");
|
||||
break;
|
||||
case QXmlStreamReader::Error::CustomError:
|
||||
errorString = tr("Custom error");
|
||||
errorString = tr("Custom error.");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@@ -299,7 +299,7 @@ bool ScxmlDocument::pasteData(const QByteArray &data, const QPointF &minPos, con
|
||||
|
||||
if (!m_currentTag) {
|
||||
m_hasError = true;
|
||||
m_lastError = tr("Current tag not selected");
|
||||
m_lastError = tr("Current tag is not selected.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -310,7 +310,7 @@ bool ScxmlDocument::pasteData(const QByteArray &data, const QPointF &minPos, con
|
||||
}
|
||||
|
||||
bool ok = true;
|
||||
m_undoStack->beginMacro(tr("Paste item(s)"));
|
||||
m_undoStack->beginMacro(tr("Paste items"));
|
||||
|
||||
QByteArray d(data);
|
||||
QBuffer buffer(&d);
|
||||
@@ -458,7 +458,7 @@ bool ScxmlDocument::save(const QString &fileName)
|
||||
}
|
||||
file.close();
|
||||
if (!ok)
|
||||
m_lastError = tr("Cannot save xml to the file %1.").arg(fileName);
|
||||
m_lastError = tr("Cannot save XML to the file %1.").arg(fileName);
|
||||
} else {
|
||||
ok = false;
|
||||
m_lastError = tr("Cannot open file %1.").arg(fileName);
|
||||
|
@@ -329,7 +329,7 @@ void StateItem::selectedMenuAction(const QAction *action)
|
||||
case TagUtils::SetAsInitial: {
|
||||
ScxmlTag *parentTag = tag->parentTag();
|
||||
if (parentTag) {
|
||||
document->undoStack()->beginMacro(tr("Change initial-state"));
|
||||
document->undoStack()->beginMacro(tr("Change initial state"));
|
||||
|
||||
ScxmlTag *initialTag = parentTag->child("initial");
|
||||
if (initialTag) {
|
||||
|
@@ -33,7 +33,7 @@ namespace Constants {
|
||||
const char INFO_READ_ONLY[] = "ScxmlEditor.ReadOnly";
|
||||
|
||||
const char C_SCXMLEDITOR[] = "Qt5.ScxmlEditor";
|
||||
const char C_SCXMLEDITOR_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("OpenWith::Editors", "Scxml Editor");
|
||||
const char C_SCXMLEDITOR_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("OpenWith::Editors", "SCXML Editor");
|
||||
|
||||
const char K_SCXML_EDITOR_ID[] = "ScxmlEditor.XmlEditor";
|
||||
const char C_SCXML_EDITOR[] = "Scxml Editor";
|
||||
|
Reference in New Issue
Block a user