From 2ea797d9a1f3802bda096e699652290e941ab5c4 Mon Sep 17 00:00:00 2001 From: Rintim Date: Wed, 19 Aug 2020 16:07:20 +0800 Subject: [PATCH] 2020/08/19 : Inchar - Trasnlation --- source/fbi/action/deletecontents.c | 2 +- source/fbi/action/newfolder.c | 12 +++++++----- source/fbi/main.c | 8 ++++---- source/fbi/mainmenu.c | 2 +- source/fbi/pendingtitles.c | 20 +++++++++++--------- source/fbi/remoteinstall.c | 2 ++ source/fbi/resources.c | 4 ++-- source/fbi/systemsavedata.c | 16 ++++++++-------- source/fbi/task/uitask.c | 18 +++++++++--------- 9 files changed, 45 insertions(+), 39 deletions(-) diff --git a/source/fbi/action/deletecontents.c b/source/fbi/action/deletecontents.c index 45b196b..ed72cb6 100644 --- a/source/fbi/action/deletecontents.c +++ b/source/fbi/action/deletecontents.c @@ -163,7 +163,7 @@ static void action_delete_loading_update(ui_view* view, void* data, float* progr prompt_display_yes_no("確認", loadingData->message, COLOR_TEXT, loadingData->deleteData, action_delete_draw_top, action_delete_onresponse); } else { - error_display_res(NULL, NULL, loadingData->popData.result, "無法填充档案列表"); + error_display_res(NULL, NULL, loadingData->popData.result, "無法列舉档案列表"); action_delete_free_data(loadingData->deleteData); } diff --git a/source/fbi/action/newfolder.c b/source/fbi/action/newfolder.c index 92021e8..71a3f12 100644 --- a/source/fbi/action/newfolder.c +++ b/source/fbi/action/newfolder.c @@ -43,9 +43,9 @@ static void action_new_folder_onresponse(ui_view* view, void* data, SwkbdButton linked_list_sort(newFolderData->items, NULL, task_compare_files); } - prompt_display_notify("Success", "Folder created.", COLOR_TEXT, NULL, NULL, NULL); + prompt_display_notify("成功", "已創建新的資料夾", COLOR_TEXT, NULL, NULL, NULL); } else { - error_display_res(NULL, NULL, res, "Failed to create folder."); + error_display_res(NULL, NULL, res, "無法創建新的資料夾"); } } @@ -55,7 +55,7 @@ static void action_new_folder_onresponse(ui_view* view, void* data, SwkbdButton void action_new_folder(linked_list* items, list_item* selected) { new_folder_data* data = (new_folder_data*) calloc(1, sizeof(new_folder_data)); if(data == NULL) { - error_display(NULL, NULL, "Failed to allocate new folder data."); + error_display(NULL, NULL, "無法分配新資料夾的數據"); return; } @@ -63,5 +63,7 @@ void action_new_folder(linked_list* items, list_item* selected) { data->items = items; data->selected = selected; - kbd_display("Enter folder name", "", SWKBD_TYPE_NORMAL, 0, SWKBD_NOTEMPTY_NOTBLANK, FILE_NAME_MAX, data, action_new_folder_onresponse); -} \ No newline at end of file + kbd_display("輸入新資料夾的名字", "", SWKBD_TYPE_NORMAL, 0, SWKBD_NOTEMPTY_NOTBLANK, FILE_NAME_MAX, data, action_new_folder_onresponse); +} + +無法分配新資料夾的數據 \ No newline at end of file diff --git a/source/fbi/main.c b/source/fbi/main.c index c1fe7e1..f19682a 100644 --- a/source/fbi/main.c +++ b/source/fbi/main.c @@ -120,19 +120,19 @@ void init() { Result romfsRes = romfsInit(); if(R_FAILED(romfsRes)) { - error_panic("Failed to mount RomFS: %08lX", romfsRes); + error_panic("無法掛載 RomFS: %08lX", romfsRes); return; } if(R_FAILED(init_services())) { if(!attempt_patch_pid()) { - error_panic("Kernel backdoor not installed.\nPlease run a kernel exploit and try again."); + error_panic("無法操控內核\n請確認已獲得內核權限"); return; } Result initRes = init_services(); if(R_FAILED(initRes)) { - error_panic("Failed to initialize services: %08lX", initRes); + error_panic("無法初始化服務: %08lX", initRes); return; } } @@ -142,7 +142,7 @@ void init() { APT_GetAppCpuTimeLimit(&old_time_limit); Result cpuRes = APT_SetAppCpuTimeLimit(30); if(R_FAILED(cpuRes)) { - error_panic("Failed to set syscore CPU time limit: %08lX", cpuRes); + error_panic("無法設置 Syscore CPU 時間限制: %08lX", cpuRes); return; } diff --git a/source/fbi/mainmenu.c b/source/fbi/mainmenu.c index 0c4c3af..3cb5586 100644 --- a/source/fbi/mainmenu.c +++ b/source/fbi/mainmenu.c @@ -7,7 +7,7 @@ #include "section.h" #include "../core/core.h" -static list_item sd = {"SD", COLOR_TEXT, files_open_sd}; +static list_item sd = {"SD Card", COLOR_TEXT, files_open_sd}; static list_item ctr_nand = {"CTR NAND", COLOR_TEXT, files_open_ctr_nand}; static list_item twl_nand = {"TWL NAND", COLOR_TEXT, files_open_twl_nand}; static list_item twl_photo = {"TWL Photo", COLOR_TEXT, files_open_twl_photo}; diff --git a/source/fbi/pendingtitles.c b/source/fbi/pendingtitles.c index 7269c07..72fcb2d 100644 --- a/source/fbi/pendingtitles.c +++ b/source/fbi/pendingtitles.c @@ -9,8 +9,8 @@ #include "task/uitask.h" #include "../core/core.h" -static list_item delete_pending_title = {"Delete Pending Title", COLOR_TEXT, action_delete_pending_title}; -static list_item delete_all_pending_titles = {"Delete All Pending Titles", COLOR_TEXT, action_delete_all_pending_titles}; +static list_item delete_pending_title = {"刪除待裝程式", COLOR_TEXT, action_delete_pending_title}; +static list_item delete_all_pending_titles = {"刪除全部待裝程式", COLOR_TEXT, action_delete_all_pending_titles}; typedef struct { populate_pending_titles_data populateData; @@ -61,7 +61,7 @@ static void pendingtitles_action_update(ui_view* view, void* data, linked_list* static void pendingtitles_action_open(linked_list* items, list_item* selected) { pendingtitles_action_data* data = (pendingtitles_action_data*) calloc(1, sizeof(pendingtitles_action_data)); if(data == NULL) { - error_display(NULL, NULL, "Failed to allocate pending titles action data."); + error_display(NULL, NULL, "無法分配待裝程式操作數據"); return; } @@ -69,7 +69,7 @@ static void pendingtitles_action_open(linked_list* items, list_item* selected) { data->items = items; data->selected = selected; - list_display("Pending Title Action", "A: Select, B: Return", data, pendingtitles_action_update, pendingtitles_action_draw_top); + list_display("待裝程式操作", "A: 選擇, B: 返回", data, pendingtitles_action_update, pendingtitles_action_draw_top); } static void pendingtitles_draw_top(ui_view* view, void* data, float x1, float y1, float x2, float y2, list_item* selected) { @@ -109,14 +109,14 @@ static void pendingtitles_update(ui_view* view, void* data, linked_list* items, listData->populateData.items = items; Result res = task_populate_pending_titles(&listData->populateData); if(R_FAILED(res)) { - error_display_res(NULL, NULL, res, "Failed to initiate pending title list population."); + error_display_res(NULL, NULL, res, "無法初始化待裝程式目錄結構"); } listData->populated = true; } if(listData->populateData.finished && R_FAILED(listData->populateData.result)) { - error_display_res(NULL, NULL, listData->populateData.result, "Failed to populate pending title list."); + error_display_res(NULL, NULL, listData->populateData.result, "無法列舉待裝程式目錄"); listData->populateData.result = 0; } @@ -130,12 +130,14 @@ static void pendingtitles_update(ui_view* view, void* data, linked_list* items, void pendingtitles_open() { pendingtitles_data* data = (pendingtitles_data*) calloc(1, sizeof(pendingtitles_data)); if(data == NULL) { - error_display(NULL, NULL, "Failed to allocate pending titles data."); + error_display(NULL, NULL, "無法分配待裝程式數據"); return; } data->populateData.finished = true; - list_display("Pending Titles", "A: Select, B: Return, X: Refresh", data, pendingtitles_update, pendingtitles_draw_top); -} \ No newline at end of file + list_display("待裝程式 (Pending Titles)", "A: 選擇, B: 返回, X: 刷新", data, pendingtitles_update, pendingtitles_draw_top); +} + +// オケー \ No newline at end of file diff --git a/source/fbi/remoteinstall.c b/source/fbi/remoteinstall.c index 3651442..e2381d7 100644 --- a/source/fbi/remoteinstall.c +++ b/source/fbi/remoteinstall.c @@ -498,3 +498,5 @@ static void remoteinstall_update(ui_view* view, void* data, linked_list* items, void remoteinstall_open() { list_display("遠程安裝", "A: 選擇, B: 返回", NULL, remoteinstall_update, NULL); } + +// オケー \ No newline at end of file diff --git a/source/fbi/resources.c b/source/fbi/resources.c index 6b2aefa..3c14632 100644 --- a/source/fbi/resources.c +++ b/source/fbi/resources.c @@ -25,7 +25,7 @@ static FILE* resources_open_file(const char* path) { static void resources_load_texture(u32 id, const char* name) { FILE* fd = resources_open_file(name); if(fd == NULL) { - error_panic("Failed to open texture \"%s\": %s\n", name, strerror(errno)); + error_panic("無法打開 texture \"%s\": %s\n", name, strerror(errno)); return; } @@ -37,7 +37,7 @@ static void resources_load_texture(u32 id, const char* name) { void resources_load() { FILE* fd = resources_open_file("textcolor.cfg"); if(fd == NULL) { - error_panic("Failed to open text color config: %s\n", strerror(errno)); + error_panic("無法打開文字顏色配置: %s\n", strerror(errno)); return; } diff --git a/source/fbi/systemsavedata.c b/source/fbi/systemsavedata.c index 2c0bac7..21e2274 100644 --- a/source/fbi/systemsavedata.c +++ b/source/fbi/systemsavedata.c @@ -9,8 +9,8 @@ #include "task/uitask.h" #include "../core/core.h" -static list_item browse_save_data = {"Browse Save Data", COLOR_TEXT, action_browse_system_save_data}; -static list_item delete_save_data = {"Delete Save Data", COLOR_TEXT, action_delete_system_save_data}; +static list_item browse_save_data = {"瀏覽儲存數據", COLOR_TEXT, action_browse_system_save_data}; +static list_item delete_save_data = {"刪除儲存數據", COLOR_TEXT, action_delete_system_save_data}; typedef struct { populate_system_save_data_data populateData; @@ -61,7 +61,7 @@ static void systemsavedata_action_update(ui_view* view, void* data, linked_list* static void systemsavedata_action_open(linked_list* items, list_item* selected) { systemsavedata_action_data* data = (systemsavedata_action_data*) calloc(1, sizeof(systemsavedata_action_data)); if(data == NULL) { - error_display(NULL, NULL, "Failed to allocate system save data action data."); + error_display(NULL, NULL, "無法分配系統儲存數據操作的數據"); return; } @@ -69,7 +69,7 @@ static void systemsavedata_action_open(linked_list* items, list_item* selected) data->items = items; data->selected = selected; - list_display("System Save Data Action", "A: Select, B: Return", data, systemsavedata_action_update, systemsavedata_action_draw_top); + list_display("系統儲存數據操作", "A: 選擇, B: 返回", data, systemsavedata_action_update, systemsavedata_action_draw_top); } static void systemsavedata_draw_top(ui_view* view, void* data, float x1, float y1, float x2, float y2, list_item* selected) { @@ -109,14 +109,14 @@ static void systemsavedata_update(ui_view* view, void* data, linked_list* items, listData->populateData.items = items; Result res = task_populate_system_save_data(&listData->populateData); if(R_FAILED(res)) { - error_display_res(NULL, NULL, res, "Failed to initiate system save data list population."); + error_display_res(NULL, NULL, res, "無法初始化系統儲存數據目錄結構"); } listData->populated = true; } if(listData->populateData.finished && R_FAILED(listData->populateData.result)) { - error_display_res(NULL, NULL, listData->populateData.result, "Failed to populate system save data list."); + error_display_res(NULL, NULL, listData->populateData.result, "無法列舉系統儲存數據目錄"); listData->populateData.result = 0; } @@ -130,12 +130,12 @@ static void systemsavedata_update(ui_view* view, void* data, linked_list* items, void systemsavedata_open() { systemsavedata_data* data = (systemsavedata_data*) calloc(1, sizeof(systemsavedata_data)); if(data == NULL) { - error_display(NULL, NULL, "Failed to allocate system save data data."); + error_display(NULL, NULL, "無法分配系統儲存數據的數據"); return; } data->populateData.finished = true; - list_display("System Save Data", "A: Select, B: Return, X: Refresh", data, systemsavedata_update, systemsavedata_draw_top); + list_display("系統儲存數據", "A: 選擇, B: 返回, X: 刷新", data, systemsavedata_update, systemsavedata_draw_top); } \ No newline at end of file diff --git a/source/fbi/task/uitask.c b/source/fbi/task/uitask.c index a27bae6..2f2ee79 100644 --- a/source/fbi/task/uitask.c +++ b/source/fbi/task/uitask.c @@ -67,7 +67,7 @@ void task_draw_ext_save_data_info(ui_view* view, void* data, float x1, float y1, char infoText[512]; snprintf(infoText, sizeof(infoText), - "額外儲存數據ID: %016llX\n" + "額外儲存數據 ID: %016llX\n" "動態: %s", info->extSaveDataId, info->shared ? "是" : "否"); @@ -150,7 +150,7 @@ void task_draw_file_info(ui_view* view, void* data, float x1, float y1, float x2 } infoTextPos += snprintf(infoText + infoTextPos, sizeof(infoText) - infoTextPos, - "程式ID: %016llX\n" + "程式 ID: %016llX\n" "版本: %hu (%d.%d.%d)\n" "區域: %s\n" "安裝後大小: %.2f %s", @@ -160,7 +160,7 @@ void task_draw_file_info(ui_view* view, void* data, float x1, float y1, float x2 ui_get_display_size(info->ciaInfo.installedSize), ui_get_display_size_units(info->ciaInfo.installedSize)); } else if(info->isTicket && info->ticketInfo.loaded) { - infoTextPos += snprintf(infoText + infoTextPos, sizeof(infoText) - infoTextPos, "數據ID: %016llX", info->ticketInfo.titleId); + infoTextPos += snprintf(infoText + infoTextPos, sizeof(infoText) - infoTextPos, "數據 ID: %016llX", info->ticketInfo.titleId); } } @@ -178,11 +178,11 @@ void task_draw_pending_title_info(ui_view* view, void* data, float x1, float y1, char infoText[512]; snprintf(infoText, sizeof(infoText), - "待定程式ID: %016llX\n" + "待裝程式 ID: %016llX\n" "位置: %s\n" "版本: %hu (%d.%d.%d)", info->titleId, - info->mediaType == MEDIATYPE_NAND ? "NAND" : info->mediaType == MEDIATYPE_SD ? "SD" : "遊戲Card", + info->mediaType == MEDIATYPE_NAND ? "NAND" : info->mediaType == MEDIATYPE_SD ? "SD Card" : "遊戲 Card", info->version, (info->version >> 10) & 0x3F, (info->version >> 4) & 0x3F, info->version & 0xF); float infoWidth; @@ -198,7 +198,7 @@ void task_draw_system_save_data_info(ui_view* view, void* data, float x1, float char infoText[512]; - snprintf(infoText, sizeof(infoText), "系統儲存數據ID: %08lX", info->systemSaveDataId); + snprintf(infoText, sizeof(infoText), "系統儲存數據 ID: %08lX", info->systemSaveDataId); float infoWidth; screen_get_string_size(&infoWidth, NULL, infoText, 0.5f, 0.5f); @@ -214,7 +214,7 @@ void task_draw_ticket_info(ui_view* view, void* data, float x1, float y1, float if(info->loaded) { char infoText[512]; - snprintf(infoText, sizeof(infoText), "程式ID: %016llX", info->titleId); + snprintf(infoText, sizeof(infoText), "程式 ID: %016llX", info->titleId); float infoWidth; screen_get_string_size(&infoWidth, NULL, infoText, 0.5f, 0.5f); @@ -241,14 +241,14 @@ void task_draw_title_info(ui_view* view, void* data, float x1, float y1, float x char infoText[512]; snprintf(infoText, sizeof(infoText), - "程式ID: %016llX\n" + "程式 ID: %016llX\n" "位置: %s\n" "版本: %hu (%d.%d.%d)\n" "産品代碼: %s\n" "區域: %s\n" "大小: %.2f %s", info->titleId, - info->mediaType == MEDIATYPE_NAND ? "NAND" : info->mediaType == MEDIATYPE_SD ? "SD" : "遊戲Card", + info->mediaType == MEDIATYPE_NAND ? "NAND" : info->mediaType == MEDIATYPE_SD ? "SD Card" : "遊戲 Card", info->version, (info->version >> 10) & 0x3F, (info->version >> 4) & 0x3F, info->version & 0xF, info->productCode, regionString,