+Tue Oct 26 19:35:53 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
+
+ * Also translate helpmessages for dselect
+
Mon Oct 25 21:08:06 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
* Added Czech translation from Petr Cech <cech@atrey.karlin.mff.cuni.cz>
for (hme= helpmenu; hme->key && hme->key != key; hme++);
if (hme->key) {
attrset(list_attr);
- mvaddstr(1,0, hme->msg->text);
+ mvaddstr(1,0, gettext(hme->msg->text));
attrset(title_attr);
mvaddstr(0,0, _("Help: "));
- addstr(hme->msg->title);
+ addstr(gettext(hme->msg->title));
getyx(stdscr,y,x);
while (++x<maxx) addch(' ');
attrset(thisstate_attr);
mvaddstr(1,1, _("Help information is available under the following topics:"));
for (i=0, hme=helpmenu; hme->key; hme++,i++) {
attrset(A_BOLD);
- mvaddch(i+3,3, hme->key);
+ mvaddch(i+3,3, gettext(hme->key));
attrset(A_NORMAL);
- mvaddstr(i+3,6, hme->msg->title);
+ mvaddstr(i+3,6, gettext(hme->msg->title));
}
mvaddstr(i+4,1,
_("Press a key from the list above, Space to exit help,\n"
print(NH "extern const struct helpmessage hlp_$currentname;\n") || die $!;
print(NC
"const struct helpmessage hlp_$currentname = {\n".
- " \"$currenttitle\", \"") || die $!;
+ " N_(\"$currenttitle\"), N_(\"") || die $!;
} elsif (m/^\@\@\@/) {
die;
} elsif (!m/\S/) {
sub finishif {
if ($state ne 'start') {
- print(NC "\"\n};\n") || die $!;
+ print(NC "\")\n};\n") || die $!;
printf "\t\t%s: %d lines\n",$currentname,$nlines;
if ($nlines > $maxnlines) { warn "Too many lines in $currentname"; }
}