From 0beb4e6ba1c7c184c8fd8caf3dfef1664b7ceb8a Mon Sep 17 00:00:00 2001 From: TotalCaesar659 <14265316+TotalCaesar659@users.noreply.github.com> Date: Sun, 12 Jul 2020 19:31:15 +0300 Subject: Add Russian translation --- _locales/ru/messages.json | 114 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 _locales/ru/messages.json (limited to '_locales/ru/messages.json') diff --git a/_locales/ru/messages.json b/_locales/ru/messages.json new file mode 100644 index 00000000..0b7d996d --- /dev/null +++ b/_locales/ru/messages.json @@ -0,0 +1,114 @@ +{ + "extensionName": { + "message": "Privacy Redirect", + "description": "Название расширения." + }, + "extensionDescription": { + "message": "Перенаправляет запросы к Twitter, YouTube, Instagram и Google Maps на альтернативные сервисы, дружелюбные к приватности.", + "description": "Описание расширения." + }, + "nitterInstance": { + "message": "Сервис Nitter", + "description": "Название настройки (в настройках) поля сервиса Nitter." + }, + "invidiousInstance": { + "message": "Сервис Invidious", + "description": "Название настройки (в настройках) поля сервиса Invidious." + }, + "bibliogramInstance": { + "message": "Сервис Bibliogram", + "description": "Название настройки (в настройках) поля сервиса Bibliogram." + }, + "osmInstance": { + "message": "Сервис OpenStreetMap", + "description": "Название настройки (в настройках) поля сервиса OSM." + }, + "disableNitter": { + "message": "Перенаправление на Nitter", + "description": "Название настройки для включения/выключения перенаправления на Nitter (в настройках и всплывающем окне)." + }, + "disableInvidious": { + "message": "Перенаправление на Invidious", + "description": "Название настройки для включения/выключения перенаправления на Invidious redirects option (в настройках и всплывающем окне)." + }, + "disableBibliogram": { + "message": "Перенаправление на Bibliogram", + "description": "Название настройки для включения/выключения перенаправления на Bibliogram (в настройках и всплывающем окне)." + }, + "disableOsm": { + "message": "Перенаправление на OpenStreetMap", + "description": "Название настройки для включения/выключения перенаправления на OSM (в настройках и всплывающем окне)." + }, + "alwaysProxy": { + "message": "Всегда проксировать видео через Invidious", + "description": "Название настройки для 'Всегда проксировать видео через Invidious' (в настройках)." + }, + "onlyEmbeddedVideo": { + "message": "Перенаправлять только встроенные видео на Invidious", + "description": "Название настройки для 'Перенаправлять только встроенные видео на Invidious' (в настройках)." + }, + "videoQuality": { + "message": "Качество видео Invidious", + "description": "Название настройки для 'Качество видео Invidious' (в настройках)." + }, + "removeTwitterSW": { + "message": "Проактивно удалять service worker для Twitter", + "description": "Название настройки для 'Проактивно удалять service worker для Twitter' (в настройках)." + }, + "invidiousDarkMode": { + "message": "Всегда включать темный режим Invidious", + "description": "Название настройки для 'Всегда включать темный режим Invidious' (в настройках)." + }, + "invidiousVolume": { + "message": "Громкость Invidious", + "description": "Название настройки для 'Громкость Invidious' (в настройках)." + }, + "invidiousPlayerStyle": { + "message": "Стиль плеера Invidious", + "description": "Название настройки для 'Стиль плеера Invidious' (в настройках)." + }, + "invidiousSubtitles": { + "message": "Субтитры Invidious - коды языков (разделяются запятой)", + "description": "Название настройки для 'Субтитры Invidious - коды языков (разделяются запятой)' (в настройках)." + }, + "invidiousAutoplay": { + "message": "Автоматически воспроизводить видео Invidious при загрузке", + "description": "Название настройки для 'Автоматически воспроизводить видео Invidious при загрузке' (в настройках)." + }, + "persistInvidiousPrefs": { + "message": "Сохранять настройки Invidious (в файле cookie)", + "description": "Название настройки для 'Сохранять настройки Invidious (в файле cookie)' (в настройках)." + }, + "generalTab": { + "message": "Общие", + "description": "Вкладка 'Общие' (в настройках)." + }, + "advancedTab": { + "message": "Дополнительно", + "description": "Вкладка 'Дополнительно' (в настройках)." + }, + "exceptionsTab": { + "message": "Исключения", + "description": "Вкладка 'Исключения' (в настройках)." + }, + "exceptionsDescription": { + "message": "
Введите URL или регулярное выражение для исключения из перенаправлений.
Все запросы на URL, совпадающие с исключениями, или инициированные с них будут исключены из перенаправлений.
Примечание: Поддерживает регулярные выражения JavaScript, кроме закрывающих обратных слэшей.
", + "description": "Описание функции 'Исключения' (в настройках)." + }, + "addException": { + "message": "Добавить исключение", + "description": "Кнопка 'Добавить исключения' (в настройках)." + }, + "moreOptions": { + "message": "Другие настройки", + "description": "Кнопка 'Другие настройки' (во всплывающем окне)." + }, + "privacy": { + "message": "Privacy", + "description": "Название расширения - Privacy (во всплывающем окне)." + }, + "redirect": { + "message": "Redirect", + "description": "Название расширения - Redirect (во всплывающем окне)." + } +} -- cgit 1.4.1 From 28c9ee8a0d21d6893270b3164845a27fb9aeebbd Mon Sep 17 00:00:00 2001 From: SimonBrazellGib 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 @@