From 478ead7d4d7648042ee5711bee4499125ecc91ad Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Fri, 13 May 2016 15:16:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=9C=AC=E5=9C=B0=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=94=A8=E7=BA=A2=E8=89=B2=E8=99=9A?= =?UTF-8?q?=E7=BA=BF=E6=98=BE=E7=A4=BA=E5=8E=9F=E6=96=87=20=E5=85=B6?= =?UTF-8?q?=E5=AE=83=E7=8E=AF=E5=A2=83=E7=9B=B4=E6=8E=A5=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/resources/css/_translate.scss | 6 +++++- public/resources/js/translate.js | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/public/resources/css/_translate.scss b/public/resources/css/_translate.scss index 85b19c3ac2..0b36ce178f 100644 --- a/public/resources/css/_translate.scss +++ b/public/resources/css/_translate.scss @@ -1,3 +1,7 @@ -.lang-english { +.original-english { display: none !important; } + +.original-english-debug { + border-bottom: 1px dashed red; +} diff --git a/public/resources/js/translate.js b/public/resources/js/translate.js index a86317d4d4..e8d6a3c22c 100644 --- a/public/resources/js/translate.js +++ b/public/resources/js/translate.js @@ -4,7 +4,11 @@ if (isTranslationResult(node)) { var prevNode = node.previousElementSibling; if (prevNode && isOriginalEnglish(prevNode.innerText) && !prevNode.classList.contains('nav-list-item')) { - prevNode.classList.add('lang-english'); + if (location.hostname === 'localhost') { + prevNode.classList.add('original-english-debug'); + } else { + prevNode.classList.add('original-english'); + } } node.title = prevNode.innerText; }