CCharacterEditor/CStringEditor: Make window titles translatable

This commit is contained in:
Lioncash 2020-07-03 08:44:05 -04:00
parent fa7b6a1bfe
commit 0fd2a55e3b
2 changed files with 3 additions and 3 deletions

View File

@ -164,7 +164,7 @@ void CCharacterEditor::SetActiveAnimSet(CAnimSet *pSet)
{ {
mpSet = pSet; mpSet = pSet;
mpCharNode->SetCharSet(mpSet); 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 // Clear selected bone
ui->SkeletonHierarchyTreeView->selectionModel()->clear(); ui->SkeletonHierarchyTreeView->selectionModel()->clear();

View File

@ -137,8 +137,8 @@ void CStringEditor::InitUI()
mpUI->StringTextEdit->installEventFilter(this); mpUI->StringTextEdit->installEventFilter(this);
// Update window title // Update window title
QString WindowTitle = QStringLiteral("%APP_FULL_NAME% - String Editor - %1[*]"); const QString WindowTitle = tr("%APP_FULL_NAME% - String Editor - %1[*]")
WindowTitle = WindowTitle.arg( TO_QSTRING(mpStringTable->Entry()->CookedAssetPath(true).GetFileName()) ); .arg(TO_QSTRING(mpStringTable->Entry()->CookedAssetPath(true).GetFileName()));
SET_WINDOWTITLE_APPVARS(WindowTitle); SET_WINDOWTITLE_APPVARS(WindowTitle);
// Initialize the splitter so top split takes as much space as possible // Initialize the splitter so top split takes as much space as possible