From bef9eedf73d050f05f0208327382ad0c7c447651 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 2 Mar 2020 12:34:50 -0500 Subject: [PATCH] Support hidden hyphen HTML entity in translation work Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/907#issuecomment-590804054 --- src/_locales/da/messages.json | 4 ++-- src/js/i18n.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/_locales/da/messages.json b/src/_locales/da/messages.json index 323dc112e..110ce5098 100644 --- a/src/_locales/da/messages.json +++ b/src/_locales/da/messages.json @@ -112,11 +112,11 @@ "description": "English: Click to open the dashboard" }, "popupTipZapper": { - "message": "Gå til elementdræbertilstand", + "message": "Gå til elementdræbertil­stand", "description": "Tooltip for the element-zapper icon in the popup panel" }, "popupTipPicker": { - "message": "Start elementvælgertilstand", + "message": "Start elementvælgertil­stand", "description": "English: Enter element picker mode" }, "popupTipLog": { diff --git a/src/js/i18n.js b/src/js/i18n.js index 526390ef1..976471e69 100644 --- a/src/js/i18n.js +++ b/src/js/i18n.js @@ -72,6 +72,7 @@ const safeTextToTextNode = (function() { const entities = new Map([ // TODO: Remove quote entities once no longer present in translation // files. Other entities must stay. + [ '­', '\u00AD' ], [ '“', '“' ], [ '”', '”' ], [ '‘', '‘' ],