diff --git a/src/Editor/WorldEditor/WEditorProperties.cpp b/src/Editor/WorldEditor/WEditorProperties.cpp
index b67a9221..8c0c01c7 100644
--- a/src/Editor/WorldEditor/WEditorProperties.cpp
+++ b/src/Editor/WorldEditor/WEditorProperties.cpp
@@ -6,21 +6,21 @@ WEditorProperties::WEditorProperties(QWidget *pParent)
: QWidget(pParent)
{
mpInstanceInfoLabel = new QLabel;
- mpInstanceInfoLabel->setText("[No selection]");
+ mpInstanceInfoLabel->setText(tr("[No selection]"));
mpInstanceInfoLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
mpInstanceInfoLayout = new QHBoxLayout;
mpInstanceInfoLayout->addWidget(mpInstanceInfoLabel);
mpActiveCheckBox = new QCheckBox;
- mpActiveCheckBox->setToolTip("Active");
+ mpActiveCheckBox->setToolTip(tr("Active"));
mpInstanceNameLineEdit = new QLineEdit;
- mpInstanceNameLineEdit->setToolTip("Instance Name");
+ mpInstanceNameLineEdit->setToolTip(tr("Instance Name"));
mpNameLayout = new QHBoxLayout;
mpNameLayout->addWidget(mpActiveCheckBox);
mpNameLayout->addWidget(mpInstanceNameLineEdit);
mpLayersLabel = new QLabel;
- mpLayersLabel->setText("Layer:");
+ mpLayersLabel->setText(tr("Layer:"));
mpLayersLabel->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
mpLayersComboBox = new QComboBox;
mpLayersComboBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
@@ -109,12 +109,12 @@ void WEditorProperties::OnSelectionModified()
if (pSelection->IsEmpty())
{
- mpInstanceInfoLabel->setText("[No selection]");
+ mpInstanceInfoLabel->setText(tr("[No selection]"));
mpInstanceNameLineEdit->clear();
}
else if (mpDisplayNode)
{
- mpInstanceInfoLabel->setText("[Light]");
+ mpInstanceInfoLabel->setText(tr("[Light]"));
mpInstanceNameLineEdit->setText(TO_QSTRING(mpDisplayNode->Name()));
}
else
@@ -131,13 +131,13 @@ void WEditorProperties::OnSelectionModified()
CScriptNode *pScript = static_cast(mpDisplayNode);
CInstanceID InstanceID = pScript->Instance()->InstanceID();
TString ObjectType = pScript->Template()->Name();
- mpInstanceInfoLabel->setText(QString("[%1] [%2]").
- arg( TO_QSTRING(ObjectType) ).
- arg( TO_QSTRING(TString::HexString(InstanceID, 8, false)) ));
- mpInstanceInfoLabel->setToolTip(QString("[Layer: %1] [Area: %2] [ID: %3]").
- arg( InstanceID.Layer() ).
- arg( InstanceID.Area() ).
- arg( TO_QSTRING(TString::HexString(InstanceID.Id(), 4, false)) ));
+ mpInstanceInfoLabel->setText(tr("[%1] [%2]")
+ .arg(TO_QSTRING(ObjectType))
+ .arg(TO_QSTRING(TString::HexString(InstanceID, 8, false))));
+ mpInstanceInfoLabel->setToolTip(tr("[Layer: %1] [Area: %2] [ID: %3]")
+ .arg(InstanceID.Layer())
+ .arg(InstanceID.Area())
+ .arg(TO_QSTRING(TString::HexString(InstanceID.Id(), 4, false))));
UpdatePropertyValues();
}