New strings added and update ko, ja, se(https://github.com/ITotalJustice/sphaira/pull/36), es(https://github.com/ITotalJustice/sphaira/pull/38), zh(https://github.com/ITotalJustice/sphaira/pull/42), fr(https://github.com/ITotalJustice/sphaira/pull/45) translations. (#44)
Co-authored-by: Yorunokyujitsu <seonmini1315@gamil.com>
This commit is contained in:
@@ -107,12 +107,12 @@ void on_applet_operation_mode(App* app) {
|
||||
switch (appletGetOperationMode()) {
|
||||
case AppletOperationMode_Handheld:
|
||||
log_write("[APPLET] AppletOperationMode_Handheld\n");
|
||||
App::Notify("Switch-Handheld!");
|
||||
App::Notify("Switch-Handheld!"_i18n);
|
||||
break;
|
||||
|
||||
case AppletOperationMode_Console:
|
||||
log_write("[APPLET] AppletOperationMode_Console\n");
|
||||
App::Notify("Switch-Docked!");
|
||||
App::Notify("Switch-Docked!"_i18n);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "ui/error_box.hpp"
|
||||
#include "ui/nvg_util.hpp"
|
||||
#include "app.hpp"
|
||||
#include "i18n.hpp"
|
||||
|
||||
namespace sphaira::ui {
|
||||
namespace {
|
||||
@@ -1147,10 +1148,10 @@ auto ErrorBox::Draw(NVGcontext* vg, Theme* theme) -> void {
|
||||
gfx::drawTextArgs(vg, center_x, 180, 63, NVG_ALIGN_CENTER | NVG_ALIGN_TOP, gfx::Colour::RED, "\uE140");
|
||||
gfx::drawTextArgs(vg, center_x, 270, 25, NVG_ALIGN_CENTER | NVG_ALIGN_TOP, theme->elements[ThemeEntryID_TEXT].colour, "Error code: 0x%X Module: %s Description: %s", m_code, m_module_str.c_str(), m_description_str.c_str());
|
||||
gfx::drawTextArgs(vg, center_x, 325, 23, NVG_ALIGN_CENTER | NVG_ALIGN_TOP, theme->elements[ThemeEntryID_TEXT].colour, "%s", m_message.c_str());
|
||||
gfx::drawTextArgs(vg, center_x, 380, 20, NVG_ALIGN_CENTER | NVG_ALIGN_TOP, gfx::Colour::SILVER, "If this message appears repeatedly, please open an issue.");
|
||||
gfx::drawTextArgs(vg, center_x, 380, 20, NVG_ALIGN_CENTER | NVG_ALIGN_TOP, gfx::Colour::SILVER, "If this message appears repeatedly, please open an issue."_i18n.c_str());
|
||||
gfx::drawTextArgs(vg, center_x, 415, 20, NVG_ALIGN_CENTER | NVG_ALIGN_TOP, gfx::Colour::SILVER, "https://github.com/ITotalJustice/sphaira/issues");
|
||||
gfx::drawRectOutline(vg, 4.f, theme->elements[ThemeEntryID_SELECTED_OVERLAY].colour, box, theme->elements[ThemeEntryID_SELECTED].colour);
|
||||
gfx::drawTextArgs(vg, center_x, box.y + box.h/2, 23, NVG_ALIGN_CENTER | NVG_ALIGN_MIDDLE, gfx::Colour::WHITE, "OK");
|
||||
gfx::drawTextArgs(vg, center_x, box.y + box.h/2, 23, NVG_ALIGN_CENTER | NVG_ALIGN_MIDDLE, gfx::Colour::WHITE, "OK"_i18n.c_str());
|
||||
}
|
||||
|
||||
} // namespace sphaira::ui
|
||||
|
||||
@@ -215,7 +215,7 @@ auto GetRomIcon(ProgressBox* pbox, std::string filename, std::string extension,
|
||||
log_write("starting image convert on: %s\n", ra_thumbnail_path.c_str());
|
||||
// try and find icon locally
|
||||
if (!pbox->ShouldExit()) {
|
||||
pbox->NewTransfer("Trying to load " + ra_thumbnail_path);
|
||||
pbox->NewTransfer("Trying to load "_i18n + ra_thumbnail_path);
|
||||
std::vector<u8> image_file;
|
||||
if (R_SUCCEEDED(fs::FsNativeSd().read_entire_file(ra_thumbnail_path.c_str(), image_file))) {
|
||||
return image_file;
|
||||
@@ -839,7 +839,7 @@ void Menu::InstallForwarder() {
|
||||
items.emplace_back(p.name);
|
||||
}
|
||||
|
||||
const auto title = std::string{"Select launcher for: "} + GetEntry().name;
|
||||
const auto title = std::string{"Select launcher for: "_i18n} + GetEntry().name;
|
||||
App::Push(std::make_shared<PopupList>(
|
||||
title, items, [this, assoc_list](auto op_index){
|
||||
if (op_index) {
|
||||
|
||||
@@ -112,7 +112,7 @@ Menu::Menu() : MenuBase{"Homebrew"_i18n} {
|
||||
#endif
|
||||
|
||||
options->Add(std::make_shared<SidebarEntryCallback>("Delete"_i18n, [this](){
|
||||
const auto buf = "Are you sure you want to delete " + m_entries[m_index].path.toString();
|
||||
const auto buf = "Are you sure you want to delete "_i18n + m_entries[m_index].path.toString() + "?";
|
||||
App::Push(std::make_shared<OptionBox>(
|
||||
buf,
|
||||
"Back"_i18n, "Delete"_i18n, 1, [this](auto op_index){
|
||||
|
||||
Reference in New Issue
Block a user