Skip to content

Commit

Permalink
Add German and French translations
Browse files Browse the repository at this point in the history
  • Loading branch information
XorTroll committed Dec 23, 2019
1 parent 92b99ac commit 1e14004
Show file tree
Hide file tree
Showing 11 changed files with 178 additions and 26 deletions.
27 changes: 26 additions & 1 deletion Goldleaf/RomFs/Strings/Main/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -376,5 +376,30 @@
"Das ausstehende Update wurde gelöscht.",
"Konsolen und Goldleaf Einstellungen",
"Konsolen oder Goldleaf-spezifische Einstellungen",
"Verzeichnis"
"Verzeichnis",
"URL eingeben...",
"Lesezeichen speichern",
"Soll diese Seite als Lesezeichen gespeichert werden?",
"Name des Lesezeichen",
"Einstellungen wurden aktualisiert und gespeichert.",
"Lade amiibos...",
"Status ändern",
"Welcher Status soll eingestellt werden?",
"An",
"An (einmalig)",
"Aus",
"Status für Amiibo Emulation wurde eingestellt.",
"Ein Fehler beim Einstellen des Status trat auf:",
"Amiibo Emulation ist nicht aktiviert.",
"Wähle amiibo",
"Soll dieser virtuelle amiibo ausgewählt werden?",
"Der amiibo wurde erfolgreich ausgewählt.",
"Ein Fehler bei der Auswahl des amiibo trat auf:",
"Amiibo Emulation ist aus.",
"Amiibo Emulation ist an.",
"Amiibo Emulation ist an (einmalig).",
"Ändere Emulationsstatus",
"Ausgewählter amiibo",
"Ein Fehler beim Zugriff auf den amiibo trat auf:",
"emuiibo ist nicht vorhanden oder geladen."
]
27 changes: 26 additions & 1 deletion Goldleaf/RomFs/Strings/Main/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -376,5 +376,30 @@
"The pending update has been deleted.",
"Console and Goldleaf settings",
"Console or Goldleaf-specific settings",
"Directory"
"Directory",
"Enter web page...",
"Save as bookmark",
"Would you like to save this page as a bookmark?",
"Bookmark name",
"Settings were updated and saved.",
"Loading and searching amiibos...",
"Change state",
"Which state would you like to set?",
"On",
"On (once)",
"Off",
"Amiibo emulation state was successfully set.",
"An error ocurred while attempting to set the amiibo emulation state:",
"Amiibo emulation isn't activated.",
"Select amiibo",
"Would you like to select this virtual amiibo?",
"The amiibo was successfully selected.",
"An error ocurred while attempting to select the amiibo:",
"Amiibo emulation is off.",
"Amiibo emulation is on.",
"Amiibo emulation is on (one single use).",
"Change emulation state",
"Selected amiibo",
"An error ocurred attempting to access emuiibo:",
"emuiibo isn't present or loaded."
]
27 changes: 26 additions & 1 deletion Goldleaf/RomFs/Strings/Main/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -376,5 +376,30 @@
"La actualización pendiente ha sido eliminada.",
"Ajustes del sistema y Goldleaf",
"Ajustes específicos del sistema o de Goldleaf",
"Carpeta"
"Carpeta",
"Introduce una página web...",
"Guardar como marcador",
"¿Le gustaría guardar esta página como un marcador?",
"Nombre del marcador",
"Los ajustes fueron actualizados y guardados.",
"Cargando y buscando amiibos...",
"Cambiar estado",
"¿Que estado le gustaría poner?",
"Activado",
"Activado (un sólo uso)",
"Desactivado",
"El estado de la emulación de amiibos ha sido cambiado con éxito.",
"Ha ocurrido un error al intentar cambiar el estado de la emulación de amiibos:",
"La emulación de amiibos no está activada.",
"Seleccionar amiibo",
"¿Le gustaría seleccionar este amiibo virtual?",
"El amiibo virtual ha sido seleccionado con éxito.",
"Ha ocurrido un error al intentar seleccionar el amiibo virtual:",
"La emulación de amiibos está desactivada.",
"La emulación de amiibos está activada.",
"La emulación de amiibos está activada (un sólo uso).",
"Cambiar estado de emulación",
"Amiibo seleccionado",
"Ha ocurrido un error al intentar acceder a emuiibo:",
"emuiibo no está presente o iniciado."
]
27 changes: 26 additions & 1 deletion Goldleaf/RomFs/Strings/Main/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -376,5 +376,30 @@
"La mise à jour en attente a été supprimée.",
"Réglages de la console et de Goldleaf",
"Réglages spécifiques de Goldleaf ou de la console",
"Dossier"
"Dossier",
"Saisissez une page web...",
"Enregistrer en tant que favori.",
"Voulez-vous sauvegarder ceci en tant que favori .",
"Nom du favori",
"Les paramètres ont étés mis à jour et sauvegardés",
"Chargement et recherche des amiibos...",
"Changer l'état",
"Dans quel État voulez-vous le configurer .",
"On",
"On (une fois seulement)",
"Off",
"L'état d'émulation Amiibo a bien été pris en compte !",
"Une erreur est survenue lors du changement d'état de l'émulation amiibo !",
"L'émulation amiibo est désactivée !",
"Choisissez l'amiibo",
"Voulez-vous sélectionner cet amiibo virtuel .",
"L'amiibo a correctement été sélectionné",
"Une erreur est survenue lors de la sélection de l'amiibo !",
"Emulation Amiibo off.",
"Émulation Amiibo on.",
"Emulation Amiibo on (une seule fois).",
"Changer le statut de l'émulation",
"Amiibo sélectionné",
"Une erreur est survenue lors de l'accès à Emuiibo",
"Emuiibo n'est pas lancé ou présent"
]
19 changes: 19 additions & 0 deletions Goldleaf/RomFs/Strings/Modules/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
"Unbekanntes Modul",
"Applet",
"Benutzeraccounts",
"Content manager",
"Location system",
"Prozesse",
"Service API",
"Shell",
"ETickets",
"Batterie",
"Power-Optionen",
"Secure platform",
"Einstellungen",
"USB",
"Dateisystem",
"Goldleaf",
"C (errno)"
]
19 changes: 19 additions & 0 deletions Goldleaf/RomFs/Strings/Modules/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
"Module inconnu",
"Applet",
"Profils utilisateurs",
"Gestion du contenu",
"Système de localisation",
"Processus",
"Service API",
"Commande",
"ETickets",
"Batterie",
"Gestion de l'alimentation",
"Plateforme sécurisée",
"Paramêtres",
"USB",
"Système de fichier",
"Goldleaf",
"C (errno)"
]
2 changes: 1 addition & 1 deletion Goldleaf/Source/fs/fs_FileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ namespace fs

