Added new strings and update Korean, Japanese lang. (#146)

* Added new strings and update Korean, Japanese lang.

* Update ko.json, ja.json.
This commit is contained in:
Yorunokyujitsu
2025-05-25 07:32:38 +09:00
committed by GitHub
parent d50bcb650f
commit 4172d5d5b6
20 changed files with 4291 additions and 2626 deletions

View File

@@ -1645,7 +1645,7 @@ void App::DisplayInstallOptions(bool left_side) {
App::GetApp()->m_skip_ticket.Set(enable);
}));
options->Add(std::make_shared<ui::SidebarEntryBool>("skip NCA hash verify"_i18n, App::GetApp()->m_skip_nca_hash_verify.Get(), [](bool& enable){
options->Add(std::make_shared<ui::SidebarEntryBool>("Skip NCA hash verify"_i18n, App::GetApp()->m_skip_nca_hash_verify.Get(), [](bool& enable){
App::GetApp()->m_skip_nca_hash_verify.Set(enable);
}));

View File

@@ -984,7 +984,7 @@ auto install_forwader_internal(ui::ProgressBox* pbox, OwoConfig& config, NcmStor
// remove old id for forwarders.
const auto rc = nsDeleteApplicationCompletely(old_tid);
if (R_FAILED(rc) && rc != 0x410) { // not found
App::Notify("Failed to remove old forwarder, please manually remove it!");
App::Notify("Failed to remove old forwarder, please manually remove it!"_i18n);
}
// remove previous application record

View File

@@ -906,7 +906,7 @@ void Menu::InstallFiles() {
} else if (R_FAILED(rc)) {
return false;
} else {
App::Notify("Installed " + e.GetName());
App::Notify("Installed "_i18n + e.GetName());
}
}
@@ -1016,9 +1016,9 @@ void Menu::UnzipFiles(fs::FsPath dir_path) {
return true;
}, [this](bool success){
if (success) {
App::Notify("Extract success!");
App::Notify("Extract success!"_i18n);
} else {
App::Notify("Extract failed!");
App::Notify("Extract failed!"_i18n);
}
Scan(m_path);
log_write("did extract\n");
@@ -1167,9 +1167,9 @@ void Menu::ZipFiles(fs::FsPath zip_out) {
return true;
}, [this](bool success){
if (success) {
App::Notify("Compress success!");
App::Notify("Compress success!"_i18n);
} else {
App::Notify("Compress failed!");
App::Notify("Compress failed!"_i18n);
}
Scan(m_path);
log_write("did compress\n");
@@ -1181,7 +1181,7 @@ void Menu::UploadFiles() {
const auto network_locations = location::Load();
if (network_locations.empty()) {
App::Notify("No upload locations set!");
App::Notify("No upload locations set!"_i18n);
return;
}
@@ -1242,10 +1242,10 @@ void Menu::UploadFiles() {
ResetSelection();
if (success) {
App::Notify("Upload successfull!");
App::Notify("Upload successfull!"_i18n);
log_write("Upload successfull!!!\n");
} else {
App::Notify("Upload failed!");
App::Notify("Upload failed!"_i18n);
log_write("Upload failed!!!\n");
}
}));

View File

@@ -347,9 +347,9 @@ Result DumpNspToUsbS2S(ProgressBox* pbox, std::span<NspEntry> entries) {
// todo: display progress bar during usb transfer.
while (!pbox->ShouldExit()) {
if (R_SUCCEEDED(usb->IsUsbConnected(timeout))) {
pbox->NewTransfer("USB connected, sending file list");
pbox->NewTransfer("USB connected, sending file list"_i18n);
if (R_SUCCEEDED(usb->WaitForConnection(timeout, file_list))) {
pbox->NewTransfer("Sent file list, waiting for command...");
pbox->NewTransfer("Sent file list, waiting for command..."_i18n);
while (!pbox->ShouldExit()) {
const auto rc = usb->PollCommands();
@@ -363,7 +363,7 @@ Result DumpNspToUsbS2S(ProgressBox* pbox, std::span<NspEntry> entries) {
}
} else {
pbox->NewTransfer("waiting for usb connection...");
pbox->NewTransfer("waiting for usb connection..."_i18n);
}
}
@@ -447,7 +447,7 @@ Result Notify(Result rc, const std::string& error_message) {
i18n::get(error_message)
));
} else {
App::Notify("Success");
App::Notify("Success"_i18n);
}
return rc;
@@ -998,7 +998,7 @@ Menu::Menu() : grid::Menu{"Games"_i18n} {
}
if (meta_entries.empty()) {
App::Notify("No meta entries found...\n");
App::Notify("No meta entries found...\n"_i18n);
return;
}
@@ -1010,7 +1010,7 @@ Menu::Menu() : grid::Menu{"Games"_i18n} {
}
App::Push(std::make_shared<PopupList>(
"Entries", items, [this, meta_entries](auto op_index){
"Entries"_i18n, items, [this, meta_entries](auto op_index){
#if 0
if (op_index) {
const auto& e = meta_entries[*op_index];
@@ -1087,7 +1087,7 @@ Menu::~Menu() {
void Menu::Update(Controller* controller, TouchInfo* touch) {
if (m_dirty) {
App::Notify("Updating application record list");
App::Notify("Updating application record list"_i18n);
SortAndFindLastFile(true);
}
@@ -1303,9 +1303,9 @@ void Menu::DeleteGames() {
m_dirty = true;
if (success) {
App::Notify("Delete successfull!");
App::Notify("Delete successfull!"_i18n);
} else {
App::Notify("Delete failed!");
App::Notify("Delete failed!"_i18n);
}
}));
}
@@ -1354,10 +1354,10 @@ void Menu::DumpGames(u32 flags) {
ClearSelection();
if (success) {
App::Notify("Dump successfull!");
App::Notify("Dump successfull!"_i18n);
log_write("dump successfull!!!\n");
} else {
App::Notify("Dump failed!");
App::Notify("Dump failed!"_i18n);
log_write("dump failed!!!\n");
}
}));

View File

@@ -222,12 +222,12 @@ void Menu::Draw(NVGcontext* vg, Theme* theme) {
const auto size_sd_gb = (double)m_size_free_sd / 0x40000000;
const auto size_nand_gb = (double)m_size_free_nand / 0x40000000;
gfx::drawTextArgs(vg, 490, 135, 23.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "System memory %.1f GB", size_nand_gb);
gfx::drawTextArgs(vg, 490, 135, 23.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "System memory %.1f GB"_i18n.c_str(), size_nand_gb);
gfx::drawRect(vg, 480, 170, STORAGE_BAR_W, STORAGE_BAR_H, theme->GetColour(ThemeEntryID_TEXT));
gfx::drawRect(vg, 480 + 1, 170 + 1, STORAGE_BAR_W - 2, STORAGE_BAR_H - 2, theme->GetColour(ThemeEntryID_BACKGROUND));
gfx::drawRect(vg, 480 + 2, 170 + 2, STORAGE_BAR_W - (((double)m_size_free_nand / (double)m_size_total_nand) * STORAGE_BAR_W) - 4, STORAGE_BAR_H - 4, theme->GetColour(ThemeEntryID_TEXT));
gfx::drawTextArgs(vg, 870, 135, 23.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "microSD card %.1f GB", size_sd_gb);
gfx::drawTextArgs(vg, 870, 135, 23.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "microSD card %.1f GB"_i18n.c_str(), size_sd_gb);
gfx::drawRect(vg, 860, 170, STORAGE_BAR_W, STORAGE_BAR_H, theme->GetColour(ThemeEntryID_TEXT));
gfx::drawRect(vg, 860 + 1, 170 + 1, STORAGE_BAR_W - 2, STORAGE_BAR_H - 2, theme->GetColour(ThemeEntryID_BACKGROUND));
gfx::drawRect(vg, 860 + 2, 170 + 2, STORAGE_BAR_W - (((double)m_size_free_sd / (double)m_size_total_sd) * STORAGE_BAR_W) - 4, STORAGE_BAR_H - 4, theme->GetColour(ThemeEntryID_TEXT));
@@ -265,7 +265,7 @@ void Menu::Draw(NVGcontext* vg, Theme* theme) {
colour = ThemeEntryID_TEXT_INFO;
}
gfx::drawTextArgs(vg, x + 15, y + (h / 2.f), 23.f, NVG_ALIGN_LEFT | NVG_ALIGN_MIDDLE, theme->GetColour(colour), "%s", g_option_list[i]);
gfx::drawTextArgs(vg, x + 15, y + (h / 2.f), 23.f, NVG_ALIGN_LEFT | NVG_ALIGN_MIDDLE, theme->GetColour(colour), "%s", i18n::get(g_option_list[i]).c_str());
});
}

View File

@@ -140,11 +140,11 @@ auto ProgressBox::Draw(NVGcontext* vg, Theme* theme) -> void {
char time_str[64];
if (hours) {
std::snprintf(time_str, sizeof(time_str), "%zu hours %zu minutes remaining", hours, minutes);
std::snprintf(time_str, sizeof(time_str), "%zu hours %zu minutes remaining"_i18n.c_str(), hours, minutes);
} else if (minutes) {
std::snprintf(time_str, sizeof(time_str), "%zu minutes %zu seconds remaining", minutes, seconds);
std::snprintf(time_str, sizeof(time_str), "%zu minutes %zu seconds remaining"_i18n.c_str(), minutes, seconds);
} else {
std::snprintf(time_str, sizeof(time_str), "%zu seconds remaining", seconds);
std::snprintf(time_str, sizeof(time_str), "%zu seconds remaining"_i18n.c_str(), seconds);
}
gfx::drawTextArgs(vg, center_x, prog_bar.y + prog_bar.h + 30, 18, NVG_ALIGN_CENTER | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "%s (%s)", time_str, speed_str);