1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-10 04:21:44 +00:00

updated footer text

This commit is contained in:
flb 2021-06-03 22:55:01 +02:00
parent a73e242666
commit 037bc5ac04
2 changed files with 3 additions and 4 deletions

View file

@ -115,7 +115,7 @@
"download_cheats": "Download cheats",
"tools": "Tools",
"launch_warning": "Please pay attention to the following points before using the app:\n\n\ue016 Read up on how to manually update your Switch first. This will help you understand the app better and you'll know what to do in case something goes wrong.\n\ue016 Please note that using this app (or any homebrew) on a exFAT SD card is not recommended, as those are more likely to corrupt.\n\n\ue016 Some new features and/or changes regarding current features may have been introduced. Please check them out via the Tools->Changelog menu.\n\nThis screen won't show again.",
"GB_available": "GB available"
"footer_text" : "v{} | {:.1f}GB available"
},
"hide": {
"title": "Hide tabs",

View file

@ -24,10 +24,9 @@ MainFrame::MainFrame() : TabFrame()
s64 freeStorage;
std::string tag = util::getLatestTag(TAGS_INFO);
this->setFooterText(fmt::format("v{} | {:.1f}{}",
this->setFooterText(fmt::format("menus/main/footer_text"_i18n,
(!tag.empty() && tag != AppVersion) ? AppVersion + "menus/main/new_update"_i18n : AppVersion,
R_SUCCEEDED(fs::getFreeStorageSD(freeStorage)) ? (float)freeStorage/0x40000000 : -1,
"menus/main/GB_available"_i18n)
R_SUCCEEDED(fs::getFreeStorageSD(freeStorage)) ? (float)freeStorage/0x40000000 : -1)
);
json hideStatus = fs::parseJsonFile(HIDE_TABS_JSON);