+2007-02-11 Guillem Jover <guillem@debian.org>
+
+ * dselect/pkglist.h (packagelist::severalinfoblurb): Do not take a
+ string argument. Fix all callers.
+ * dselect/pkginfo.cc (packagelist::severalinfoblurb): Likewise.
+ (packagelist::itd_relations): Capitalize and make whatinfo setting
+ common and move it outside of the if block, and do not add the
+ package name.
+ (packagelist::itd_description): Likewise.
+ (packagelist::itd_statuscontrol): Likewise.
+ (packagelist::itd_availablecontrol): Likewise.
+ * dselect/baselist.cc (baselist::itd_keys): Capitalize whatinfo string.
+ * dselect/methlist.cc (methodlist::itd_description): Likewise and do
+ not print the method name.
+
2007-02-11 Ian Jackson <iwj@ubuntu.com>
Guillem Jover <guillem@debian.org>
const packagelist::infotype *const packagelist::baseinfo= infoinfos;
-void packagelist::severalinfoblurb(const char *whatinfoline) {
- whatinfovb(whatinfoline);
+void packagelist::severalinfoblurb()
+{
varbuf vb;
vb(_("The line you have highlighted represents many packages; "
"if you ask to install, remove, hold, etc. it you will affect all "
}
void packagelist::itd_relations() {
+ whatinfovb(_("Interrelationships"));
+
if (table[cursorline]->pkg->name) {
- whatinfovb(_("interrelationships affecting "));
- whatinfovb(table[cursorline]->pkg->name);
if (debug) fprintf(debug,"packagelist[%p]::idt_relations(); `%s'\n",
this,table[cursorline]->relations.string());
waddstr(infopad,table[cursorline]->relations.string());
} else {
- severalinfoblurb(_("interrelationships"));
+ severalinfoblurb();
}
}
void packagelist::itd_description() {
- if (table[cursorline]->pkg->name) {
- whatinfovb(_("description of "));
- whatinfovb(table[cursorline]->pkg->name);
+ whatinfovb(_("Description"));
+ if (table[cursorline]->pkg->name) {
const char *m= table[cursorline]->pkg->available.description;
- if (!m || !*m) m= _("no description available.");
+ if (!m || !*m)
+ m = _("No description available.");
const char *p= strchr(m,'\n');
int l= p ? (int)(p-m) : strlen(m);
wattrset(infopad,info_headattr);
wordwrapinfo(1,++p);
}
} else {
- severalinfoblurb(_("description"));
+ severalinfoblurb();
}
}
void packagelist::itd_statuscontrol() {
+ whatinfovb(_("Installed control file information"));
+
werase(infopad);
if (!table[cursorline]->pkg->name) {
- severalinfoblurb(_("currently installed control info"));
+ severalinfoblurb();
} else {
- whatinfovb(_("installed control info for "));
- whatinfovb(table[cursorline]->pkg->name);
varbuf vb;
varbufrecord(&vb,table[cursorline]->pkg,&table[cursorline]->pkg->installed);
vb.terminate();
}
void packagelist::itd_availablecontrol() {
+ whatinfovb(_("Available control file information"));
+
werase(infopad);
if (!table[cursorline]->pkg->name) {
- severalinfoblurb(_("available version of control file info"));
+ severalinfoblurb();
} else {
- whatinfovb(_("available version of control info for "));
- whatinfovb(table[cursorline]->pkg->name);
varbuf vb;
varbufrecord(&vb,table[cursorline]->pkg,&table[cursorline]->pkg->available);
vb.terminate();