Add tr to string and fix variable name

This commit is contained in:
Thomas Wilshaw
2022-01-07 01:20:38 +00:00
parent 5624b03e65
commit 764c7bb088
+3 -3
View File
@@ -97,16 +97,16 @@ bool LoadOTIOTask::Run()
// Generate a list of sequences with the same names as the timelines.
// Assumes each timeline has a unique name.
int unnamedSequenceCount = 1;
int unnamed_sequence_count = 0;
foreach (auto timeline, timelines) {
Sequence* sequence = new Sequence();
if (!timeline->name().empty()) {
sequence->SetLabel(QString::fromStdString(timeline->name()));
} else {
// If the otio timeline does not provide a name, create a default one here
QString label = "Sequence " + QString::number(unnamedSequenceCount);
unnamed_sequence_count++;
QString label = tr("Sequence") + QString(" ") + QString::number(unnamed_sequence_count);
sequence->SetLabel(QString::fromStdString(label.toStdString()));
unnamedSequenceCount++;
}
// Set default params incase they aren't edited.
sequence->set_default_parameters();