mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
update the "What to do?" dialog to the new format with %f for the file
This commit is contained in:
parent
5dc8c56b2d
commit
d6ccb1813b
@ -517,7 +517,7 @@ format_command(unsigned char *command, unsigned char *type, int copiousoutput)
|
|||||||
command++;
|
command++;
|
||||||
if (!strncmp(command, "%s'", 3)) {
|
if (!strncmp(command, "%s'", 3)) {
|
||||||
command += 3;
|
command += 3;
|
||||||
add_char_to_string(&cmd, '%');
|
add_to_string(&cmd, "%f");
|
||||||
} else {
|
} else {
|
||||||
add_char_to_string(&cmd, '\'');
|
add_char_to_string(&cmd, '\'');
|
||||||
}
|
}
|
||||||
@ -530,7 +530,7 @@ format_command(unsigned char *command, unsigned char *type, int copiousoutput)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
} else if (*command == 's') {
|
} else if (*command == 's') {
|
||||||
add_char_to_string(&cmd, '%');
|
add_to_string(&cmd, "%f");
|
||||||
|
|
||||||
} else if (*command == 't') {
|
} else if (*command == 't') {
|
||||||
if (!type) {
|
if (!type) {
|
||||||
|
@ -1627,7 +1627,9 @@ do_type_query(struct type_query *type_query, unsigned char *ct, struct mime_hand
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* xgettext:no-c-format */
|
/* xgettext:no-c-format */
|
||||||
add_dlg_field(dlg, _("Program ('%' will be replaced by the filename)", term),
|
add_dlg_field(dlg,
|
||||||
|
_("Program ('%f' will be replaced by the filename, "
|
||||||
|
"'%u' by the uri)", term),
|
||||||
0, 0, NULL, MAX_STR_LEN, field, NULL);
|
0, 0, NULL, MAX_STR_LEN, field, NULL);
|
||||||
type_query->external_handler = field;
|
type_query->external_handler = field;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user