From 8c67f13256a1b6f709f9e2cd01776e9a26af0666 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 24 Aug 2021 11:31:05 -0400 Subject: [PATCH] ResourcePackManager: Translate unknown author string This is text that should be translated, since it'll show up as English for non-English speakers. --- Source/Core/DolphinQt/ResourcePackManager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt/ResourcePackManager.cpp b/Source/Core/DolphinQt/ResourcePackManager.cpp index 8f7e0dd360..ed067ab5cd 100644 --- a/Source/Core/DolphinQt/ResourcePackManager.cpp +++ b/Source/Core/DolphinQt/ResourcePackManager.cpp @@ -108,13 +108,14 @@ void ResourcePackManager::RepopulateTable() for (int i = 0; i < size; i++) { const auto& pack = ResourcePack::GetPacks()[size - 1 - i]; - auto* manifest = pack.GetManifest(); + const auto* manifest = pack.GetManifest(); + const auto& authors = manifest->GetAuthors(); auto* logo_item = new QTableWidgetItem; auto* name_item = new QTableWidgetItem(QString::fromStdString(manifest->GetName())); auto* version_item = new QTableWidgetItem(QString::fromStdString(manifest->GetVersion())); - auto* author_item = new QTableWidgetItem( - QString::fromStdString(manifest->GetAuthors().value_or("Unknown author"))); + auto* author_item = + new QTableWidgetItem(authors ? QString::fromStdString(*authors) : tr("Unknown author")); auto* description_item = new QTableWidgetItem(QString::fromStdString(manifest->GetDescription().value_or(""))); auto* website_item =