From: Ján Kupec Date: Thu, 19 Nov 2009 18:55:28 +0000 (+0100) Subject: proper messages for suggested packages in summary X-Git-Tag: 1.2.17~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6764952196943076b0df0c82587bb7dbf2c6a126;p=platform%2Fupstream%2Fzypper.git proper messages for suggested packages in summary --- diff --git a/src/Summary.cc b/src/Summary.cc index 889900b..0ad1ba2 100644 --- a/src/Summary.cc +++ b/src/Summary.cc @@ -713,6 +713,26 @@ void Summary::writeSuggested(ostream & out) for_(it, noinstsug.begin(), noinstsug.end()) { string label; + if (it->first == ResKind::package) + label = _PL( + "The following package is suggested, but will not be installed:", + "The following packages are suggested, but will not be installed:", + it->second.size()); + else if (it->first == ResKind::patch) + label = _PL( + "The following patch is suggested, but will not be installed:", + "The following patches are suggested, but will not be installed:", + it->second.size()); + else if (it->first == ResKind::pattern) + label = _PL( + "The following pattern is suggested, but will not be installed:", + "The following patterns are suggested, but will not be installed:", + it->second.size()); + else if (it->first == ResKind::product) + label = _PL( + "The following product is suggested, but will not be installed:", + "The following products are suggested, but will not be installed:", + it->second.size()); out << endl << label << endl; writeResolvableList(out, it->second);