From 00f024a3fce6babbe8f2170abae8824071bc1f62 Mon Sep 17 00:00:00 2001 From: pixelcode Date: Wed, 29 Jul 2020 02:10:40 +0200 Subject: added German translation --- _locales/de/messages.json | 98 +++++++++++++++++++++++++++++++++++++++++++++++ _locales/de/store.md | 36 +++++++++++++++++ 2 files changed, 134 insertions(+) create mode 100644 _locales/de/messages.json create mode 100644 _locales/de/store.md (limited to '_locales/de') diff --git a/_locales/de/messages.json b/_locales/de/messages.json new file mode 100644 index 00000000..52391a91 --- /dev/null +++ b/_locales/de/messages.json @@ -0,0 +1,98 @@ +{ + "extensionName": { + "message": "Privacy Redirect", + "description": "Name of the extension." + }, + "extensionDescription": { + "message": "Leitet Anfragen von Twitter, YouTube, Instagram & Google Maps auf datenschutzfreundliche Alternativen weiter.", + "description": "Description of the extension." + }, + "nitterInstance": { + "message": "Nitter-Instanz", + "description": "Label for Nitter instance field option (options)." + }, + "invidiousInstance": { + "message": "Invidious-Instanz", + "description": "Label for Invidious instance field option (options)." + }, + "bibliogramInstance": { + "message": "Bibliogram-Instanz", + "description": "Label for Bibliogram instance field option (options)." + }, + "osmInstance": { + "message": "OpenStreetMap-Instanz", + "description": "Label for OSM instance field option (options)." + }, + "disableNitter": { + "message": "Nitter-Weiterleitungen", + "description": "Label for enable/disable Nitter redirects option (options & pop-up)." + }, + "disableInvidious": { + "message": "Invidious-Weiterleitungen", + "description": "Label for enable/disable Invidious redirects option (options & pop-up)." + }, + "disableBibliogram": { + "message": "Bibliogram-Weiterleitungen", + "description": "Label for enable/disable Bibliogram redirects option (options & pop-up)." + }, + "disableOsm": { + "message": "OpenStreetMap-Weiterleitungen", + "description": "Label for enable/disable OSM redirects option (options & pop-up)." + }, + "alwaysProxy": { + "message": "Videos immer durch Invidious-Proxy leiten", + "description": "Label for 'Always proxy videos through Invidious' option (options)." + }, + "onlyEmbeddedVideo": { + "message": "Nur eingebettete Videos zu Invidious weiterleiten", + "description": "Label for 'Only redirect embedded video to Invidious' option (options)." + }, + "videoQuality": { + "message": "Videoqualität bei Invidious", + "description": "Label for 'Invidious Video Quality' option (options)." + }, + "removeTwitterSW": { + "message": "Twitter-Serviceworker proaktiv entfernen", + "description": "Label for 'Proactively remove Twitter service worker' option (options)." + }, + "invidiousDarkMode": { + "message": "Dunkler Modus auf Invidious immer anschalten", + "description": "Label for 'Invidious dark mode always on' option (options)." + }, + "persistInvidiousPrefs": { + "message": "Invidious-Einstellungen dauerhaft beibehalten (als Cookie)", + "description": "Label for 'Persist Invidious preferences (as cookie)' option (options)." + }, + "generalTab": { + "message": "Allgmein", + "description": "General tab (options)." + }, + "advancedTab": { + "message": "Erweitert", + "description": "Advanced tab (options)." + }, + "exceptionsTab": { + "message": "Ausnahmen", + "description": "Exceptions tab (options)." + }, + "exceptionsDescription": { + "message": "

Gib eine URL oder einen regulären Ausdruck (Regex) ein, die/der von Weiterleitungen ausgeschlossen werden soll.

Alle Anfragen für oder ausgehend von einer URL, die auf die Ausnahme zutrifft, werden von Weiterleitungen ausgeschlossen.

Hinweis – Unterstützt reguläre JavaScript-Ausdrücke (Regex), mit Ausnahme der einschließenden Schrägstriche.

", + "description": "A description of the 'Exceptions' feature (options)." + }, + "addException": { + "message": "Ausnahme hinzufügen", + "description": "'Add Exceptions' button (options)." + }, + "moreOptions": { + "message": "Weitere Optionen", + "description": "More Options button (pop-up)." + }, + "privacy": { + "message": "Datenschutz", + "description": "Extension title - Privacy (pop-up)." + }, + "redirect": { + "message": "Weiterleiten", + "description": "Extension title - Redirect (pop-up)." + } +} \ No newline at end of file diff --git a/_locales/de/store.md b/_locales/de/store.md new file mode 100644 index 00000000..7dc315a1 --- /dev/null +++ b/_locales/de/store.md @@ -0,0 +1,36 @@ +# Extension Store (AMO & Chrome Web Store) Listing + +## Summary: +``` +Eine einfache Browser-Erweiterung, die Anfragen an Twitter, YouTube, Instagram & Google Maps zu datenschutzfreundlichen Alternativen weiterleitet. +``` +## Description: +``` +Leitet Anfragen an Twitter, YouTube, Instagram & Google Maps zu datenschutzfreundlichen Alternativen weiter – Nitter, Invidious, Bibliogram, & OpenStreetMap. + +Erlaubt das Einstellen benutzerdefinierter Instanzen, das Ein- und Ausschalten aller Weiterleitungen und vieles mehr. + +★ Weitere Infos: ℹ️ + + +Der Code dieser Browser-Erweiterung ist verfügbar auf Github. + +★ Spenden: 👨🏻‍💻 +Wenn Ihnen diese Erweiterung gefällt und Sie finanziell in der Lage sind, erwägen Sie bitte mir auf BuyMeACoffee einen Kaffee zu kaufen ☕️ ️ um Ihre Wertschätzung zu zeigen und die Fortsetzung des Projekts zu unterstützen. + +★ Was ist neu in dieser Version (v1.1.36) 🆕 + + +★ Berechtigungen: ℹ️ + +``` -- cgit 1.4.1 From d9b38e8e27d7e4c70322eb869765c78c369d11a0 Mon Sep 17 00:00:00 2001 From: pixelcode Date: Wed, 29 Jul 2020 02:22:11 +0200 Subject: issue with German title, English one is better --- _locales/de/messages.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '_locales/de') diff --git a/_locales/de/messages.json b/_locales/de/messages.json index 52391a91..b36e8328 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -88,11 +88,11 @@ "description": "More Options button (pop-up)." }, "privacy": { - "message": "Datenschutz", + "message": "Privacy", "description": "Extension title - Privacy (pop-up)." }, "redirect": { - "message": "Weiterleiten", + "message": "Redirect", "description": "Extension title - Redirect (pop-up)." } } \ No newline at end of file -- cgit 1.4.1 From b19b7fce9f743c0afb3550e865388c0c5dba052c Mon Sep 17 00:00:00 2001 From: pixelcode Date: Wed, 29 Jul 2020 02:26:42 +0200 Subject: fixed little grammatical mistake German translation --- _locales/de/messages.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_locales/de') diff --git a/_locales/de/messages.json b/_locales/de/messages.json index b36e8328..2ad3bdad 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -56,7 +56,7 @@ "description": "Label for 'Proactively remove Twitter service worker' option (options)." }, "invidiousDarkMode": { - "message": "Dunkler Modus auf Invidious immer anschalten", + "message": "Dunklen Modus auf Invidious immer anschalten", "description": "Label for 'Invidious dark mode always on' option (options)." }, "persistInvidiousPrefs": { -- cgit 1.4.1 From 28c9ee8a0d21d6893270b3164845a27fb9aeebbd Mon Sep 17 00:00:00 2001 From: SimonBrazell Date: Thu, 30 Jul 2020 22:40:36 +1000 Subject: Closes #82, closes #84. --- _locales/de/messages.json | 20 ++++++++++++--- _locales/en/messages.json | 20 ++++++++++++--- _locales/fr/messages.json | 18 ++++++++++--- _locales/ru/messages.json | 16 ++++++++++-- assets/javascript/localise.js | 24 +++++++++--------- manifest.json | 2 +- pages/options/options.html | 59 ++++++++++++++++++++----------------------- pages/popup/popup.html | 18 +++++++------ pages/popup/popup.js | 2 +- 9 files changed, 113 insertions(+), 66 deletions(-) (limited to '_locales/de') diff --git a/_locales/de/messages.json b/_locales/de/messages.json index 2ad3bdad..431ed1d4 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -75,9 +75,17 @@ "message": "Ausnahmen", "description": "Exceptions tab (options)." }, - "exceptionsDescription": { - "message": "

Gib eine URL oder einen regulären Ausdruck (Regex) ein, die/der von Weiterleitungen ausgeschlossen werden soll.

Alle Anfragen für oder ausgehend von einer URL, die auf die Ausnahme zutrifft, werden von Weiterleitungen ausgeschlossen.

Hinweis – Unterstützt reguläre JavaScript-Ausdrücke (Regex), mit Ausnahme der einschließenden Schrägstriche.

", - "description": "A description of the 'Exceptions' feature (options)." + "exceptionsDescriptionP1": { + "message": "Gib eine URL oder einen regulären Ausdruck (Regex) ein, die/der von Weiterleitungen ausgeschlossen werden soll.", + "description": "A description of the 'Exceptions' feature paragraph 1 (options)." + }, + "exceptionsDescriptionP2": { + "message": "Alle Anfragen für oder ausgehend von einer URL, die auf die Ausnahme zutrifft, werden von Weiterleitungen ausgeschlossen.", + "description": "A description of the 'Exceptions' feature paragraph 2 (options)." + }, + "exceptionsDescriptionP3": { + "message": "Hinweis – Unterstützt reguläre JavaScript-Ausdrücke (Regex), mit Ausnahme der einschließenden Schrägstriche.", + "description": "A description of the 'Exceptions' feature paragraph 3 (options)." }, "addException": { "message": "Ausnahme hinzufügen", @@ -94,5 +102,9 @@ "redirect": { "message": "Redirect", "description": "Extension title - Redirect (pop-up)." + }, + "version": { + "message": "Version", + "description": "Version" } -} \ No newline at end of file +} diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 2a34b8b7..2e106a7c 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -75,9 +75,17 @@ "message": "Exceptions", "description": "Exceptions tab (options)." }, - "exceptionsDescription": { - "message": "

Enter a URL or Regular Expression to be excluded from redirects.

All requests for or initiating from a URL that matches the exception will be excluded from redirects.

Note - Supports JavaScript regular expressions, excluding the enclosing forward slashes.

", - "description": "A description of the 'Exceptions' feature (options)." + "exceptionsDescriptionP1": { + "message": "Enter a URL or Regular Expression to be excluded from redirects.", + "description": "A description of the 'Exceptions' feature paragraph 1 (options)." + }, + "exceptionsDescriptionP2": { + "message": "All requests for or initiating from a URL that matches the exception will be excluded from redirects.", + "description": "A description of the 'Exceptions' feature paragraph 2 (options)." + }, + "exceptionsDescriptionP3": { + "message": "Note - Supports JavaScript regular expressions, excluding the enclosing forward slashes.", + "description": "A description of the 'Exceptions' feature paragraph 3 (options)." }, "addException": { "message": "Add Exception", @@ -94,5 +102,9 @@ "redirect": { "message": "Redirect", "description": "Extension title - Redirect (pop-up)." + }, + "version": { + "message": "Version", + "description": "Version" } -} \ No newline at end of file +} diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index ef172d18..7d57c8b4 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -75,8 +75,16 @@ "message": "Exceptions", "description": "Onglet des Exceptions dans les options." }, - "exceptionsDescription": { - "message": "

Entrez une adresse URL ou une expression régulière qui sera exclue des redirections.

All requests for or initiating from a URL that matches the exception will be excluded from redirects.

Note - Supports JavaScript regular expressions, excluding the enclosing forward slashes.

", + "exceptionsDescriptionP1": { + "message": "Entrez une adresse URL ou une expression régulière qui sera exclue des redirections.", + "description": "Description pour la rubrique 'Exceptions' dans les options." + }, + "exceptionsDescriptionP2": { + "message": "All requests for or initiating from a URL that matches the exception will be excluded from redirects.", + "description": "Description pour la rubrique 'Exceptions' dans les options." + }, + "exceptionsDescriptionP3": { + "message": "Note - Supports JavaScript regular expressions, excluding the enclosing forward slashes.", "description": "Description pour la rubrique 'Exceptions' dans les options." }, "addException": { @@ -94,5 +102,9 @@ "redirect": { "message": "Redirect", "description": "Titre du module complémentaire - Redirection (pop-up)." + }, + "version": { + "message": "Version", + "description": "Version" } -} \ No newline at end of file +} diff --git a/_locales/ru/messages.json b/_locales/ru/messages.json index 0b7d996d..d46e3fb4 100644 --- a/_locales/ru/messages.json +++ b/_locales/ru/messages.json @@ -91,8 +91,16 @@ "message": "Исключения", "description": "Вкладка 'Исключения' (в настройках)." }, - "exceptionsDescription": { - "message": "

Введите URL или регулярное выражение для исключения из перенаправлений.

Все запросы на URL, совпадающие с исключениями, или инициированные с них будут исключены из перенаправлений.

Примечание: Поддерживает регулярные выражения JavaScript, кроме закрывающих обратных слэшей.

", + "exceptionsDescriptionP1": { + "message": "Введите URL или регулярное выражение для исключения из перенаправлений.", + "description": "Описание функции 'Исключения' (в настройках)." + }, + "exceptionsDescriptionP2": { + "message": "Все запросы на URL, совпадающие с исключениями, или инициированные с них будут исключены из перенаправлений.", + "description": "Описание функции 'Исключения' (в настройках)." + }, + "exceptionsDescriptionP3": { + "message": "Примечание: Поддерживает регулярные выражения JavaScript, кроме закрывающих обратных слэшей.", "description": "Описание функции 'Исключения' (в настройках)." }, "addException": { @@ -110,5 +118,9 @@ "redirect": { "message": "Redirect", "description": "Название расширения - Redirect (во всплывающем окне)." + }, + "version": { + "message": "Version", + "description": "Version" } } diff --git a/assets/javascript/localise.js b/assets/javascript/localise.js index e408025d..cbe5c191 100644 --- a/assets/javascript/localise.js +++ b/assets/javascript/localise.js @@ -1,19 +1,19 @@ window.browser = window.browser || window.chrome; -function localizeHtmlPage() { - // Localize using __MSG_***__ data tags - var data = document.querySelectorAll('[data-localize]'); +function localisePage() { + var data = document.querySelectorAll("[data-localise]"); - for (var i in data) if (data.hasOwnProperty(i)) { - var obj = data[i]; - var tag = obj.getAttribute('data-localize').toString(); + for (var i in data) + if (data.hasOwnProperty(i)) { + var obj = data[i]; + var tag = obj.getAttribute("data-localise").toString(); - var msg = tag.replace(/__MSG_(\w+)__/g, function (_match, v1) { - return v1 ? browser.i18n.getMessage(v1) : null; - }); + var msg = tag.replace(/__MSG_(\w+)__/g, function (_match, v1) { + return v1 ? browser.i18n.getMessage(v1) : null; + }); - if (msg && msg !== tag) obj.innerHTML = msg; - } + if (msg && msg !== tag) obj.textContent = msg; + } } -localizeHtmlPage(); \ No newline at end of file +localisePage(); diff --git a/manifest.json b/manifest.json index 1e408456..d49fc9b9 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_extensionName__", "description": "__MSG_extensionDescription__", - "version": "1.1.37", + "version": "1.1.38", "manifest_version": 2, "background": { "scripts": ["background.js"], diff --git a/pages/options/options.html b/pages/options/options.html index f5947bc9..0f38ff0a 100644 --- a/pages/options/options.html +++ b/pages/options/options.html @@ -13,21 +13,21 @@ @@ -39,7 +39,7 @@ -

Nitter Redirects

+

Nitter Redirects

-

+

Invidious Redirects

@@ -81,7 +81,7 @@ -

+

Bibliogram Redirects

@@ -103,7 +103,7 @@ -

+

OpenStreetMap Redirects

@@ -121,7 +121,7 @@
-

Nitter Instance

+

Nitter Instance

-

Invidious Instance

+

Invidious Instance

-

Bibliogram Instance

+

Bibliogram Instance

-

OpenStreetMap Instance

+

OpenStreetMap Instance

-

Theme

+

Theme

@@ -238,7 +238,7 @@ -

+

Invidious dark mode always on

@@ -257,7 +257,7 @@
-

Invidious Volume

+

Invidious Volume

-

+

Invidious Player Style

-

+

Invidious Subtitles - language codes (comma-separated)

-

+

Invidious automatically play video on load

@@ -316,7 +316,7 @@ -

+

Persist Invidious preferences (as cookie)

@@ -342,7 +342,7 @@ -

+

Proactively remove Twitter service worker

@@ -362,19 +362,16 @@
-
-

+

+

Enter a URL or Regular Expression to be excluded from redirects.

-

+

All requests for or initiating from a URL that matches your exception will be excluded from redirects.

-

- Note - Supports JavaScript regular expressions, excluding the +

+ Note - Supports JavaScript regular expressions, excluding the enclosing forward slashes.

@@ -383,7 +380,7 @@ -

Add Exception

+

Add Exception

diff --git a/pages/popup/popup.html b/pages/popup/popup.html index 9fa324a0..e06159a5 100644 --- a/pages/popup/popup.html +++ b/pages/popup/popup.html @@ -15,12 +15,14 @@ alt="Privacy Redirect logo" />

- Privacy
Redirect + Privacy
Redirect

- Version:  + Version
@@ -29,7 +31,7 @@ -

Nitter Redirects

+

Nitter Redirects

-

+

Invidious Redirects

@@ -73,7 +75,7 @@ -

+

Bibliogram Redirects

@@ -96,7 +98,7 @@ -

+

OpenStreetMap Redirects

@@ -118,7 +120,7 @@