Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32bbcab

Browse files
committed
more plurality fixes for autonestbox
1 parent 6c2a5de commit 32bbcab

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/autonestbox.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ static size_t assign_nestboxes(color_ostream &out) {
340340
if (free_zones.size() < free_units.size() && !did_complain) {
341341
size_t num_needed = free_units.size() - free_zones.size();
342342
std::stringstream ss;
343-
ss << "Not enough free nestbox zones! You need to make " << num_needed << " more 1x1 pastures and build nestboxes in them.";
343+
ss << "Not enough free nestbox zones! You need to make " << num_needed <<
344+
" more 1x1 pasture" << (num_needed == 1 ? "and build nestboxes in it." : "s and build nestboxes in them.");
344345
string announce = ss.str();
345346
out << announce << std::endl;
346347
Gui::showAnnouncement("[DFHack autonestbox] " + announce, COLOR_BROWN, true);

0 commit comments

Comments
 (0)