From 4b7026b07fceee1a44f4d81c98e92fb9b1448aac Mon Sep 17 00:00:00 2001 From: Angel Marfil <59626670+angelmarfil@users.noreply.github.com> Date: Wed, 8 May 2024 13:09:15 -0500 Subject: [PATCH] Add untracked text for translation (#833) --- data/emulator.js | 10 +++++----- data/localization/en.json | 10 +++++++++- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/data/emulator.js b/data/emulator.js index 231f5ff..1847e29 100644 --- a/data/emulator.js +++ b/data/emulator.js @@ -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); diff --git a/data/localization/en.json b/data/localization/en.json index da9ff0b..50333f5 100644 --- a/data/localization/en.json +++ b/data/localization/en.json @@ -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" -} +} \ No newline at end of file