NANDExplorer *GetNANDUserExplorer()
{
if(enus == NULL) enus = new NANDExplorer(Partition::NANDUser);
if(enus == NULL) enus = new NANDExplorer(Partition::SdCard);
return enus;
}

Expand Down
14 changes: 14 additions & 0 deletions Goldleaf/Source/fs/fs_FspExplorers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ namespace fs
return (u64)sz;
}

Service fspusb;

NANDExplorer::NANDExplorer(Partition Part) : StdExplorer()
{
this->part = Part;
Expand Down Expand Up @@ -75,6 +77,18 @@ namespace fs
this->SetNames("gnsystem", "System");
break;
}
case Partition::SdCard:
{
smGetService(&fspusb, "fsp-usb");
u32 in = 0;
serviceDispatchIn(&fspusb, 3, in,
.out_num_objects = 1,
.out_objects = &this->fs.s,
);
fsdevMountDevice("gusbdrv", this->fs);
this->SetNames("gusbdrv", "USB-0");
break;
}
default:
break;
}
Expand Down
30 changes: 15 additions & 15 deletions Goldleaf/Source/ui/ui_EmuiiboLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace ui
{
EmuiiboLayout::EmuiiboLayout()
{
this->infoText = pu::ui::elm::TextBlock::New(150, 320, "Loading and querying amiibos...");
this->infoText = pu::ui::elm::TextBlock::New(150, 320, cfg::strings::Main.GetString(383));
this->infoText->SetHorizontalAlign(pu::ui::elm::HorizontalAlign::Center);
this->infoText->SetColor(global_settings.custom_scheme.Text);
this->optionsMenu = pu::ui::elm::Menu::New(0, 160, 1280, global_settings.custom_scheme.Base, global_settings.menu_item_size, (560 / global_settings.menu_item_size));
Expand All @@ -40,7 +40,7 @@ namespace ui

void EmuiiboLayout::state_Click()
{
auto sopt = global_app->CreateShowDialog("Change state", "Which state would you like to set?", { "On", "On (once)", "Off", "Cancel" }, true);
auto sopt = global_app->CreateShowDialog(cfg::strings::Main.GetString(384), cfg::strings::Main.GetString(385), { cfg::strings::Main.GetString(386), cfg::strings::Main.GetString(387), cfg::strings::Main.GetString(388), cfg::strings::Main.GetString(18) }, true);
if(sopt >= 0)
{
Result rc = 0;
Expand All @@ -60,10 +60,10 @@ namespace ui
}
if(R_SUCCEEDED(rc))
{
global_app->ShowNotification("Amiibo emulation state was successfully set.");
global_app->ShowNotification(cfg::strings::Main.GetString(389));
this->Reload();
}
else HandleResult(rc, "An error ocurred while attempting to set the amiibo emulation state:");
else HandleResult(rc, cfg::strings::Main.GetString(390));
}
}

Expand All @@ -73,20 +73,20 @@ namespace ui
nfp::emu::GetStatus(&status);
if(!nfp::emu::StatusIsOn(status))
{
global_app->ShowNotification("Amiibo emulation isn't activated.");
global_app->ShowNotification(cfg::strings::Main.GetString(391));
return;
}

auto sopt = global_app->CreateShowDialog("Select amiibo", "Would you like to select this virtual amiibo?", { "Yes", "Cancel" }, true);
auto sopt = global_app->CreateShowDialog(cfg::strings::Main.GetString(392), cfg::strings::Main.GetString(393), { cfg::strings::Main.GetString(111), cfg::strings::Main.GetString(18) }, true);
if(sopt == 0)
{
auto rc = nfp::emu::SetCustomAmiibo(path.AsUTF8().c_str());
if(R_SUCCEEDED(rc))
{
global_app->ShowNotification("The amiibo was successfully selected.");
global_app->ShowNotification(cfg::strings::Main.GetString(394));
this->Reload();
}
else HandleResult(rc, "An error ocurred while attempting to select the amiibo:");
else HandleResult(rc, cfg::strings::Main.GetString(395));
}
}

