From a8132fc55398457f07894de3ffe94d5f7bccaa0c Mon Sep 17 00:00:00 2001 From: Liwanyi Date: Sat, 6 Nov 2021 21:04:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0property=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- torn-trans-zhcn.user.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/torn-trans-zhcn.user.js b/torn-trans-zhcn.user.js index 2280149..8bb165e 100644 --- a/torn-trans-zhcn.user.js +++ b/torn-trans-zhcn.user.js @@ -140,6 +140,7 @@ 'Selling Market': '销售市场', 'City': '城市', 'Back to Estate Agents': '返回地产中介', + 'Tutorial':'教程', }; const newspaperDict = { 'front page': '报纸头版', @@ -161,6 +162,7 @@ 'Trailer': '拖车', 'Apartment': '公寓', 'Semi - Detached': '半独立式住宅', + 'Semi-Detached House': '半独立式住宅', 'Detached House': '独立式住宅', 'Beach House': '海滩小屋', 'Chalet': '小别墅', @@ -413,6 +415,10 @@ if (window.location.href.indexOf('estateagents.php') >= 0) { titleTrans(); contentTitleLinksTrans(); + $('div.estate-info div.title').each((i,e)=>{ + if(propertyDict[e.firstChild.nodeValue]) + e.firstChild.nodeValue=propertyDict[e.firstChild.nodeValue]; + }); return; }