diff --git a/toonz/sources/tnztools/brushtool.cpp b/toonz/sources/tnztools/brushtool.cpp index 7121950..36bd645 100644 --- a/toonz/sources/tnztools/brushtool.cpp +++ b/toonz/sources/tnztools/brushtool.cpp @@ -1018,8 +1018,8 @@ void BrushTool::updateTranslation() { m_capStyle.setQStringName(tr("Cap")); m_joinStyle.setQStringName(tr("Join")); m_miterJoinLimit.setQStringName(tr("Miter:")); - m_frameRange.setQStringName("Range:"); - m_snap.setQStringName("Snap"); + m_frameRange.setQStringName(tr("Range:")); + m_snap.setQStringName(tr("Snap")); m_snapSensitivity.setQStringName(""); } diff --git a/toonz/sources/toonz/cleanupsettingspane.cpp b/toonz/sources/toonz/cleanupsettingspane.cpp index 30756ba..51b5370 100644 --- a/toonz/sources/toonz/cleanupsettingspane.cpp +++ b/toonz/sources/toonz/cleanupsettingspane.cpp @@ -111,10 +111,10 @@ CleanupSettingsPane::CleanupSettingsPane(QWidget *parent) // Autocenter m_autocenterBox->setCheckable(true); QStringList pegbarHoles; - pegbarHoles << "Bottom" - << "Top" - << "Left" - << "Right"; + pegbarHoles << tr("Bottom") + << tr("Top") + << tr("Left") + << tr("Right"); m_pegHolesOm->addItems(pegbarHoles); std::vector fdgNames; CleanupParameters::getFdgNames(fdgNames); diff --git a/toonz/sources/toonz/penciltestpopup.cpp b/toonz/sources/toonz/penciltestpopup.cpp index 646c4ae..90645c5 100644 --- a/toonz/sources/toonz/penciltestpopup.cpp +++ b/toonz/sources/toonz/penciltestpopup.cpp @@ -1095,7 +1095,7 @@ PencilTestPopup::PencilTestPopup() m_saveOnCaptureCB->setChecked(true); 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_upsideDownCB->setChecked(false); @@ -2473,4 +2473,4 @@ void OpenPopupCommandHandler::execute() { m_popup->raise(); m_popup->activateWindow(); if (CamCapOpenSaveInPopupOnLaunch != 0) m_popup->openSaveInFolderPopup(); -} \ No newline at end of file +} diff --git a/toonz/sources/toonz/tpanels.cpp b/toonz/sources/toonz/tpanels.cpp index 47383c5..0ebe8c9 100644 --- a/toonz/sources/toonz/tpanels.cpp +++ b/toonz/sources/toonz/tpanels.cpp @@ -200,9 +200,9 @@ int SchematicScenePanel::getViewType() { void SchematicScenePanel::showEvent(QShowEvent *e) { if (m_schematicViewer->isStageSchematicViewed()) - setWindowTitle("Stage Schematic"); + setWindowTitle(QObject::tr("Stage Schematic")); else - setWindowTitle("Fx Schematic"); + setWindowTitle(QObject::tr("Fx Schematic")); TApp *app = TApp::instance(); connect(m_schematicViewer, SIGNAL(showPreview(TFxP)), this, diff --git a/toonz/sources/toonzlib/cleanupcolorstyles.cpp b/toonz/sources/toonzlib/cleanupcolorstyles.cpp index c651b9e..b033d95 100644 --- a/toonz/sources/toonzlib/cleanupcolorstyles.cpp +++ b/toonz/sources/toonzlib/cleanupcolorstyles.cpp @@ -90,9 +90,9 @@ void TCleanupStyle::setColorParamValue(int index, const TPixel32 &color) { QString TCleanupStyle::getParamNames(int index) const { switch (index) { case 0: - return "Brightness"; + return QObject::tr("Brightness"); case 1: - return "Contrast"; + return QObject::tr("Contrast"); default: return QString(""); } @@ -225,8 +225,8 @@ int TColorCleanupStyle::getTagId() const { return 2001; } //------------------------------------------------------------------- QString TColorCleanupStyle::getParamNames(int index) const { - if (index == 2) "HRange"; - if (index == 3) "Line Width"; + if (index == 2) QObject::tr("HRange"); + if (index == 3) QObject::tr("Line Width"); return TCleanupStyle::getParamNames(index); } @@ -309,9 +309,9 @@ int TBlackCleanupStyle::getTagId() const { return 2002; } QString TBlackCleanupStyle::getParamNames(int index) const { switch (index) { case 2: - return "ColorThres"; + return QObject::tr("ColorThres"); case 3: - return "WhiteThres"; + return QObject::tr("WhiteThres"); default: return TCleanupStyle::getParamNames(index); } diff --git a/toonz/sources/toonzqt/cleanupcamerasettingswidget.cpp b/toonz/sources/toonzqt/cleanupcamerasettingswidget.cpp index b158188..9c6cd4f 100644 --- a/toonz/sources/toonzqt/cleanupcamerasettingswidget.cpp +++ b/toonz/sources/toonzqt/cleanupcamerasettingswidget.cpp @@ -54,10 +54,10 @@ CleanupCameraSettingsWidget::CleanupCameraSettingsWidget() { offsetLay->setVerticalSpacing(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_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_lock, 1, 2); } diff --git a/toonz/sources/toonzqt/functionsegmentviewer.cpp b/toonz/sources/toonzqt/functionsegmentviewer.cpp index 5776c1d..2760c49 100644 --- a/toonz/sources/toonzqt/functionsegmentviewer.cpp +++ b/toonz/sources/toonzqt/functionsegmentviewer.cpp @@ -993,13 +993,13 @@ FunctionSegmentViewer::FunctionSegmentViewer(QWidget *parent, upperLay->setSpacing(3); upperLay->setMargin(0); { - upperLay->addWidget(new QLabel("From", this), 0); + upperLay->addWidget(new QLabel(tr("From"), this), 0); upperLay->addWidget(m_fromFld, 1); upperLay->addSpacing(3); - upperLay->addWidget(new QLabel("To", this), 0); + upperLay->addWidget(new QLabel(tr("To"), this), 0); upperLay->addWidget(m_toFld, 1); upperLay->addSpacing(5); - upperLay->addWidget(new QLabel("Step", this), 0); + upperLay->addWidget(new QLabel(tr("Step"), this), 0); upperLay->addWidget(m_stepFld, 1); } topbarLayout->addLayout(upperLay, 0); diff --git a/toonz/sources/toonzqt/fxschematicnode.cpp b/toonz/sources/toonzqt/fxschematicnode.cpp index 01a51ca..8b24ebd 100644 --- a/toonz/sources/toonzqt/fxschematicnode.cpp +++ b/toonz/sources/toonzqt/fxschematicnode.cpp @@ -1094,7 +1094,7 @@ void FxXSheetPainter::paint(QPainter *painter, // Draw the name QRectF rect(18, 0, 54, 18); painter->drawText(rect, Qt::AlignLeft | Qt::AlignVCenter, - QString("XSheet")); + QString(tr("XSheet"))); } // small scaled else { @@ -1207,7 +1207,7 @@ void FxOutputPainter::paint(QPainter *painter, // Draw the name QRectF rect(18, 0, 72, 18); painter->drawText(rect, Qt::AlignLeft | Qt::AlignVCenter, - QString("Output")); + QString(tr("Output"))); } // small view else { diff --git a/toonz/sources/toonzqt/stageschematicnode.cpp b/toonz/sources/toonzqt/stageschematicnode.cpp index 9527d77..2a818b0 100644 --- a/toonz/sources/toonzqt/stageschematicnode.cpp +++ b/toonz/sources/toonzqt/stageschematicnode.cpp @@ -678,7 +678,7 @@ void TablePainter::paint(QPainter *painter, // Draw the name 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"))); } //-------------------------------------------------------- diff --git a/toonz/sources/toonzqt/styleeditor.cpp b/toonz/sources/toonzqt/styleeditor.cpp index bc2f085..588abb5 100644 --- a/toonz/sources/toonzqt/styleeditor.cpp +++ b/toonz/sources/toonzqt/styleeditor.cpp @@ -3173,7 +3173,7 @@ void StyleEditor::onStyleSwitched() { m_oldStyle = TColorStyleP(); m_editedStyle = TColorStyleP(); - m_statusLabel->setText("- Style not Selected -"); + m_statusLabel->setText(tr("- Style not Selected -")); return; } @@ -3190,11 +3190,11 @@ void StyleEditor::onStyleSwitched() { QString statusText; // palette type if (isCleanUpPalette) - statusText = "[CLEANUP] "; + statusText = tr("[CLEANUP] "); else if (palette->getGlobalName() != L"") - statusText = "[STUDIO] "; + statusText = tr("[STUDIO] "); else - statusText = "[LEVEL] "; + statusText = tr("[LEVEL] "); // palette name statusText += @@ -3211,7 +3211,7 @@ void StyleEditor::onStyleSwitched() { m_statusLabel->setText(statusText); } else - m_statusLabel->setText("- Style is Not Valid -"); + m_statusLabel->setText(tr("- Style is Not Valid -")); enable(!isStyleNull && isValidIndex, isColorInField, isCleanUpPalette); }