Expand All @@ -99,13 +99,13 @@ namespace ui
switch(status)
{
case nfp::emu::EmulationStatus::Off:
global_app->LoadMenuHead("Amiibo emulation is off.");
global_app->LoadMenuHead(cfg::strings::Main.GetString(396));
break;
case nfp::emu::EmulationStatus::OnForever:
global_app->LoadMenuHead("Amiibo emulation is on.");
global_app->LoadMenuHead(cfg::strings::Main.GetString(397));
break;
case nfp::emu::EmulationStatus::OnOnce:
global_app->LoadMenuHead("Amiibo emulation is on (one single use).");
global_app->LoadMenuHead(cfg::strings::Main.GetString(398));
break;
}
}
Expand Down Expand Up @@ -138,7 +138,7 @@ namespace ui

auto curamiiborc = nfp::emu::GetCurrentAmiibo(curamiibo, FS_MAX_PATH);

auto sitm = pu::ui::elm::MenuItem::New("Change emulation state");
auto sitm = pu::ui::elm::MenuItem::New(cfg::strings::Main.GetString(399));
sitm->SetColor(global_settings.custom_scheme.Text);
sitm->AddOnClick(std::bind(&EmuiiboLayout::state_Click, this));
this->optionsMenu->AddItem(sitm);
Expand All @@ -154,7 +154,7 @@ namespace ui
String name = amiibo.name;
if(R_SUCCEEDED(curamiiborc) && (strcasecmp(curamiibo, amiibopath.AsUTF8().c_str()) == 0))
{
name = "[Selected amiibo] ";
name = "[" + cfg::strings::Main.GetString(400) + "] ";
name += amiibo.name;
}
auto aitm = pu::ui::elm::MenuItem::New(name);
Expand All @@ -172,7 +172,7 @@ namespace ui
}
if(R_FAILED(rc))
{
HandleResult(rc, "An error ocurred attempting to access emuiibo:");
HandleResult(rc, cfg::strings::Main.GetString(401));
global_app->ReturnToMainMenu();
}
else
Expand All @@ -184,7 +184,7 @@ namespace ui
}
else
{
global_app->ShowNotification("emuiibo isn't present or loaded.");
global_app->ShowNotification(cfg::strings::Main.GetString(402));
global_app->ReturnToMainMenu();
}
}
Expand Down
8 changes: 4 additions & 4 deletions Goldleaf/Source/ui/ui_WebBrowserLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace ui
void WebBrowserLayout::Refresh()
{
this->optionsMenu->ClearItems();
auto inputitm = pu::ui::elm::MenuItem::New("Enter web page...");
auto inputitm = pu::ui::elm::MenuItem::New(cfg::strings::Main.GetString(378));
inputitm->SetColor(global_settings.custom_scheme.Text);
inputitm->AddOnClick(std::bind(&WebBrowserLayout::input_Click, this));
this->optionsMenu->AddItem(inputitm);
Expand All @@ -64,16 +64,16 @@ namespace ui
String out = AskForText(cfg::strings::Main.GetString(38), "https://");
LaunchWeb(out.AsUTF8());

auto sopt = global_app->CreateShowDialog("Save bookmark", "Would you like to save this page as a bookmark?", { "Yes", "No" }, true);
auto sopt = global_app->CreateShowDialog(cfg::strings::Main.GetString(379), cfg::strings::Main.GetString(380), { cfg::strings::Main.GetString(111), cfg::strings::Main.GetString(112) }, true);
if(sopt == 0)
{
auto name = AskForText("Bookmark name");
auto name = AskForText(cfg::strings::Main.GetString(381));
cfg::WebBookmark bmk = {};
bmk.name = name.AsUTF8();
bmk.url = out.AsUTF8();
global_settings.bookmarks.push_back(bmk);
global_settings.Save();
global_app->ShowNotification("Settings were updated and saved.");
global_app->ShowNotification(cfg::strings::Main.GetString(382));
}
}

Expand Down
4 changes: 2 additions & 2 deletions to-translate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ Stuff to be translated (new 0.8 translations to be made)
* Main:

Enter web page...
Save bookmark
Save as bookmark
Would you like to save this page as a bookmark?
Bookmark name
Settings were updated and saved.
Loading and querying amiibos...
Loading and searching amiibos...
Change state
Which state would you like to set?
On
Expand Down

0 comments on commit 1e14004

Please sign in to comment.