From 69f00644ec188e66f4dae469f09c84e60b548df9 Mon Sep 17 00:00:00 2001 From: Vexorion Real <81510862+VexorionReal@users.noreply.github.com> Date: Wed, 28 Feb 2024 11:14:11 +0100 Subject: [PATCH 1/4] New localization strings (WIP) --- chrome beta/scripts/emerald.js | 294 +++++++++++++++++++++------------ 1 file changed, 192 insertions(+), 102 deletions(-) diff --git a/chrome beta/scripts/emerald.js b/chrome beta/scripts/emerald.js index 3618f3a..db0648f 100644 --- a/chrome beta/scripts/emerald.js +++ b/chrome beta/scripts/emerald.js @@ -13,26 +13,116 @@ class EmeraldLanguageModel { upNext; constructor(lang) { if (lang == "pl-PL") { + this.about = "Informacje"; + this.addToBtn = "Dodaj do"; + this.addToPlaylist = "Dodaj do playlisty"; + this.analytics = "Analityka"; this.autoplay = "Autoodtwarzanie"; + this.byline = "autor: "; + this.category = "Kategoria"; + this.createPlaylist = "Utwórz"; + this.creatorStudio = "Studio twórców"; + this.dislikes = " głosów na nie"; + this.enterPlaylistTitle = "Podaj nazwę playlisty..."; + this.license = "Licencja"; + this.like = "Fajne"; + this.likes = " głosów na tak,"; + this.moreBtn = "Więcej"; + this.noDescription = "Opis niedostępny."; + this.onDate = "dnia "; + this.privatePlaylist = "Prywatna"; + this.publicPlaylist = "Publiczna" + this.publishedOn = "Opublikowany "; + this.publishedOnOld = "Opublikowano "; + this.saveBtn = "Zapisz"; + this.shareBtn = "Udostępnij"; + this.showLess = "Pokaż mniej"; + this.showMore = "Pokaż więcej"; + this.standardLicense = "Standardowa licencja YouTube"; this.subscribe = "Subskrybuj"; this.subscribed = "Subskrybujesz"; - this.videos = "Filmów"; + this.tags = "Tagi"; + this.unlistedPlaylist = "Niepubliczna"; this.unsubscribe = "Rezygnuję z subskrypcji"; this.upNext = "Następny"; + this.uploadedBy = "Przesłane przez "; + this.videoManager = "Menedżer filmów"; + this.videos = "Filmy"; + this.views = " wyświetleń"; } else if (lang == "en") { + this.about = "About"; + this.addToBtn = "Add to"; + this.addToPlaylist = "Add to playlist"; + this.analytics = "Analytics"; this.autoplay = "Autoplay"; + this.byline = "by "; + this.createPlaylist = "Create"; + this.creatorStudio = "Creator studio"; + this.dislikes = " dislikes"; + this.enterPlaylistTitle = "Enter playlist title..."; + this.license = "License"; + this.like = "Like"; + this.moreBtn = "More"; + this.noDescription = "No description available."; + this.onDate = "on "; + this.privatePlaylist = "Private"; + this.publicPlaylist = "Public" + this.publishedOn = "Published on "; + this.publishedOnOld = "Published on "; + this.saveBtn = "Save"; + this.shareBtn = "Share"; + this.showLess = "Show less"; + this.showMore = "Show more"; + this.standardLicense = "Standard YouTube License"; this.subscribe = "Subscribe"; this.subscribed = "Subscribed"; - this.videos = "Videos"; + this.tags = "Tags"; + this.unlistedPlaylist = "Unlisted"; this.unsubscribe = "Unsubscribe"; this.upNext = "Up next"; + this.uploadedBy = "Uploaded by "; + this.videoManager = "Video Manager"; + this.videos = "Videos"; + this.views = " views"; + this.category = "Category"; + this.likes = " likes,"; } else { + this.about = "About"; + this.addToBtn = "Add to"; + this.addToPlaylist = "Add to playlist"; + this.analytics = "Analytics"; this.autoplay = "Autoplay"; + this.byline = "by "; + this.createPlaylist = "Create"; + this.creatorStudio = "Creator studio"; + this.dislikes = " dislikes"; + this.enterPlaylistTitle = "Enter playlist title..."; + this.license = "License"; + this.like = "Like"; + this.moreBtn = "More"; + this.noDescription = "No description available."; + this.onDate = "on "; + this.privatePlaylist = "Private"; + this.publicPlaylist = "Public" + this.publishedOn = "Published on "; + this.publishedOnOld = "Published on "; + this.saveBtn = "Save"; + this.shareBtn = "Share"; + this.showLess = "Show less"; + this.showMore = "Show more"; + this.standardLicense = "Standard YouTube License"; this.subscribe = "Subscribe"; this.subscribed = "Subscribed"; - this.videos = "Videos"; + this.tags = "Tags"; + this.unlistedPlaylist = "Unlisted"; this.unsubscribe = "Unsubscribe"; this.upNext = "Up next"; + this.uploadedBy = "Uploaded by "; + this.videoManager = "Video Manager"; + this.videos = "Videos"; + this.views = " views"; + this.category = "Category"; + this.likes = " likes,"; } } } @@ -598,7 +688,7 @@ function WPSidebarEveryLoad(data) { @@ -653,7 +743,7 @@ function WPSidebarEveryLoad(data) { Channel settings
- Creator studio + ${emeraldLanguageModel.creatorStudio}
@@ -664,16 +754,16 @@ function WPSidebarEveryLoad(data) {
-
Category:
+
${emeraldLanguageModel.category}:
-
Tags:
+
${emeraldLanguageModel.tags}:
-
License:
-
Standard YouTube License
+
${emeraldLanguageModel.license}:
+
${emeraldLanguageModel.standardLicense}
@@ -1179,7 +1269,7 @@ function createWatchAbove(wV) { Channel settings
- Creator studio + ${emeraldLanguageModel.creatorStudio}
@@ -1243,7 +1333,7 @@ function createWatchAbove(wV) { Channel settings
- Creator studio + ${emeraldLanguageModel.creatorStudio}
@@ -1292,13 +1382,13 @@ function createWatch4(wV) {
- Public + ${emeraldLanguageModel.publicPlaylist}
- Unlisted + ${emeraldLanguageModel.unlistedPlaylist}
- Private + ${emeraldLanguageModel.privatePlaylist}
@@ -1348,7 +1438,7 @@ function createWatch4(wV) {
???,??? - views + ${emeraldLanguageModel.views}
@@ -1362,7 +1452,7 @@ function createWatch4(wV) {
- Share + ${emeraldLanguageModel.shareBtn}
@@ -1414,7 +1504,7 @@ function createWatch4(wV) {
- Add to playlist + ${emeraldLanguageModel.addToPlaylist}
@@ -1423,14 +1513,14 @@ function createWatch4(wV) {
- +
@@ -1640,7 +1730,7 @@ function createWatch5(wV) {
- Public + ${emeraldLanguageModel.publicPlaylist}
Unlisted @@ -1665,7 +1755,7 @@ function createWatch5(wV) {
- Like + ${emeraldLanguageModel.like}
@@ -1685,12 +1775,12 @@ function createWatch5(wV) {
- Add to playlist + ${emeraldLanguageModel.addToPlaylist}
@@ -1752,14 +1842,14 @@ function createWatch5(wV) {