Add untracked text for translation (#833)

This commit is contained in:
Angel Marfil 2024-05-08 13:09:15 -05:00 committed by GitHub
parent 23f368963b
commit 4b7026b07f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 6 deletions

View file

@ -1180,7 +1180,7 @@ class EmulatorJS {
if (!popup) {
popup = this.createPopup("", {});
const button = this.createElement("button");
button.innerText = "Click to resume Emulator";
button.innerText = this.localization("Click to resume Emulator");
button.classList.add("ejs_menu_button");
button.style.width = "25%";
button.style.height = "25%";
@ -1209,7 +1209,7 @@ class EmulatorJS {
let counter = 0;
this.elements.statePopupPanel = this.createPopup("", {}, true);
this.elements.statePopupPanel.innerText = "Drop save state here to load";
this.elements.statePopupPanel.innerText = this.localization("Drop save state here to load");
this.elements.statePopupPanel.style["text-align"] = "center";
this.elements.statePopupPanel.style["font-size"] = "28px";
@ -1465,7 +1465,7 @@ class EmulatorJS {
})
//Todo - Core specific licenses, contributors.
retroarch.innerText = "This project is powered by ";
retroarch.innerText = this.localization("This project is powered by") + " ";
const a = this.createElement("a");
a.href = "https://github.com/libretro/RetroArch";
a.target = "_blank";
@ -1474,7 +1474,7 @@ class EmulatorJS {
const licenseLink = this.createElement("a");
licenseLink.target = "_blank";
licenseLink.href = "https://github.com/libretro/RetroArch/blob/master/COPYING";
licenseLink.innerText = "View the RetroArch license here.";
licenseLink.innerText = this.localization("View the RetroArch license here");
a.appendChild(this.createElement("br"));
a.appendChild(licenseLink);
@ -5125,7 +5125,7 @@ class EmulatorJS {
const msg = this.createElement("div");
msg.style["padding-top"] = "0px";
msg.style["padding-bottom"] = "15px";
msg.innerText = "Note that some cheats require a restart to disable.";
msg.innerText = this.localization("Note that some cheats require a restart to disable");
body.appendChild(msg);
const rows = this.createElement("div");
body.appendChild(rows);

View file

@ -39,11 +39,15 @@
"Keyboard": "-Keyboard",
"Set": "-Set",
"Add Cheat": "-Add Cheat",
"Note that some cheats require a restart to disable": "-Note that some cheats require a restart to disable",
"Create a Room": "-Create a Room",
"Rooms": "-Rooms",
"Start Game": "-Start Game",
"Click to resume Emulator": "-Click to resume Emulator",
"Drop save state here to load": "-Drop save state here to load",
"Loading...": "-Loading...",
"Download Game Core": "-Download Game Core",
"Outdated graphics driver": "-Outdated graphics driver",
"Decompress Game Core": "-Decompress Game Core",
"Download Game Data": "-Download Game Data",
"Decompress Game Data": "-Decompress Game Data",
@ -117,6 +121,8 @@
"EmulatorJS": "-EmulatorJS",
"Clear All": "-Clear All",
"Take Screenshot": "-Take Screenshot",
"Start screen recording": "-Start screen recording",
"Stop screen recording": "-Stop screen recording",
"Quick Save": "-Quick Save",
"Quick Load": "-Quick Load",
"REWIND": "-REWIND",
@ -127,6 +133,8 @@
"Home": "-Home",
"EmulatorJS License": "-EmulatorJS License",
"RetroArch License": "-RetroArch License",
"This project is powered by": "-This project is powered by",
"View the RetroArch license here": "-View the RetroArch license here",
"SLOW MOTION": "-SLOW MOTION",
"A": "-A",
"B": "-B",
@ -299,4 +307,4 @@
"DPAD_DOWN": "-DPAD_DOWN",
"DPAD_LEFT": "-DPAD_LEFT",
"DPAD_RIGHT": "-DPAD_RIGHT"
}
}