1 Star 0 Fork 9

Eric / 13层(Level 13)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
zh.js 14.13 KB
一键复制 编辑 原始数据 按行查看 历史
zhaolinxu 提交于 2019-03-25 14:19 . 汉化
/**
* 20190313@JAR:
*
* 1.汉化杂项'cnItems:obj',
* 2.采集新词'cnItem:fun';
*
*/
//汉化字典
var cnItems = { //共( 2+485 )项属性
_STYLE_: [
'符号', '待归类', '左侧日志', '怪物'
],
_OTHER_: [],
//1.0.符号( 2 )
'': '',
'---': '———',
//1.1.待归类( 3 )
'sewer': '下水道',
'refinery': '炼油厂',
'Market': '市场',
'Square': '广场',
'Hospital': '医院',
'Tent': '帐篷',
'Campfire': '营火',
'campfire': '营火',
'Generator': '发电机',
'Injury': '受伤',
'storage': '存储',
'NE': '右上方',
'north': '上方',
'SW': '左下方',
'Trading post': '贸易站',
'Inn': '旅馆',
'Lights': '灯火',
'Improvement': '改良',
'Research center': '研究中心',
'Tower block': '塔楼',
'Smithy': '铁匠铺',
'Cement mill': '水泥厂',
'Apothecary shop': '药剂师商店',
'口渴 (health -50%)': '口渴 (健康 -50%)',
'饥饿 (health -50%)': '饥饿 (健康 -50%)',
'Follower': '随从',
'water': '',
'food': '食物',
'metal': '金属',
'rope': '绳索',
'herbs': '草药',
'fuel': '燃料',
'medicine': '药品',
'tools': '工具',
'concrete': '混凝土',
'Workers': '工人',
'Collectors': '收集器',
'Trappers': '猎人',
'Scavengers': '搜索者',
'Rope-makers': '制绳者',
'Chemists': '化学家',
'Snail farms': '蜗牛农场',
'Light': '光源',
'Bag': '背包',
'Weapon': '武器',
'Armor': '盔甲',
'Arm': '盔甲',
'Legs': '腿部',
'Leg': '腿部',
'Chest': '胸部',
'Shoes': '脚部',
'Foot': '脚部',
'Exploration': '探查',
'Ingredient': '材料',
'UniqueEquipment': '特殊装备',
'Shirt': '衬衫',
'Hands': '手部',
'Hand': '手部',
'Head': '头部',
'Follower': '随从',
'Artefact': '人工制品',
'Strained ankle': '扭伤脚踝',
'Burn': '烧伤',
'Broken rib': '肋骨骨折',
'Base': '基础',
'Campfire': '营火',
'Campfires': '营火',
'Sunglasses': '太阳镜',
'Camp': '营地',
'Being in camp': '在营地',
'Population': '人口',
'blueprint': '蓝图',
'Libraries': '图书馆',
'stamina': '耐力',
'lose items': '丢失物品',
'lose an item': '丢失一件物品',
'Matches': '火柴',
'matches': '火柴',
'Rubber bands': '橡皮筋',
'rubber bands': '橡皮筋',
'Spider silk': '蛛丝',
'spider silk': '蛛丝',
'Lock pick': '开锁器',
'Basic First Aid Kit': '基础急救箱',
'Full First Aid Kit': '完整急救包',
'Glowstick': '荧光棒',
'Map': '地图',
'Starchart': '星图',
'Pamphlet': '小册子',
'Seashell': '海贝',
'Temple key': '神殿钥匙',
'Volcanic rock': '火山岩',
'Pearl': '珍珠',
'Fountain pen': '钢笔',
"Scientist's notebook": '科学家笔记',
'ID Chip': 'ID芯片',
'Canned tuna': '金枪鱼罐头',
'Leather pouch': '皮革袋',
'Round stone': '圆石',
'Charred seed': '烧焦的种子',
'Runestone': '符石',
'Automatic luggage': '自动化皮箱',
'Scavenger bag': '搜索者包',
"Hicker's rucksack": '乡巴佬的帆布包',
'Jumbo backpack': '特大背包',
'Basic backpack': '基础背包',
'Plastic bag': '塑料背包',
'Lantern': '灯笼',
'Electric light': '电灯',
'Ghost light': '幽灵灯',
'Mittens': '连指手套',
'max vision': '最大视野',
'attack': '攻击力',
'movement cost': '移动消耗',
'bag size': '背包容量',
'defence': '防御力',
'warmth': '保暖度',
'radiation protection': '辐射防护',
'poison protection': '毒物防护',
'sunblindness protection': '遮阳防护',
'light': '光源',
'bag': '背包',
'weapon': '武器',
'armor': '盔甲',
'shirt': '衬衫',
'legs': '腿部',
'head': '头部',
'hands': '手部',
'shoes': '脚部',
'Shiv': '小刀',
'Spear': '',
'Crossbow': '',
'Pistol': '手枪',
'Revolver': '左轮手枪',
'Custom SMG': 'SMG冲锋枪',
'Improvised bazooka': '简易火箭筒',
'Warm Coat': '暖和的大衣',
'Biker jacket': '机车夹克',
'Scrap metal armor': '废金属护甲',
'Kevlar vest': '防弹衣',
'Riot police vest': '防暴警察背心',
'Exoskeleton': '外骨骼',
'Tattered shirt': '破旧的衬衫',
'Factory uniform shirt': '工厂制服衬衫',
'Guard shirt': '守卫衬衫',
'Protective shirt': '防护衫',
"Scavenger's raincoat": '搜索者雨衣',
'Ragged pants': '破旧的裤子',
'Factory uniform pants': '工厂制服裤子',
'Guard uniform pants': '警卫制服裤',
'Padded pants': '衬裤',
'Long underwear': '秋裤',
'Sunglasses': '墨镜',
'Wollen hat': '羊毛帽',
'Pollution mask': '防污染面具',
'Scrap metal helmet': '废金属头盔',
'Gas mask': '防毒面具',
"Explorer's helmet": '探索者之盔',
'Work gloves': '劳动手套',
'Quality gloves': '高质量手套',
"Scavenger's gloves": '搜索者手套',
'Improvised flip-flops': '简易人字拖',
'Worn trainers': '运动鞋',
'Hiking boots': '登山鞋',
'movement cost': '移动消耗',
'health': '健康',
'Hut': '棚屋',
'Library': '图书馆',
'Fortification': '要塞',
'Moss garden': '苔藓花园',
'rumours': '传闻',
'urban pests': '城市害虫',
'aggressive animals': '侵略性动物',
'bandits': '强盗',
'bots': '机器人',
'pack': '一团',
'mob': '乌合之众',
'patrolled by': '巡逻着',
'guarded by': '守护着',
'infested with': '到处都是',
'covered in': '覆盖着',
'cleared': '已清除',
'disabled': '已禁用',
'killed': '已杀死',
'driven away': '已赶走',
'pests': '害虫',
'stairwell': '楼梯井',
'south': '下方',
'north': '上方',
'west': '左方',
'east': '右方',
'Gang': '怪物群',
'gang': '怪物群',
'W': '',
'E': '',
'N': '',
'S': '',
'NE': '右上',
'NW': '左上',
'SW': '左下',
'SE': '右下',
'Staircase Down': '下行楼梯井',
'Elevator Up': '上行电梯',
'Staircase Up': '上行楼梯井',
'Elevator Down': '下行电梯',
'Staircase': '楼梯',
'Caravan Stable': '商队稳定',
'Concrete Fortification': '混凝土加固',
'Accumulates food.': '积累食物。',
'Accumulates water.': '积累水。',
'Allows 10 soldiers.': '允许10名士兵。',
'Get water.': '取水。',
'Give up. Stop moving. Rest.': '放弃。 停止移动。 休息。',
'Heal injuries.': '医治伤痛。',
'Increases resource storage.': '增加资源存储。',
'Recover stamina.': '恢复耐力。',
'Recruit followers.': '招募追随者。',
'A place to rest.': '一个休息的地方。',
'Collect accumulated food.': '收集积累的食物。',
'Collect accumulated water.': '收集积累的水。',
'Confirm trade.': '确认交易。',
'Leave this planet and launch for the great unknown.': '离开这个星球,为伟大的未知发射。',
'Look for resources.': '寻找资源。',
'Venture out into the corridors.': '大胆走进走廊。',
'Workspace for toolsmiths.': '给铁匠的空间。',
'Shortcut back to the nearest camp.': '抄近路回最近的营地。',
'Set up camp.': '建立营地。',
'Collect rumours from the population.': '从人群中收集传闻。',
'Rest and manage camp.': '休息和管理营地。',
'Scout the area for evidence.': '在这一地区寻找证据。',
'Scout the workshop to see if it can be used.': '检查一下车间,看看是否能用。',
'Sleep rough and regain a bit of stamina.': '睡个好觉,恢复一点耐力。',
'Abandon what you were doing and run.': '放弃你正在做的事,逃跑吧。',
'Clear the enemies blocking passage.': '清除阻塞通道的敌人。',
'Found a park bench to sleep on. Barely feel rested.': '找了个公园的长椅睡觉。几乎没有休息的感觉。',
'Workshop cleared. Workers can now use it.': '车间清理干净。工人们现在可以使用它了。',
'clear_workshop': '清理车间',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
'': '',
//怪物
'huge rat': '大老鼠',
'giant centipede': '巨型蜈蚣',
'poisonous centipede': '毒蜈蚣',
'radioactive cockroach': '辐射蟑螂',
'cave bat': '洞穴蝙蝠',
'ghost bat': '幽灵蝙蝠',
'vampire bat': '吸血蝙蝠',
'poisonous spider': '毒蜘蛛',
'gigantic spider': '巨蜘蛛',
'ratsnake': '鼠蛇',
'albino salamander': '白化蜥蜴',
'fire salamander': '火蜥蜴',
'duskboar': '幽暗野猪',
'rusted guard bot': '生锈的守卫机器人',
'ancient guard bot': '远古守卫机器人',
'robot from a forgotten war': '被遗忘战争中的机器人',
'drone from a forgotten war': '被遗忘战争中的无人机',
'malfunctioning fire door': '故障的防火门',
'antagonistic fire door': '敌对的防火门',
'territorial sewer varanid': '区域下水道巨蜥',
'predatory sewer varanid': '掠夺下水道巨蜥',
'haywire guard bot 1': '故障守卫机器人1号',
'haywire guard bot 2': '故障守卫机器人2号',
'haywire guard bot 3': '故障守卫机器人3号',
'wasp': '黄蜂',
'bee': '蜜蜂',
'spirit of earth': '大地之灵',
'spirit of wind': '微风之灵',
'spirit of fire': '火焰之灵',
'spirit of sun': '太阳之灵',
'vengeful dryad': '复仇森林女神',
'vampire': '吸血鬼',
'ape': '',
'bear': '',
'drove of boars': '一群野猪',
'security bot': '安保机器人',
'rabid dog': '狂犬',
'leaking gas pipe': '泄漏的煤气管',
'mugger': '掠夺者',
'doomsayer': '灾难预言者',
'armed gangster': '武装歹徒',
'sector emergency system': '应急防御系统',
'thorny bush': '尖刺灌木',
'overgrown nettle': '巨型荨麻',
'hawk': '',
'a group of seagulls': '一群海鸥',
'scorpion': '蝎子',
'territorial magpie': '喜鹊',
'great black pelican': '鹈鹕',
'swarm of pidgeons': '大群鸽子',
'agitated murder of crows': '一群发狂的乌鸦',
'aggressive raccoon': '发狂的浣熊',
'escaped pet boa': '逃出的宠物蟒',
'military bot': '军用机器人',
'escaped zoo panther': '逃出动物园的豹',
'injured zoo panther': '受伤的动物园豹',
//左侧日志
'Building projects': '建筑工程',
'Smelting': '熔炼',
'Scavenger Gear': '拾荒装置',
'Augmented clothing made to withstand the harshest of environments.': '强化过的衣服经得起最恶劣的环境。',
'UV Protection': '紫外线防护',
'Protection from sunlight.': '保护自己免受阳光伤害。',
'Jet engine': '喷气发动机',
'Taking weapons and fighting to a new level of destructiveness.': '将武器和战斗上升到一个新的破坏水平。',
'Medicine': '医学',
'Rediscovered modern technology for disease prevention and treatment.': '是现代的疾病预防和治疗技术。。',
'Radio': '广播',
'Build radio towers to increase your civilization\'s reputation.': '建造广播塔来提高你文明的声誉。',
'Surgery': '手术',
'Complex procedures for fixing the human body': '复杂的人体修复程序',
'Augmented Clothing 1': '强化服1',
'echniques for improving existing clothing for exploration': '为了探索需要,用科技改善现有服装的技术。',
'Philosophy': '哲学',
'Another way to find answers to questions.': '另一种寻找问题答案的方法。',
'Concrete Fortifications': '混凝土防御工事',
'Better fortifications': '有更好的防御',
'Alchemy': '炼金术',
'Basic knowledge of making herbal medicines.': '制作草药的基本知识。',
'Good gloves to keep explorers safe': '保护探险者安全的好手套',
'Glove-making': '手套制造',
'Scientific Method': '科学方法',
'An organized approach to growing new knowledge': '用一种有条理的方式来获取新知识。',
'Food preservation': '食物保存',
'Salting, smoking and pickling food to make it last longer.': '腌制,烟熏以及酸制食物,让它们保存更长的时间。',
'Military': '军事',
'A dedicated and trained class of workers for protecting and fighting.': '经受训练并奉献自身,来保护和作战的一类人。',
};
//2.采集新词
//20190320@JAR
var cnItem = function() {
//传参是否非空字串
if (!arguments[0]) return;
//检验传参是否对象
let text = arguments[0], s = '';
if (typeof(text) != "string")
return text;
else
s = arguments[0].charCodeAt()
;
//检验传参是否英文
if(
s < 65 || (s > 90 && s <97) || (s > 122)
) return text;
//检验字典是否可存
if(!cnItems._OTHER_) cnItems._OTHER_=[];
//遍历尝试匹配
for ( let i in cnItems ) {
//字典已有词汇或译文、且译文不为空,则返回译文
if(
text == i || text == cnItems[i]
&& cnItems[i] != ''
)
return cnItems[i];
}
//遍历生词表是否收录
for (
let i = 0;
i < cnItems._OTHER_.length;
i++
) {
//已收录则直接返回
if (text == cnItems._OTHER_[i])
return text;
}
//未收录则保存
cnItems._OTHER_.push(text);
cnItems._OTHER_.sort(
function(a,b){
return a.localeCompare(b)
}
);
/*
//开启生词打印
//console.log(
'有需要汉化的英文:', text
);
*/
//返回生词字串
return text;
};
JavaScript
1
https://gitee.com/zz_Eric/level13.git
git@gitee.com:zz_Eric/level13.git
zz_Eric
level13
13层(Level 13)
master

搜索帮助