More translatable UI strings (#1486)
This commit is contained in:
parent
d81b7f9139
commit
da5534a8f7
10 changed files with 29 additions and 29 deletions
|
@ -1018,8 +1018,8 @@ void BrushTool::updateTranslation() {
|
||||||
m_capStyle.setQStringName(tr("Cap"));
|
m_capStyle.setQStringName(tr("Cap"));
|
||||||
m_joinStyle.setQStringName(tr("Join"));
|
m_joinStyle.setQStringName(tr("Join"));
|
||||||
m_miterJoinLimit.setQStringName(tr("Miter:"));
|
m_miterJoinLimit.setQStringName(tr("Miter:"));
|
||||||
m_frameRange.setQStringName("Range:");
|
m_frameRange.setQStringName(tr("Range:"));
|
||||||
m_snap.setQStringName("Snap");
|
m_snap.setQStringName(tr("Snap"));
|
||||||
m_snapSensitivity.setQStringName("");
|
m_snapSensitivity.setQStringName("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -111,10 +111,10 @@ CleanupSettingsPane::CleanupSettingsPane(QWidget *parent)
|
||||||
// Autocenter
|
// Autocenter
|
||||||
m_autocenterBox->setCheckable(true);
|
m_autocenterBox->setCheckable(true);
|
||||||
QStringList pegbarHoles;
|
QStringList pegbarHoles;
|
||||||
pegbarHoles << "Bottom"
|
pegbarHoles << tr("Bottom")
|
||||||
<< "Top"
|
<< tr("Top")
|
||||||
<< "Left"
|
<< tr("Left")
|
||||||
<< "Right";
|
<< tr("Right");
|
||||||
m_pegHolesOm->addItems(pegbarHoles);
|
m_pegHolesOm->addItems(pegbarHoles);
|
||||||
std::vector<std::string> fdgNames;
|
std::vector<std::string> fdgNames;
|
||||||
CleanupParameters::getFdgNames(fdgNames);
|
CleanupParameters::getFdgNames(fdgNames);
|
||||||
|
|
|
@ -1095,7 +1095,7 @@ PencilTestPopup::PencilTestPopup()
|
||||||
m_saveOnCaptureCB->setChecked(true);
|
m_saveOnCaptureCB->setChecked(true);
|
||||||
|
|
||||||
imageFrame->setObjectName("CleanupSettingsFrame");
|
imageFrame->setObjectName("CleanupSettingsFrame");
|
||||||
m_colorTypeCombo->addItems({"Color", "Grayscale", "Black & White"});
|
m_colorTypeCombo->addItems({tr("Color"), tr("Grayscale"), tr("Black & White")});
|
||||||
m_colorTypeCombo->setCurrentIndex(0);
|
m_colorTypeCombo->setCurrentIndex(0);
|
||||||
m_upsideDownCB->setChecked(false);
|
m_upsideDownCB->setChecked(false);
|
||||||
|
|
||||||
|
@ -2473,4 +2473,4 @@ void OpenPopupCommandHandler<PencilTestPopup>::execute() {
|
||||||
m_popup->raise();
|
m_popup->raise();
|
||||||
m_popup->activateWindow();
|
m_popup->activateWindow();
|
||||||
if (CamCapOpenSaveInPopupOnLaunch != 0) m_popup->openSaveInFolderPopup();
|
if (CamCapOpenSaveInPopupOnLaunch != 0) m_popup->openSaveInFolderPopup();
|
||||||
}
|
}
|
||||||
|
|
|
@ -200,9 +200,9 @@ int SchematicScenePanel::getViewType() {
|
||||||
|
|
||||||
void SchematicScenePanel::showEvent(QShowEvent *e) {
|
void SchematicScenePanel::showEvent(QShowEvent *e) {
|
||||||
if (m_schematicViewer->isStageSchematicViewed())
|
if (m_schematicViewer->isStageSchematicViewed())
|
||||||
setWindowTitle("Stage Schematic");
|
setWindowTitle(QObject::tr("Stage Schematic"));
|
||||||
else
|
else
|
||||||
setWindowTitle("Fx Schematic");
|
setWindowTitle(QObject::tr("Fx Schematic"));
|
||||||
|
|
||||||
TApp *app = TApp::instance();
|
TApp *app = TApp::instance();
|
||||||
connect(m_schematicViewer, SIGNAL(showPreview(TFxP)), this,
|
connect(m_schematicViewer, SIGNAL(showPreview(TFxP)), this,
|
||||||
|
|
|
@ -90,9 +90,9 @@ void TCleanupStyle::setColorParamValue(int index, const TPixel32 &color) {
|
||||||
QString TCleanupStyle::getParamNames(int index) const {
|
QString TCleanupStyle::getParamNames(int index) const {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
return "Brightness";
|
return QObject::tr("Brightness");
|
||||||
case 1:
|
case 1:
|
||||||
return "Contrast";
|
return QObject::tr("Contrast");
|
||||||
default:
|
default:
|
||||||
return QString("");
|
return QString("");
|
||||||
}
|
}
|
||||||
|
@ -225,8 +225,8 @@ int TColorCleanupStyle::getTagId() const { return 2001; }
|
||||||
//-------------------------------------------------------------------
|
//-------------------------------------------------------------------
|
||||||
|
|
||||||
QString TColorCleanupStyle::getParamNames(int index) const {
|
QString TColorCleanupStyle::getParamNames(int index) const {
|
||||||
if (index == 2) "HRange";
|
if (index == 2) QObject::tr("HRange");
|
||||||
if (index == 3) "Line Width";
|
if (index == 3) QObject::tr("Line Width");
|
||||||
return TCleanupStyle::getParamNames(index);
|
return TCleanupStyle::getParamNames(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -309,9 +309,9 @@ int TBlackCleanupStyle::getTagId() const { return 2002; }
|
||||||
QString TBlackCleanupStyle::getParamNames(int index) const {
|
QString TBlackCleanupStyle::getParamNames(int index) const {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 2:
|
case 2:
|
||||||
return "ColorThres";
|
return QObject::tr("ColorThres");
|
||||||
case 3:
|
case 3:
|
||||||
return "WhiteThres";
|
return QObject::tr("WhiteThres");
|
||||||
default:
|
default:
|
||||||
return TCleanupStyle::getParamNames(index);
|
return TCleanupStyle::getParamNames(index);
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,10 +54,10 @@ CleanupCameraSettingsWidget::CleanupCameraSettingsWidget() {
|
||||||
offsetLay->setVerticalSpacing(3);
|
offsetLay->setVerticalSpacing(3);
|
||||||
offsetLay->setMargin(3);
|
offsetLay->setMargin(3);
|
||||||
{
|
{
|
||||||
offsetLay->addWidget(new QLabel("N/S"), 0, 0);
|
offsetLay->addWidget(new QLabel(tr("N/S")), 0, 0);
|
||||||
offsetLay->addWidget(m_offsY, 0, 1);
|
offsetLay->addWidget(m_offsY, 0, 1);
|
||||||
offsetLay->addWidget(m_offsy_lock, 0, 2);
|
offsetLay->addWidget(m_offsy_lock, 0, 2);
|
||||||
offsetLay->addWidget(new QLabel("E/W"), 1, 0);
|
offsetLay->addWidget(new QLabel(tr("E/W")), 1, 0);
|
||||||
offsetLay->addWidget(m_offsX, 1, 1);
|
offsetLay->addWidget(m_offsX, 1, 1);
|
||||||
offsetLay->addWidget(m_offsx_lock, 1, 2);
|
offsetLay->addWidget(m_offsx_lock, 1, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -993,13 +993,13 @@ FunctionSegmentViewer::FunctionSegmentViewer(QWidget *parent,
|
||||||
upperLay->setSpacing(3);
|
upperLay->setSpacing(3);
|
||||||
upperLay->setMargin(0);
|
upperLay->setMargin(0);
|
||||||
{
|
{
|
||||||
upperLay->addWidget(new QLabel("From", this), 0);
|
upperLay->addWidget(new QLabel(tr("From"), this), 0);
|
||||||
upperLay->addWidget(m_fromFld, 1);
|
upperLay->addWidget(m_fromFld, 1);
|
||||||
upperLay->addSpacing(3);
|
upperLay->addSpacing(3);
|
||||||
upperLay->addWidget(new QLabel("To", this), 0);
|
upperLay->addWidget(new QLabel(tr("To"), this), 0);
|
||||||
upperLay->addWidget(m_toFld, 1);
|
upperLay->addWidget(m_toFld, 1);
|
||||||
upperLay->addSpacing(5);
|
upperLay->addSpacing(5);
|
||||||
upperLay->addWidget(new QLabel("Step", this), 0);
|
upperLay->addWidget(new QLabel(tr("Step"), this), 0);
|
||||||
upperLay->addWidget(m_stepFld, 1);
|
upperLay->addWidget(m_stepFld, 1);
|
||||||
}
|
}
|
||||||
topbarLayout->addLayout(upperLay, 0);
|
topbarLayout->addLayout(upperLay, 0);
|
||||||
|
|
|
@ -1094,7 +1094,7 @@ void FxXSheetPainter::paint(QPainter *painter,
|
||||||
// Draw the name
|
// Draw the name
|
||||||
QRectF rect(18, 0, 54, 18);
|
QRectF rect(18, 0, 54, 18);
|
||||||
painter->drawText(rect, Qt::AlignLeft | Qt::AlignVCenter,
|
painter->drawText(rect, Qt::AlignLeft | Qt::AlignVCenter,
|
||||||
QString("XSheet"));
|
QString(tr("XSheet")));
|
||||||
}
|
}
|
||||||
// small scaled
|
// small scaled
|
||||||
else {
|
else {
|
||||||
|
@ -1207,7 +1207,7 @@ void FxOutputPainter::paint(QPainter *painter,
|
||||||
// Draw the name
|
// Draw the name
|
||||||
QRectF rect(18, 0, 72, 18);
|
QRectF rect(18, 0, 72, 18);
|
||||||
painter->drawText(rect, Qt::AlignLeft | Qt::AlignVCenter,
|
painter->drawText(rect, Qt::AlignLeft | Qt::AlignVCenter,
|
||||||
QString("Output"));
|
QString(tr("Output")));
|
||||||
}
|
}
|
||||||
// small view
|
// small view
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -678,7 +678,7 @@ void TablePainter::paint(QPainter *painter,
|
||||||
|
|
||||||
// Draw the name
|
// Draw the name
|
||||||
QRectF rect(30, 0, 42, 18);
|
QRectF rect(30, 0, 42, 18);
|
||||||
painter->drawText(rect, Qt::AlignLeft | Qt::AlignVCenter, QString("Table"));
|
painter->drawText(rect, Qt::AlignLeft | Qt::AlignVCenter, QString(tr("Table")));
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------
|
//--------------------------------------------------------
|
||||||
|
|
|
@ -3173,7 +3173,7 @@ void StyleEditor::onStyleSwitched() {
|
||||||
m_oldStyle = TColorStyleP();
|
m_oldStyle = TColorStyleP();
|
||||||
m_editedStyle = TColorStyleP();
|
m_editedStyle = TColorStyleP();
|
||||||
|
|
||||||
m_statusLabel->setText("- Style not Selected -");
|
m_statusLabel->setText(tr("- Style not Selected -"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3190,11 +3190,11 @@ void StyleEditor::onStyleSwitched() {
|
||||||
QString statusText;
|
QString statusText;
|
||||||
// palette type
|
// palette type
|
||||||
if (isCleanUpPalette)
|
if (isCleanUpPalette)
|
||||||
statusText = "[CLEANUP] ";
|
statusText = tr("[CLEANUP] ");
|
||||||
else if (palette->getGlobalName() != L"")
|
else if (palette->getGlobalName() != L"")
|
||||||
statusText = "[STUDIO] ";
|
statusText = tr("[STUDIO] ");
|
||||||
else
|
else
|
||||||
statusText = "[LEVEL] ";
|
statusText = tr("[LEVEL] ");
|
||||||
|
|
||||||
// palette name
|
// palette name
|
||||||
statusText +=
|
statusText +=
|
||||||
|
@ -3211,7 +3211,7 @@ void StyleEditor::onStyleSwitched() {
|
||||||
|
|
||||||
m_statusLabel->setText(statusText);
|
m_statusLabel->setText(statusText);
|
||||||
} else
|
} else
|
||||||
m_statusLabel->setText("- Style is Not Valid -");
|
m_statusLabel->setText(tr("- Style is Not Valid -"));
|
||||||
enable(!isStyleNull && isValidIndex, isColorInField, isCleanUpPalette);
|
enable(!isStyleNull && isValidIndex, isColorInField, isCleanUpPalette);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue