Skip to content

Commit

Permalink
Merge pull request #11937 from lioncash/sky
Browse files Browse the repository at this point in the history
SkylanderPortalWindow: Detranslate unnecessary strings
  • Loading branch information
AdmiralCurtiss committed Jun 12, 2023
2 parents 3ce06ae + 001fe6f commit b3f4006
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Source/Core/DolphinQt/SkylanderPortal/SkylanderPortalWindow.cpp
Expand Up @@ -401,7 +401,8 @@ void SkylanderPortalWindow::LoadSelected()
{
if (m_skylander_list->currentItem() == nullptr)
return;
file_path = m_collection_path + m_skylander_list->currentItem()->text() + tr(".sky");
file_path =
m_collection_path + m_skylander_list->currentItem()->text() + QStringLiteral(".sky");
}
else
{
Expand Down Expand Up @@ -436,7 +437,7 @@ void SkylanderPortalWindow::LoadSelected()
}
else
{
m_last_skylander_path = QFileInfo(file_path).absolutePath() + tr("/");
m_last_skylander_path = QFileInfo(file_path).absolutePath() + QLatin1Char{'/'};

LoadSkyfilePath(slot, file_path);
}
Expand Down Expand Up @@ -584,7 +585,7 @@ void SkylanderPortalWindow::RefreshList()
{
const QDir collection = QDir(m_collection_path);
auto& system = Core::System::GetInstance();
for (auto file : collection.entryInfoList(QStringList(tr("*.sky"))))
for (const auto& file : collection.entryInfoList(QStringList(QStringLiteral("*.sky"))))
{
File::IOFile sky_file(file.filePath().toStdString(), "r+b");
if (!sky_file)
Expand Down Expand Up @@ -709,7 +710,7 @@ void SkylanderPortalWindow::UpdateSlotNames()
}
else
{
display_string = QString(tr("Unknown (Id:%1 Var:%2)")).arg(sd->m_sky_id).arg(sd->m_sky_var);
display_string = tr("Unknown (Id:%1 Var:%2)").arg(sd->m_sky_id).arg(sd->m_sky_var);
}
}
else
Expand Down Expand Up @@ -818,7 +819,7 @@ QString SkylanderPortalWindow::GetFilePath(u16 id, u16 var)
{
const QDir collection = QDir(m_collection_path);
auto& system = Core::System::GetInstance();
for (auto file : collection.entryInfoList(QStringList(tr("*.sky"))))
for (const auto& file : collection.entryInfoList(QStringList(QStringLiteral("*.sky"))))
{
File::IOFile sky_file(file.filePath().toStdString(), "r+b");
if (!sky_file)
Expand Down

0 comments on commit b3f4006

Please sign in to comment.