飞行界面翻译优化以及戒毒翻译
This commit is contained in:
parent
187e43ab7b
commit
5497c8139f
@ -24,18 +24,54 @@
|
|||||||
'Torn to London.': '正在飞往英国伦敦(London)。',
|
'Torn to London.': '正在飞往英国伦敦(London)。',
|
||||||
'London to Torn.': '正从英国伦敦(London)回城。', // todo 所有目的地
|
'London to Torn.': '正从英国伦敦(London)回城。', // todo 所有目的地
|
||||||
'\nRemaining Flight Time -\n': ' 剩余时间 - ',
|
'\nRemaining Flight Time -\n': ' 剩余时间 - ',
|
||||||
|
'Travel Home': "回国",
|
||||||
|
'Rehabilitation': "戒毒康复",
|
||||||
|
'People': "用户列表"
|
||||||
};
|
};
|
||||||
|
//界面tips
|
||||||
|
const tipsDict = {
|
||||||
|
'\nAccording to the Economist Intelligence Unit\'s Quality of Life Index, Switzerland is the second best place in the world to be born, after Denmark. Torn ranked 224th, despite there being only 194 recognised nations in the world.\t': "根据经济学人信息部提供的生活质量指数,瑞士是世界上第二个最适合出生的地方,仅次于丹麦。尽管世界上只有194个公认的国家,但托恩却排名第224位。",
|
||||||
|
|
||||||
|
'\nThe opportunities for employment in Torn are wide and varied, from jobs in the zoo and the meat warehouse through to fantastic openings at the strip club - a description rarely used to refer to those who work there.\t':
|
||||||
|
"托恩的就业机会广泛而多样,从动物园和肉类仓库的工作,到脱衣舞俱乐部的奇妙开场--这是一个很少用来形容在那里工作的人的描述。",
|
||||||
|
|
||||||
|
'\nOne of the main requirements for a wedding to take place in Torn is the procurement of a ring. You may either purchase one from the Jewellery Store, or you can choose the more romantic option of stealing one, which requires far more effort if you think about it.\t': "在托恩举行婚礼的主要要求之一就是购买一枚戒指。你可以从珠宝店购买,也可以选择在偷窃戒指中选择一种很浪漫的方式,但是你冷静下来想想的话,这也是需要付出更大代价的。",
|
||||||
|
|
||||||
|
"\nDespite having no discernible court system Torn still employs several thousand people within its Judicial Services department. Nobody knows what the hell these people do all day, but if we had to guess, we'd say Solitaire.\t": "尽管没有明显的法院系统,托恩仍然在其司法服务部门雇用了几千人。没有人知道这些人整天都在做什么,但如果我们必须猜测,我们会说是接龙。",
|
||||||
|
|
||||||
|
"\nAt one point a Dual Wield Melee course was available at Torn City College for a fee of $50,000,000, but this was discontinued when Torn's citizens realized they were effectively paying to learn how to hold two things at once.\t": "托恩城市学院一度开设了双持近战课程,收费50,000,000美元,但当托恩的市民意识到他们实际上是在花钱学习如何同时持有两样东西时,这个课程就停止了。"
|
||||||
|
};
|
||||||
|
|
||||||
|
//如果在飞行页面
|
||||||
|
if ($('span.remaining-time')[0] != null) {
|
||||||
$('#skip-to-content')[0].firstChild.nodeValue += '飞行中';
|
$('#skip-to-content')[0].firstChild.nodeValue += '飞行中';
|
||||||
//Events
|
|
||||||
$("#events")[0].firstChild.nodeValue = travelingDict[$("#events")[0].firstChild.nodeValue]
|
//飞行提示小文章
|
||||||
|
document.querySelector("#mainContainer > div.content-wrapper.logged-out.left.autumn.travelling > div.travel-agency-travelling > div.popup-info > div.inner-popup").textContent = '\nOne of the main requirements for a wedding to take place in Torn is the procurement of a ring. You may either purchase one from the Jewellery Store, or you can choose the more romantic option of stealing one, which requires far more effort if you think about it.\t'
|
||||||
|
|
||||||
|
document.querySelector("#mainContainer > div.content-wrapper.logged-out.left.autumn.travelling > div.travel-agency-travelling > div.popup-info > div.inner-popup").textContent =
|
||||||
|
tipsDict[document.querySelector("#mainContainer > div.content-wrapper.logged-out.left.autumn.travelling > div.travel-agency-travelling > div.popup-info > div.inner-popup").textContent];
|
||||||
|
|
||||||
// eg. Remaining Flight Time -
|
// eg. Remaining Flight Time -
|
||||||
$('span.remaining-time')[0].firstChild.nodeValue = travelingDict[$('span.remaining-time')[0].firstChild.nodeValue];
|
$('span.remaining-time')[0].firstChild.nodeValue = travelingDict[$('span.remaining-time')[0].firstChild.nodeValue];
|
||||||
|
|
||||||
$("#recruit-citizens")[0].firstChild.nodeValue = travelingDict[$("#recruit-citizens")[0].firstChild.nodeValue];
|
$("#recruit-citizens")[0].firstChild.nodeValue = travelingDict[$("#recruit-citizens")[0].firstChild.nodeValue];
|
||||||
|
}
|
||||||
|
|
||||||
|
//Events
|
||||||
|
$("#events")[0].firstChild.nodeValue = travelingDict[$("#events")[0].firstChild.nodeValue]
|
||||||
|
|
||||||
// eg. Torn to London.
|
// eg. Torn to London.
|
||||||
|
if ($("#travel-home")[0] != null) {
|
||||||
|
$("#travel-home")[0].firstChild.nodeValue = travelingDict[$("#travel-home")[0].firstChild.nodeValue];
|
||||||
|
$("#rehab")[0].firstChild.nodeValue = travelingDict[$("#rehab")[0].firstChild.nodeValue];//todo 在瑞士就加rehab
|
||||||
|
$("#people")[0].firstChild.nodeValue = travelingDict[$("#people")[0].firstChild.nodeValue];
|
||||||
|
}
|
||||||
|
|
||||||
new MutationObserver(mutations => {
|
new MutationObserver(mutations => {
|
||||||
$('span.description')[0].firstChild.nodeValue = travelingDict[$('span.description')[0].firstChild.nodeValue];
|
$('span.description')[0].firstChild.nodeValue = travelingDict[$('span.description')[0].firstChild.nodeValue];
|
||||||
}).observe($('span.description')[0], {attributes: true, childList: true, subtree: true});
|
}).observe($('span.description')[0], {attributes: true, childList: true, subtree: true});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user