From f70dc9198ccaa8ee76b59e5efb5453805bcd57c1 Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Mon, 23 Jul 2018 23:44:30 +0800 Subject: [PATCH] game_list: fix untranslated texts Due to a bug of Qt Linguist, the spliters in numbers cannot be parsed correctly and will cause strange issues. As far as I know, this caused 4 texts to be untranslated (translation source for them are not generated). Before the Qt bug is fixed (and we move to that version), I think we can temporarily remove the spliters from the numbers. --- src/citra_qt/game_list.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp index b1fa73c88..ed2180590 100644 --- a/src/citra_qt/game_list.cpp +++ b/src/citra_qt/game_list.cpp @@ -441,8 +441,8 @@ void GameList::AddGamePopup(QMenu& context_menu, u64 program_id) { open_save_location->setEnabled(program_id != 0); open_application_location->setVisible(FileUtil::Exists( Service::AM::GetTitleContentPath(Service::FS::MediaType::SDMC, program_id))); - open_update_location->setEnabled(0x00040000'00000000 <= program_id && - program_id <= 0x00040000'FFFFFFFF); + open_update_location->setEnabled(0x0004000000000000 <= program_id && + program_id <= 0x00040000FFFFFFFF); auto it = std::find_if( compatibility_list.begin(), compatibility_list.end(), [program_id](const std::pair>& element) { @@ -651,11 +651,11 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsign std::vector original_smdh; loader->ReadIcon(original_smdh); - if (program_id < 0x00040000'00000000 || program_id > 0x00040000'FFFFFFFF) + if (program_id < 0x0004000000000000 || program_id > 0x00040000FFFFFFFF) return original_smdh; std::string update_path = Service::AM::GetTitleContentPath( - Service::FS::MediaType::SDMC, program_id + 0x0000000E'00000000); + Service::FS::MediaType::SDMC, program_id + 0x0000000E00000000); if (!FileUtil::Exists(update_path)) return original_smdh;