CCharacterEditor/CStringEditor: Make window titles translatable
This commit is contained in:
parent
fa7b6a1bfe
commit
0fd2a55e3b
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue