mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-12-24 17:01:48 +01:00
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.
This commit is contained in:
parent
87872aa369
commit
f70dc9198c
@ -441,8 +441,8 @@ void GameList::AddGamePopup(QMenu& context_menu, u64 program_id) {
|
|||||||
open_save_location->setEnabled(program_id != 0);
|
open_save_location->setEnabled(program_id != 0);
|
||||||
open_application_location->setVisible(FileUtil::Exists(
|
open_application_location->setVisible(FileUtil::Exists(
|
||||||
Service::AM::GetTitleContentPath(Service::FS::MediaType::SDMC, program_id)));
|
Service::AM::GetTitleContentPath(Service::FS::MediaType::SDMC, program_id)));
|
||||||
open_update_location->setEnabled(0x00040000'00000000 <= program_id &&
|
open_update_location->setEnabled(0x0004000000000000 <= program_id &&
|
||||||
program_id <= 0x00040000'FFFFFFFF);
|
program_id <= 0x00040000FFFFFFFF);
|
||||||
auto it = std::find_if(
|
auto it = std::find_if(
|
||||||
compatibility_list.begin(), compatibility_list.end(),
|
compatibility_list.begin(), compatibility_list.end(),
|
||||||
[program_id](const std::pair<std::string, std::pair<QString, QString>>& element) {
|
[program_id](const std::pair<std::string, std::pair<QString, QString>>& element) {
|
||||||
@ -651,11 +651,11 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsign
|
|||||||
std::vector<u8> original_smdh;
|
std::vector<u8> original_smdh;
|
||||||
loader->ReadIcon(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;
|
return original_smdh;
|
||||||
|
|
||||||
std::string update_path = Service::AM::GetTitleContentPath(
|
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))
|
if (!FileUtil::Exists(update_path))
|
||||||
return original_smdh;
|
return original_smdh;
|
||||||
|
Loading…
Reference in New Issue
Block a user