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