diff --git a/src/Editor/CharacterEditor/CCharacterEditor.cpp b/src/Editor/CharacterEditor/CCharacterEditor.cpp index 433067f9..d6c97ebf 100644 --- a/src/Editor/CharacterEditor/CCharacterEditor.cpp +++ b/src/Editor/CharacterEditor/CCharacterEditor.cpp @@ -164,7 +164,7 @@ void CCharacterEditor::SetActiveAnimSet(CAnimSet *pSet) { mpSet = pSet; mpCharNode->SetCharSet(mpSet); - SET_WINDOWTITLE_APPVARS("%APP_FULL_NAME% - Character Editor: " + TO_QSTRING(mpSet->Source())); + SET_WINDOWTITLE_APPVARS(tr("%APP_FULL_NAME% - Character Editor: ").arg(TO_QSTRING(mpSet->Source()))); // Clear selected bone ui->SkeletonHierarchyTreeView->selectionModel()->clear(); diff --git a/src/Editor/StringEditor/CStringEditor.cpp b/src/Editor/StringEditor/CStringEditor.cpp index 6648a2a7..c52a3888 100644 --- a/src/Editor/StringEditor/CStringEditor.cpp +++ b/src/Editor/StringEditor/CStringEditor.cpp @@ -137,8 +137,8 @@ void CStringEditor::InitUI() mpUI->StringTextEdit->installEventFilter(this); // Update window title - QString WindowTitle = QStringLiteral("%APP_FULL_NAME% - String Editor - %1[*]"); - WindowTitle = WindowTitle.arg( TO_QSTRING(mpStringTable->Entry()->CookedAssetPath(true).GetFileName()) ); + const QString WindowTitle = tr("%APP_FULL_NAME% - String Editor - %1[*]") + .arg(TO_QSTRING(mpStringTable->Entry()->CookedAssetPath(true).GetFileName())); SET_WINDOWTITLE_APPVARS(WindowTitle); // Initialize the splitter so top split takes as much space as possible