diff --git a/lib/I18n/translations/english.yaml b/lib/I18n/translations/english.yaml index e5d83096..6ab0b93f 100644 --- a/lib/I18n/translations/english.yaml +++ b/lib/I18n/translations/english.yaml @@ -261,6 +261,7 @@ STR_GO_HOME_BUTTON: "Go Home" STR_SYNC_PROGRESS: "Sync Progress" STR_DELETE_CACHE: "Delete Book Cache" STR_DELETE: "Delete" +STR_REMOVE: "Remove" STR_DISPLAY_QR: "Show page as QR" STR_CHAPTER_PREFIX: "Chapter: " STR_PAGES_SEPARATOR: " pages | " diff --git a/src/activities/home/RecentBooksActivity.cpp b/src/activities/home/RecentBooksActivity.cpp index ca7bea02..b15dabf0 100644 --- a/src/activities/home/RecentBooksActivity.cpp +++ b/src/activities/home/RecentBooksActivity.cpp @@ -80,7 +80,7 @@ void RecentBooksActivity::loop() { } }; - std::string heading = tr(STR_DELETE) + std::string("? "); + std::string heading = tr(STR_REMOVE) + std::string("? "); startActivityForResult(std::make_unique(renderer, mappedInput, heading, bookTitle), handler); return; } @@ -142,7 +142,8 @@ void RecentBooksActivity::render(RenderLock&&) { const bool hasInfo = !recentBooks.empty() && selectorIndex < recentBooks.size() && (FsHelpers::hasEpubExtension(recentBooks[selectorIndex].path) || FsHelpers::hasXtcExtension(recentBooks[selectorIndex].path)); - const auto labels = mappedInput.mapLabels(tr(STR_HOME), tr(STR_OPEN), tr(STR_DELETE), hasInfo ? tr(STR_INFO) : ""); + const bool hasBooks = !recentBooks.empty(); + const auto labels = mappedInput.mapLabels(tr(STR_HOME), hasBooks ? tr(STR_OPEN) : "", hasBooks ? tr(STR_REMOVE) : "", hasInfo ? tr(STR_INFO) : ""); GUI.drawButtonHints(renderer, labels.btn1, labels.btn2, labels.btn3, labels.btn4); // Side buttons (Up/Down) navigate; show their hints on the side