mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-30 21:36:37 +08:00
Clarify directory deletion strings.
This commit is contained in:
parent
352fc5389a
commit
afaef7040c
@ -13,6 +13,7 @@ void action_install_cias(file_info* info, bool* populated);
|
|||||||
void action_install_cias_delete(file_info* info, bool* populated);
|
void action_install_cias_delete(file_info* info, bool* populated);
|
||||||
void action_copy_contents(file_info* info, bool* populated);
|
void action_copy_contents(file_info* info, bool* populated);
|
||||||
void action_delete_contents(file_info* info, bool* populated);
|
void action_delete_contents(file_info* info, bool* populated);
|
||||||
|
void action_delete_dir(file_info* info, bool* populated);
|
||||||
void action_delete_dir_contents(file_info* info, bool* populated);
|
void action_delete_dir_contents(file_info* info, bool* populated);
|
||||||
void action_delete_dir_cias(file_info* info, bool* populated);
|
void action_delete_dir_cias(file_info* info, bool* populated);
|
||||||
void action_paste_contents(file_info* info, bool* populated);
|
void action_paste_contents(file_info* info, bool* populated);
|
||||||
|
@ -122,6 +122,23 @@ void action_delete_contents(file_info* info, bool* populated) {
|
|||||||
ui_push(prompt_create("Confirmation", "Delete the selected content?", COLOR_TEXT, true, data, NULL, action_delete_dir_contents_draw_top, action_delete_dir_contents_onresponse));
|
ui_push(prompt_create("Confirmation", "Delete the selected content?", COLOR_TEXT, true, data, NULL, action_delete_dir_contents_draw_top, action_delete_dir_contents_onresponse));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void action_delete_dir(file_info* info, bool* populated) {
|
||||||
|
delete_dir_contents_data* data = (delete_dir_contents_data*) calloc(1, sizeof(delete_dir_contents_data));
|
||||||
|
data->base = info;
|
||||||
|
data->populated = populated;
|
||||||
|
data->processed = 0;
|
||||||
|
|
||||||
|
Result res = 0;
|
||||||
|
if(R_FAILED(res = util_populate_contents(&data->contents, &data->total, info->archive, info->path, true, false, NULL, NULL))) {
|
||||||
|
error_display_res(info, ui_draw_file_info, res, "Failed to retrieve content list.");
|
||||||
|
|
||||||
|
free(data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ui_push(prompt_create("Confirmation", "Delete the current directory?", COLOR_TEXT, true, data, NULL, action_delete_dir_contents_draw_top, action_delete_dir_contents_onresponse));
|
||||||
|
}
|
||||||
|
|
||||||
void action_delete_dir_contents(file_info* info, bool* populated) {
|
void action_delete_dir_contents(file_info* info, bool* populated) {
|
||||||
delete_dir_contents_data* data = (delete_dir_contents_data*) calloc(1, sizeof(delete_dir_contents_data));
|
delete_dir_contents_data* data = (delete_dir_contents_data*) calloc(1, sizeof(delete_dir_contents_data));
|
||||||
data->base = info;
|
data->base = info;
|
||||||
@ -136,7 +153,7 @@ void action_delete_dir_contents(file_info* info, bool* populated) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ui_push(prompt_create("Confirmation", "Delete all contents of the selected directory?", COLOR_TEXT, true, data, NULL, action_delete_dir_contents_draw_top, action_delete_dir_contents_onresponse));
|
ui_push(prompt_create("Confirmation", "Delete all contents of the current directory?", COLOR_TEXT, true, data, NULL, action_delete_dir_contents_draw_top, action_delete_dir_contents_onresponse));
|
||||||
}
|
}
|
||||||
|
|
||||||
void action_delete_dir_cias(file_info* info, bool* populated) {
|
void action_delete_dir_cias(file_info* info, bool* populated) {
|
||||||
@ -153,5 +170,5 @@ void action_delete_dir_cias(file_info* info, bool* populated) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ui_push(prompt_create("Confirmation", "Delete all CIAs in the selected directory?", COLOR_TEXT, true, data, NULL, action_delete_dir_contents_draw_top, action_delete_dir_contents_onresponse));
|
ui_push(prompt_create("Confirmation", "Delete all CIAs in the current directory?", COLOR_TEXT, true, data, NULL, action_delete_dir_contents_draw_top, action_delete_dir_contents_onresponse));
|
||||||
}
|
}
|
@ -52,7 +52,7 @@ static list_item cia_files_action_items[CIA_FILES_ACTION_COUNT] = {
|
|||||||
static u32 directories_action_count = DIRECTORIES_ACTION_COUNT;
|
static u32 directories_action_count = DIRECTORIES_ACTION_COUNT;
|
||||||
static list_item directories_action_items[DIRECTORIES_ACTION_COUNT] = {
|
static list_item directories_action_items[DIRECTORIES_ACTION_COUNT] = {
|
||||||
{"Delete all contents", COLOR_TEXT, action_delete_dir_contents},
|
{"Delete all contents", COLOR_TEXT, action_delete_dir_contents},
|
||||||
{"Delete", COLOR_TEXT, action_delete_contents},
|
{"Delete", COLOR_TEXT, action_delete_dir},
|
||||||
{"Copy", COLOR_TEXT, action_copy_contents},
|
{"Copy", COLOR_TEXT, action_copy_contents},
|
||||||
{"Paste", COLOR_TEXT, action_paste_contents},
|
{"Paste", COLOR_TEXT, action_paste_contents},
|
||||||
};
|
};
|
||||||
@ -65,7 +65,7 @@ static list_item cia_directories_action_items[CIA_DIRECTORIES_ACTION_COUNT] = {
|
|||||||
{"Install and delete all CIAs", COLOR_TEXT, action_install_cias_delete},
|
{"Install and delete all CIAs", COLOR_TEXT, action_install_cias_delete},
|
||||||
{"Delete all CIAs", COLOR_TEXT, action_delete_dir_cias},
|
{"Delete all CIAs", COLOR_TEXT, action_delete_dir_cias},
|
||||||
{"Delete all contents", COLOR_TEXT, action_delete_dir_contents},
|
{"Delete all contents", COLOR_TEXT, action_delete_dir_contents},
|
||||||
{"Delete", COLOR_TEXT, action_delete_contents},
|
{"Delete", COLOR_TEXT, action_delete_dir},
|
||||||
{"Copy", COLOR_TEXT, action_copy_contents},
|
{"Copy", COLOR_TEXT, action_copy_contents},
|
||||||
{"Paste", COLOR_TEXT, action_paste_contents},
|
{"Paste", COLOR_TEXT, action_paste_contents},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user