Don't display "syncing metadata (0 tracks processed)"... instead, just

display "syncing metadata..."
This commit is contained in:
casey langen 2017-04-23 00:43:36 -07:00
parent 26bee45a45
commit 60ce7d1b81
2 changed files with 10 additions and 2 deletions

View File

@ -53,8 +53,15 @@ using namespace cursespp;
static void updateSyncingText(TextLabel* label, int updates) {
try {
label->SetText(boost::str(boost::format(
_TSTR("main_syncing_banner")) % updates), cursespp::text::AlignCenter);
if (updates <= 0) {
label->SetText(
_TSTR("main_syncing_banner_start"),
cursespp::text::AlignCenter);
}
else {
label->SetText(boost::str(boost::format(
_TSTR("main_syncing_banner")) % updates), cursespp::text::AlignCenter);
}
}
catch (...) {
/* swallow. incomplete locale. don't crash. */

View File

@ -95,6 +95,7 @@
"tracklist_unknown_album": "[unknown album]",
"main_syncing_banner_start": "syncing metadata...",
"main_syncing_banner": "syncing metadata (%d tracks processed)"
},