住院理由集合翻译
This commit is contained in:
parent
60e9ffad31
commit
291331e60e
@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @name Torn翻译
|
||||
// @namespace WOOH
|
||||
// @version 0.1.1112b
|
||||
// @version 0.1.1113a
|
||||
// @description UI翻译
|
||||
// @author Woohoo-[2687093] sabrina_devil[2696209]
|
||||
// @match https://www.torn.com/*
|
||||
@ -667,6 +667,44 @@
|
||||
'All': '全部',
|
||||
'Enter a name or ID to add to this list': '输入用户名或ID来添加到这个列表',
|
||||
};
|
||||
const hosDict = {
|
||||
"You take a trip down to the hospital to see who's been unlucky today.": "你来了一趟医院,看看今天是谁那么倒霉",
|
||||
"Nobody can revive you.": "现在没有玩家可以复活你",
|
||||
"Anyone can now revive you.": "现在任何玩家都能复活你",
|
||||
"Only those on your friends list & your faction members can now revive you.": "现在只有好友以及帮派成员可以复活你",
|
||||
"in Hospital": "在住院",
|
||||
"People are": "名玩家",
|
||||
"Time": "时长",
|
||||
"Level": "等级",
|
||||
"Reason": "原因",
|
||||
"Overdosed on Xanax": "吸食Xanax过量",
|
||||
"Shot while attempting to take down a president": "在试图袭击总统时受了枪伤",
|
||||
"Taken down by guards": "被保安击倒",
|
||||
"Got a nasty surprise in the post.": "收到并打开了一个伤害性包裹",
|
||||
"Dropped by Swiss Guards": "被瑞士警卫队抛下",
|
||||
"Mauled by a guard dog": "被警卫犬袭击受伤",
|
||||
"Burned in an arson attempt": "在一次纵火案中被烧伤",
|
||||
"Fallen ill with radiation poisoning": "因辐射中毒而病倒",
|
||||
"Crashed his": "出车祸并撞毁了他的",
|
||||
"Crashed her": "出车祸并撞毁了她的",
|
||||
"Taken down by members of The Black Hand": "被黑手党成员拿下",
|
||||
"Got derailed": "火车脱轨致伤",
|
||||
"Third degree burns on back from explosion": "爆炸造成的背部三度烧伤",
|
||||
"general": "被玩家 ",
|
||||
"Hit in the head by flying metal": "被飞来的金属击中头部",
|
||||
"Shot themselves in the foot": "打了自己腿一枪",
|
||||
"Hospitalized by someone": "被某人殴打并送入医院",
|
||||
"Attacked by someone": "被某人攻击",
|
||||
"Mugged by someone": "被某人抢劫",
|
||||
"Gunned down by FBI agents": "被联邦调查局特工枪击",
|
||||
"Taken down by a SWAT marksman": "被一名特警射手击倒",
|
||||
"Exploded": "被炸伤",
|
||||
"Fell from a two story building while on a hitman mission": "在执行杀手任务时从两层的建筑坠落",
|
||||
"Suffering from an acute hemolytic transfusion reaction": "患上了急性溶血性输血反应疾病",
|
||||
"Choked out by Leslie": "被Leslie掐喉",
|
||||
"Shot in the back": "背部中枪",
|
||||
"Lost to": "输给了 ",
|
||||
};
|
||||
const awDict = {};
|
||||
|
||||
/**
|
||||
@ -1544,34 +1582,6 @@
|
||||
}
|
||||
|
||||
function hospTrans() {
|
||||
const hosDict = {
|
||||
"You take a trip down to the hospital to see who's been unlucky today.": "你来了一趟医院,看看今天是谁那么倒霉",
|
||||
"Nobody can revive you.": "现在没有玩家可以复活你",
|
||||
"Anyone can now revive you.": "现在任何玩家都能复活你",
|
||||
"Only those on your friends list & your faction members can now revive you.": "现在只有好友以及帮派成员可以复活你",
|
||||
"in Hospital": "在住院",
|
||||
"People are": "名玩家",
|
||||
"Time": "时长",
|
||||
"Level": "等级",
|
||||
"Reason": "原因",
|
||||
"Overdosed on Xanax": "吸食Xanax过量",
|
||||
"Shot while attempting to take down a president": "在试图袭击总统时受了枪伤",
|
||||
"Taken down by guards": "被卫兵拿下",
|
||||
"Got a nasty surprise in the post.": "收到并打开了一个伤害性包裹",
|
||||
"Dropped by Swiss Guards": "被瑞士警卫队丢弃",
|
||||
"Mauled by a guard dog": "被警卫犬袭击受伤",
|
||||
"Burned in an arson attempt": "在一次纵火案中被烧伤",
|
||||
"Fallen ill with radiation poisoning": "因辐射中毒而病倒",
|
||||
"Crashed his": "撞毁了他的",
|
||||
"Crashed her": "撞毁了她的",
|
||||
"Hospitalized by": "",
|
||||
"Hospitalized by someone": "被某人殴打入院",
|
||||
"Attacked by": "",
|
||||
"Attacked by someone": "被某人攻击",
|
||||
"Mugged by": "",
|
||||
"Mugged by someone": "被某人抢劫",
|
||||
"Exploded": "被炸伤"
|
||||
}
|
||||
titleTrans();
|
||||
contentTitleLinksTrans();
|
||||
|
||||
@ -1589,10 +1599,30 @@
|
||||
})
|
||||
|
||||
//玩家列表住院理由
|
||||
$('ul[class^="user-info-list-wrap"] span[class^="reason"]').contents().each((i, e) => {
|
||||
let reasonStr = $(e).text().trim();
|
||||
$('ul[class^="user-info-list-wrap"] span[class^="reason"]').each((i, e) => {
|
||||
let reasonStr = $(e).get(0).childNodes[1].nodeValue.trim();
|
||||
|
||||
if (hosDict[reasonStr]) {
|
||||
e.nodeValue = (hosDict[reasonStr]);
|
||||
$(e)[0].childNodes[1].nodeValue = hosDict[reasonStr];
|
||||
} else if (reasonStr.indexOf("Crashed") >= 0) {
|
||||
$(e)[0].childNodes[1].nodeValue = reasonStr
|
||||
.replace("Crashed her", hosDict["Crashed her"])
|
||||
.replace("Crashed his", hosDict["Crashed his"]);
|
||||
} else {
|
||||
switch (reasonStr) {
|
||||
case "Attacked by":
|
||||
$(e)[0].childNodes[1].nodeValue = hosDict["general"];
|
||||
$(e).append(" 攻击");
|
||||
break;
|
||||
case "Hospitalized by":
|
||||
$(e)[0].childNodes[1].nodeValue = hosDict["general"];
|
||||
$(e).append(" 殴打并送入医院");
|
||||
break;
|
||||
case "Mugged by":
|
||||
$(e)[0].childNodes[1].nodeValue = hosDict["general"];
|
||||
$(e).append(" 抢劫");
|
||||
break;
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user