From 7899afe01fd7069da3b891683e96ae386d342365 Mon Sep 17 00:00:00 2001 From: Thomas Rientjes <synzvato@protonmail.com> Date: Thu, 7 Sep 2017 00:11:16 -0400 Subject: [PATCH] Internationalize recently introduced content --- _locales/bg/messages.json | 16 ++++++++++++++++ _locales/da/messages.json | 16 ++++++++++++++++ _locales/de/messages.json | 16 ++++++++++++++++ _locales/el/messages.json | 16 ++++++++++++++++ _locales/en_GB/messages.json | 16 ++++++++++++++++ _locales/en_US/messages.json | 16 ++++++++++++++++ _locales/es/messages.json | 16 ++++++++++++++++ _locales/fi/messages.json | 16 ++++++++++++++++ _locales/fr/messages.json | 16 ++++++++++++++++ _locales/id/messages.json | 16 ++++++++++++++++ _locales/is/messages.json | 16 ++++++++++++++++ _locales/it/messages.json | 16 ++++++++++++++++ _locales/ja/messages.json | 16 ++++++++++++++++ _locales/nl/messages.json | 16 ++++++++++++++++ _locales/pl/messages.json | 16 ++++++++++++++++ _locales/pt_PT/messages.json | 16 ++++++++++++++++ _locales/ru/messages.json | 16 ++++++++++++++++ _locales/sv/messages.json | 16 ++++++++++++++++ _locales/zh_CN/messages.json | 16 ++++++++++++++++ _locales/zh_TW/messages.json | 16 ++++++++++++++++ pages/options/options.html | 2 +- pages/popup/popup.js | 16 +++++++++++----- 22 files changed, 332 insertions(+), 6 deletions(-) diff --git a/_locales/bg/messages.json b/_locales/bg/messages.json index bc8c1d0..e77b79c 100644 --- a/_locales/bg/messages.json +++ b/_locales/bg/messages.json @@ -3,6 +3,18 @@ "message": "Защитава ви от Ñледене чрез Ñвободна, централизирана доÑтавка на Ñъдържание.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Изключване на защитата за Ñтраницата", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Включване на защита", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "ÐаÑтройки", + "description": "Options title." + }, "blockMissingTitle": { "message": "Блокиране на заÑвки за липÑващи реÑурÑи", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "КоличеÑтво на меÑтни Ð²Ð¼ÑŠÐºÐ²Ð°Ð½Ð¸Ñ Ð½Ð° реÑурÑи от началото на инÑталациÑта.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "ПодробноÑти", + "description": "Advanced label." } } diff --git a/_locales/da/messages.json b/_locales/da/messages.json index e04f40b..1482038 100644 --- a/_locales/da/messages.json +++ b/_locales/da/messages.json @@ -3,6 +3,18 @@ "message": "Beskytter dig imod sporing af \"gratis\", centraliserede indholdsleverandører.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Deaktiver beskyttelse for dette websted", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Aktiver beskyttelse", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "Indstillinger", + "description": "Options title." + }, "blockMissingTitle": { "message": "Bloker anmodninger om manglende ressourcer", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Antal injektioner af lokale ressourcer siden installation.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Avanceret", + "description": "Advanced label." } } diff --git a/_locales/de/messages.json b/_locales/de/messages.json index 2576388..768f1a0 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -3,6 +3,18 @@ "message": "Schützt vor Tracking durch \"gratis\", zentralisiertes, Abliefern von Content.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Schutz für diese Seite deaktivieren", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Schutz aktivieren", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "Einstellungen", + "description": "Options title." + }, "blockMissingTitle": { "message": "Blockiere Anfordern fehlender Inhalte", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Anzahl der lokalen Injektionen von den CDN-Ressourcen seit der Installation.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Erweitert", + "description": "Advanced label." } } diff --git a/_locales/el/messages.json b/_locales/el/messages.json index 3aac9cb..8d957a1 100644 --- a/_locales/el/messages.json +++ b/_locales/el/messages.json @@ -3,6 +3,18 @@ "message": "Î ÏοστατεÏει από παÏακολοÏθηση μÎσω \"δωÏεάν\" διανομής πεÏιεχόμενου.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "ΑπενεÏγοποίηση Ï€Ïοστασίας για αυτή τη σελίδα", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "ΕνεÏγοποίηση Ï€Ïοστασίας", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "ΕπιλογÎÏ‚", + "description": "Options title." + }, "blockMissingTitle": { "message": "Μπλοκ αιτήσεων για ανÏπαÏκτους πόÏους", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Ποσοστό εμβόλιμων τοπικών πόÏων ΔικτÏων ΠαÏοχής ΠεÏιεχομÎνου από την στιγμή της εγκατάστασης.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Για Ï€ÏοχωÏημÎνους", + "description": "Advanced label." } } diff --git a/_locales/en_GB/messages.json b/_locales/en_GB/messages.json index 6c77d19..3b2859a 100644 --- a/_locales/en_GB/messages.json +++ b/_locales/en_GB/messages.json @@ -3,6 +3,18 @@ "message": "Protects you against tracking through \"free\", centralised, content delivery.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Disable protection for this site", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Enable protection", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "Options", + "description": "Options title." + }, "blockMissingTitle": { "message": "Block requests for missing resources", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Amount of local Content Delivery Network resource injections since installation.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Advanced", + "description": "Advanced label." } } diff --git a/_locales/en_US/messages.json b/_locales/en_US/messages.json index 4dc5b01..68bf9cb 100644 --- a/_locales/en_US/messages.json +++ b/_locales/en_US/messages.json @@ -3,6 +3,18 @@ "message": "Protects you against tracking through \"free\", centralized, content delivery.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Disable protection for this site", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Enable protection", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "Options", + "description": "Options title." + }, "blockMissingTitle": { "message": "Block requests for missing resources", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Amount of local Content Delivery Network resource injections since installation.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Advanced", + "description": "Advanced label." } } diff --git a/_locales/es/messages.json b/_locales/es/messages.json index fe64358..d43542b 100644 --- a/_locales/es/messages.json +++ b/_locales/es/messages.json @@ -3,6 +3,18 @@ "message": "Protégete contra rastreo a través de entrega de contenido centralizado \"gratis\".", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Desactivar protección en este sitio", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Activar protección", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "Opciones", + "description": "Options title." + }, "blockMissingTitle": { "message": "Bloquear peticiones de fuentes faltantes", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Cifra de inyecciones de fuentes de Redes de Entrega de Contenido desde instalación.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Avanzado", + "description": "Advanced label." } } diff --git a/_locales/fi/messages.json b/_locales/fi/messages.json index 34a31c4..367e0cb 100644 --- a/_locales/fi/messages.json +++ b/_locales/fi/messages.json @@ -3,6 +3,18 @@ "message": "Suojaa sinua \"ilmaisten\" keskitettyjen sisällön jakeluverkkojen jäljitykseltä.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Poista suojaus tältä sivustolta", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Ota suojaus käyttöön", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "Asetukset", + "description": "Options title." + }, "blockMissingTitle": { "message": "Estä pyynnöt puuttuviin resursseihin", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Korvatut sisältöpyynnöt lisäosan asennuksen jälkeen.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Yksityiskohdat", + "description": "Advanced label." } } diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index 388374d..16533cb 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -3,6 +3,18 @@ "message": "Protège du pistage lié à l'accès à des contenus \"gratuits\", centralisés.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Désactiver la protection pour ce site", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Activer la protection", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "Options", + "description": "Options title." + }, "blockMissingTitle": { "message": "Bloquer les ressources manquantes", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Total des ressources des CDN injectées localement depuis l'installation.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Avancé", + "description": "Advanced label." } } diff --git a/_locales/id/messages.json b/_locales/id/messages.json index 575a316..25c9039 100644 --- a/_locales/id/messages.json +++ b/_locales/id/messages.json @@ -3,6 +3,18 @@ "message": "Melindungi dari pelacakan melalui distribusi konten yang bebas dan terpusat.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Nonaktifkan perlindungan untuk situs web ini", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Aktifkan perlindungan", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "Opsi", + "description": "Options title." + }, "blockMissingTitle": { "message": "Blokir permintaan untuk sumber daya yang hilang", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Jumlah penyematan sumber daya Jaringan Distribusi Konten lokal sejak pemasangan.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Canggih", + "description": "Advanced label." } } diff --git a/_locales/is/messages.json b/_locales/is/messages.json index 7bedf25..34c66dc 100644 --- a/_locales/is/messages.json +++ b/_locales/is/messages.json @@ -3,6 +3,18 @@ "message": "Verndar þig gegn eftirliti frá \"ókeypis\" miðlægum efnisveitum.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Slökkva á vörn fyrir þetta vefsvæði", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Virkja vernd", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "Valkostir", + "description": "Options title." + }, "blockMissingTitle": { "message": "Loka á beiðnir vegna tilfanga sem vantar", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Fjöldi tilfanga frá miðlægum efnisveitum sem skipt hefur verið út sÃðan viðbótin var sett upp.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Ãtarlegt", + "description": "Advanced label." } } diff --git a/_locales/it/messages.json b/_locales/it/messages.json index 199bcf5..8fb890a 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -3,6 +3,18 @@ "message": "Protegge dal tracciamento tramite i CDN centralizzati \"gratuiti\".", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Disattiva protezione per questo sito", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Attiva protezione", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "Opzioni", + "description": "Options title." + }, "blockMissingTitle": { "message": "Bloccare richieste di risorse mancanti", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Quantità di iniezioni di risorse dalla Rete di Distribuzione di Contenuti locale sin dall'installazione.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Avanzate", + "description": "Advanced label." } } diff --git a/_locales/ja/messages.json b/_locales/ja/messages.json index 2b1c22c..300a454 100644 --- a/_locales/ja/messages.json +++ b/_locales/ja/messages.json @@ -3,6 +3,18 @@ "message": "「無料ã€ã¨ç§°ã—ã¦ã‚ãªãŸã‚’追跡ã™ã‚‹å¤§è¦æ¨¡ãªCDNを迂回ã—ã¦ã€ãƒ—ライãƒã‚·ãƒ¼ã‚’守りã¾ã™ã€‚", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "ã“ã®ã‚µã‚¤ãƒˆã§ã¯ä¿è·ã‚’無効ã«ã™ã‚‹", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "ä¿è·ã‚’有効ã«ã™ã‚‹", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "オプション", + "description": "Options title." + }, "blockMissingTitle": { "message": "アドオンã«å«ã¾ã‚Œãªã„リソースã¸ã®ãƒªã‚¯ã‚¨ã‚¹ãƒˆã‚’ブãƒãƒƒã‚¯ã™ã‚‹", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "インストール後ã«ãƒãƒ¼ã‚«ãƒ«ã®CDNリソースを使用ã—ãŸå›žæ•°ã§ã™ã€‚", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "エラー内容", + "description": "Advanced label." } } diff --git a/_locales/nl/messages.json b/_locales/nl/messages.json index 83079bb..28df353 100644 --- a/_locales/nl/messages.json +++ b/_locales/nl/messages.json @@ -3,6 +3,18 @@ "message": "Beschermt tegen tracking via het \"gratis\", gecentraliseerd, verzorgen van content.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Bescherming voor deze website uitschakelen", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Bescherming inschakelen", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "Opties", + "description": "Options title." + }, "blockMissingTitle": { "message": "Stop verzoeken voor ontbrekende items", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Aantal lokale Content Delivery Network-bestandsinjecties sinds installatie.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Geavanceerd", + "description": "Advanced label." } } diff --git a/_locales/pl/messages.json b/_locales/pl/messages.json index 2fb1f54..7e15f4a 100644 --- a/_locales/pl/messages.json +++ b/_locales/pl/messages.json @@ -3,6 +3,18 @@ "message": "Chroni przed Å›ledzeniem przez oÅ›rodki CDN.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "WyÅ‚Ä…cz ochronÄ™ dla tej witryny", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "WÅ‚Ä…cz ochronÄ™", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "Ustawienia", + "description": "Options title." + }, "blockMissingTitle": { "message": "Blokuj żądania brakujÄ…cych zasobów", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Ilość wstrzyknięć z lokalnego Content Delivery Network od czasu instalacji.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Zaawansowane", + "description": "Advanced label." } } diff --git a/_locales/pt_PT/messages.json b/_locales/pt_PT/messages.json index 7186550..757e1a1 100644 --- a/_locales/pt_PT/messages.json +++ b/_locales/pt_PT/messages.json @@ -3,6 +3,18 @@ "message": "Protege contra monitorização através de entrega de conteúdo centralizado.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Desativar proteção para este site", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Ativar proteção", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "Opções", + "description": "Options title." + }, "blockMissingTitle": { "message": "Bloquear pedidos por falta de recursos", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Quantidade de injeções de recurso Content Delivery Network locais desde a instalação.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Avançado", + "description": "Advanced label." } } diff --git a/_locales/ru/messages.json b/_locales/ru/messages.json index ab8159f..d0b8fca 100644 --- a/_locales/ru/messages.json +++ b/_locales/ru/messages.json @@ -3,6 +3,18 @@ "message": "Защищает Ð’Ð°Ñ Ð¾Ñ‚ отÑÐ»ÐµÐ¶Ð¸Ð²Ð°Ð½Ð¸Ñ Ñ‡ÐµÑ€ÐµÐ· «беÑплатные», централизованные CDN.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Отключить защиту Ð´Ð»Ñ Ñтого Ñайта", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Включить защиту", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "ÐаÑтройки", + "description": "Options title." + }, "blockMissingTitle": { "message": "Блокировать запроÑÑ‹ недоÑтающих реÑурÑов", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "КоличеÑтво меÑтных инъекций реÑурÑов Ñети доÑтавки контента Ñ Ð¼Ð¾Ð¼ÐµÐ½Ñ‚Ð° уÑтановки.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Дополнительно", + "description": "Advanced label." } } diff --git a/_locales/sv/messages.json b/_locales/sv/messages.json index 88794c8..388c43b 100644 --- a/_locales/sv/messages.json +++ b/_locales/sv/messages.json @@ -3,6 +3,18 @@ "message": "Skyddar dig mot att spÃ¥ras av \"gratis\", centraliserat, innehÃ¥llsleverans.", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "Inaktivera skydd för den här sidan", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "Aktivera skydd", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "Inställningar", + "description": "Options title." + }, "blockMissingTitle": { "message": "Blockera förfrÃ¥gningar när resurs saknas", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "Antalet insatta Content Delivery Network-resurser sedan installationen.", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "Avancerad", + "description": "Advanced label." } } diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json index 097aab5..ee0c1e8 100644 --- a/_locales/zh_CN/messages.json +++ b/_locales/zh_CN/messages.json @@ -3,6 +3,18 @@ "message": "ä¿æŠ¤æ‚¨å…å—集ä¸å¼çš„内容交付网络(CDN)的跟踪。", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "在æ¤ç½‘站上ç¦ç”¨ä¿æŠ¤", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "å¯ç”¨ä¿æŠ¤", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "选项", + "description": "Options title." + }, "blockMissingTitle": { "message": "阻æ¢ç¼ºå¤±èµ„æºçš„请求", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "自安装以æ¥ï¼Œä»Žæœ¬åœ°çš„“内容交付网络â€å‘é€çš„资æºæ€»é‡ã€‚", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "高级", + "description": "Advanced label." } } diff --git a/_locales/zh_TW/messages.json b/_locales/zh_TW/messages.json index 6c8b6ce..6da5854 100644 --- a/_locales/zh_TW/messages.json +++ b/_locales/zh_TW/messages.json @@ -3,6 +3,18 @@ "message": "ä¿è·æ‚¨ä¸å—「å…è²»ã€ã€ä¸å¿ƒåŒ–的內容傳éžç¶²è·¯ï¼ˆCDN)的追蹤。", "description": "Extension description." }, + "disableProtectionTitle": { + "message": "為æ¤ç¶²ç«™åœç”¨ä¿è·", + "description": "Disable protection title." + }, + "enableProtectionTitle": { + "message": "啟用ä¿è·", + "description": "Enable protection title." + }, + "optionsTitle": { + "message": "é¸é …", + "description": "Options title." + }, "blockMissingTitle": { "message": "å°éŽ–缺少資æºæ™‚的連線請求", "description": "Block requests for missing resources title." @@ -26,5 +38,9 @@ "amountInjectedDescription": { "message": "安è£ä»¥ä¾†ï¼Œç”±æœ¬æ©Ÿæª”案所å–代的 CDN 資æºæ•¸é‡ã€‚", "description": "Amount injected description." + }, + "advancedLabel": { + "message": "進階", + "description": "Advanced label." } } diff --git a/pages/options/options.html b/pages/options/options.html index b028b93..14b2952 100644 --- a/pages/options/options.html +++ b/pages/options/options.html @@ -23,7 +23,7 @@ <input class="input-checkbox" data-option="blockMissing" type="checkbox"> <span data-i18n-content="blockMissingTitle"></span> - <span class="label label-warning">Advanced</span> + <span class="label label-warning" data-i18n-content="advancedLabel"></span> </label> diff --git a/pages/popup/popup.js b/pages/popup/popup.js index 16b110d..b7474cf 100644 --- a/pages/popup/popup.js +++ b/pages/popup/popup.js @@ -36,7 +36,9 @@ document.addEventListener('DOMContentLoaded', function () { let optionsButtonElement, i18nElements; optionsButtonElement = document.getElementById('options-button'); - optionsButtonElement.setAttribute('title', 'Options'); + + let optionsTitle = chrome.i18n.getMessage('optionsTitle'); + optionsButtonElement.setAttribute('title', optionsTitle); i18nElements = document.querySelectorAll('[data-i18n-content]'); @@ -99,7 +101,9 @@ document.addEventListener('DOMContentLoaded', function () { if (!backgroundPage.requestAnalyzer.whitelistedDomains[domain]) { protectionToggleElement.setAttribute('class', 'button button-toggle active'); - protectionToggleElement.setAttribute('title', 'Disable protection for this site'); + + let disableProtectionTitle = chrome.i18n.getMessage('disableProtectionTitle'); + protectionToggleElement.setAttribute('title', disableProtectionTitle); protectionToggleElement.addEventListener('click', function () { @@ -114,14 +118,16 @@ document.addEventListener('DOMContentLoaded', function () { }); } - window.close(); + return window.close(); }); }); } else { protectionToggleElement.setAttribute('class', 'button button-toggle'); - protectionToggleElement.setAttribute('title', 'Enable protection for this site'); + + let enableProtectionTitle = chrome.i18n.getMessage('enableProtectionTitle'); + protectionToggleElement.setAttribute('title', enableProtectionTitle); protectionToggleElement.addEventListener('click', function () { @@ -136,7 +142,7 @@ document.addEventListener('DOMContentLoaded', function () { }); } - window.close(); + return window.close(); }); }); } -- GitLab