diff --git a/torn-trans-zhcn.user.js b/torn-trans-zhcn.user.js index 47b177a..933c98c 100644 --- a/torn-trans-zhcn.user.js +++ b/torn-trans-zhcn.user.js @@ -153,7 +153,7 @@ 'properties': '房产', 'freebies': '赠品', 'classified ads': '广告', - 'personals': '情感', + 'personals': '交友', 'bounties': '悬赏', 'comics': '漫画', 'chronicles': '纪事档案馆', @@ -161,7 +161,7 @@ 'Weekly bazaars':'每周小店', 'LOTTERY':'幸运彩票', 'BOUNTIES':'精选悬赏', - 'TC PERSONALS':'托恩情感', + 'TC PERSONALS':'托恩交友', 'Why not visit our sponsor?':'为什么不访问我们的赞助商呢?', 'View all':'查看所有', 'Advertise here':'在此刊登广告', @@ -173,8 +173,10 @@ 'Job Listing':'工作列表', 'Freebies':'赠品', 'Classified Ads':'分类广告', + 'Properties':'房产', }; const propertyDict = { + 'Shack':'棚屋', 'Trailer': '拖车', 'Apartment': '公寓', 'Semi - Detached': '半独立式住宅', @@ -197,11 +199,14 @@ 'Cost:': '花费:', 'Cost per Day': '平均日花费', 'Rental Period': '租期', + 'Rental period:': '租期', 'Rent': '租赁', 'Info': '信息', 'Buy': '购买', 'Property:': '房屋:', 'Modifications': '改造设施', + 'Upkeep:':'维护费:', + 'Staff:':'雇员费用:', }; const travelingDict = { // todo jsonify 'Recruit Citizens': '招募玩家', @@ -516,8 +521,7 @@ // 房屋详情表格 $('div.info-block span.bold').each((i, e) => { - // 2 6 10 14 18 22 26 30 ... - if (i % 4 === 2) { + if (e.childElementCount===2) { /** * On @@ -535,6 +539,10 @@ e.firstChild.nodeValue = propertyDict[e.firstChild.nodeValue.trim()]; } }); + $('div.rental-period span.bold').each((i, e) => { + if (propertyDict[e.firstChild.nodeValue.trim()]) + e.firstChild.nodeValue = propertyDict[e.firstChild.nodeValue.trim()]; + }); // 窄边 cost happy $('span.title-laptop.bold').each((i, e) => { if (propertyDict[$(e).text().trim()])