commit 7b47f34f508f3b83d3f90781d1acdbf098ded139
parent f40853665f512d3fc952369d97d02c3705bf24d2
Author: cfillion <cfillion@users.noreply.github.com>
Date: Wed, 20 Jan 2016 18:59:29 -0500
pluralize the configuration dialog's confirmation prompt
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/manager.cpp b/src/manager.cpp
@@ -186,15 +186,17 @@ bool Manager::confirm() const
if(m_uninstall.empty())
return true;
+ const size_t uninstallSize = m_uninstall.size();
+
auto_char msg[255] = {};
#ifdef _WIN32
_snwprintf(msg, sizeof(msg),
#else
snprintf(msg, sizeof(msg),
#endif
- AUTO_STR("Uninstall %lu remotes?\n")
+ AUTO_STR("Uninstall %lu remote%s?\n")
AUTO_STR("Every file they contain will be removed from your computer."),
- m_uninstall.size());
+ uninstallSize, uninstallSize == 1 ? AUTO_STR("") : AUTO_STR("s"));
const auto_char *title = AUTO_STR("ReaPack Query");
const int btn = MessageBox(handle(), msg, title, MB_YESNO);