From: Ján Kupec Date: Thu, 18 Mar 2010 16:33:48 +0000 (+0100) Subject: Showing full product name in products table (bnc #589333) X-Git-Tag: 1.4.1~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c9a627c5cb7605e3b4b191b9da17946cb8b9a4f3;p=platform%2Fupstream%2Fzypper.git Showing full product name in products table (bnc #589333) --- diff --git a/src/search.cc b/src/search.cc index 647d54b..6ae2c62 100644 --- a/src/search.cc +++ b/src/search.cc @@ -616,8 +616,12 @@ static void add_product_table_row( Zypper & zypper, TableRow & tr, const Produc // repository if (!zypper.globalOpts().is_rug_compatible) tr << product->repoInfo().name(); - // name - tr << product->name () << product->edition().asString(); + // internal (unix) name + tr << product->name (); + // full name (bnc #589333) + tr << product->summary(); + // version + tr << product->edition().asString(); if (zypper.globalOpts().is_rug_compatible) // rug 'Category' tr << (product->isTargetDistribution() ? "base" : ""); @@ -632,7 +636,7 @@ static void add_product_table_row( Zypper & zypper, TableRow & tr, const Produc static void list_product_table(Zypper & zypper) { - MIL << "Going to list packages." << std::endl; + MIL << "Going to list products." << std::endl; Table tbl; TableHeader th; @@ -641,6 +645,9 @@ static void list_product_table(Zypper & zypper) th << _("S"); if (!zypper.globalOpts().is_rug_compatible) th << _("Repository"); + // translators: used in products. Internal Name is the unix name of the + // product whereas simply Name is the official full name of the product. + th << _("Internal Name"); th << _("Name"); th << _("Version"); if (zypper.globalOpts().is_rug_compatible)