webxoss-client/Localize.min.js

3 lines
82 KiB
JavaScript
Raw Normal View History

2017-08-22 05:04:32 +02:00
"use strict";window.Localize=function(){function e(o,t){if("raw"===o)return t;var a=e.map[o];if(!a)return console.warn('no such namespace: "'+o+'" .'),t;var r=a[t]||e.map.common[t];if(!r)return console.warn('no such label: "'+t+'" .'),t;var n=toArr(arguments).slice(2);return r=e.formatString(r,n),r=e.traditionalize(r)}!function(){function e(e,o,t){var a=new XMLHttpRequest;a.responseType="json",a.onload=function(){200===a.status?o(a.response):t&&t(a)},a.onerror=function(){t&&t(a)},a.open("GET",e,!0),a.send()}window.CardInfo_jp=Object.create(CardInfo),window.CardInfo_zh=Object.create(CardInfo),window.CardInfo_en=Object.create(CardInfo),window.CardInfo_ko=Object.create(CardInfo),window.CardInfo_ru=Object.create(CardInfo),window.CardInfo_it=Object.create(CardInfo),window.CardInfo_sp=Object.create(CardInfo);var o=location.pathname.match(/\/DeckEditor\/?$/)?"../lang/":"./lang/";e(o+"CardInfo_en.json",function(e){for(var o in e){var t=e[o],a=Object.create(CardInfo_jp[o]);for(var r in t)a[r]=t[r];window.CardInfo_en[o]=a,window.CardInfo_it[o]=a}}),e(o+"CardInfo_zh_CN.json",function(e){for(var o in e){var t=e[o],a=Object.create(CardInfo_jp[o]);for(var r in t)a[r]=t[r];window.CardInfo_zh[o]=a}}),e(o+"CardInfo_ru.json",function(e){for(var o in e){var t=e[o],a=Object.create(CardInfo_jp[o]);for(var r in t)a[r]=t[r];window.CardInfo_ru[o]=a}}),e(o+"CardInfo_ko.json",function(e){for(var o in e){var t=e[o],a=Object.create(CardInfo_jp[o]);for(var r in t)a[r]=t[r];window.CardInfo_ko[o]=a}}),e(o+"CardInfo_sp.json",function(e){for(var o in e){var t=e[o],a=Object.create(CardInfo_jp[o]);for(var r in t)a[r]=t[r];window.CardInfo_sp[o]=a}})}();var o={common:{OK:"确定",CANCEL:"取消",NO_CARDS:"没有卡牌",OR:"或"},_misc:{DIALOG_TITLE_EFFECTS:"多个效果发动,选择一个优先处理",NO_OPTIONS:"无法%s",GIVE_UP:"不%s",GUARD_TRUE:"有",GUARD_FALSE:"无",LIMITING:"%s限定",WAIT:"等待对方操作",CLASS_SEPARATOR:":",CROSS_NAME_QUOTE_LEFT:"《",CROSS_NAME_QUOTE_RIGHT:"》",CROSS_LEFT:"【CROSS】%s的左侧",CROSS_RIGHT:"【CROSS】%s的右侧",CROSS_AND:"【CROSS】%s的左侧 和 %s的右侧",CROSS_OR:"或",GUARD_DESCRIPTION:"【防御】从手牌舍弃此牌将分身的1次攻击无效化",MULTI_ENER_DESCRIPTION:"【常】:【万花色】(支付费用时,这张牌视为持有所有颜色)",LAYER_DESCRIPTION:"[重合] 我方所有<怪异>精灵获得(重合标记)的能力"},buttonTitle:{OK:"确定",CANCEL:"取消",LEVEL0_LRIG:"设置分身",DISCARD_AND_REDRAW:"换牌",CHARGE:"充能",GROW:"成长",SUMMON_SIGNI:"召唤",SUMMON_SIGNI_ZONE:"召唤区",BANISH:"破坏",BOUNCE:"返回手牌",TRASH:"废弃",TRASH_SIGNI:"废弃",USE_SPELL:"使用",SPELL_EFFECT:"选择魔法效果",USE_ARTS:"使用必杀",ARTS_EFFECT:"选择必杀效果",SPELL_CUT_IN:"使用魔法切入",USE_ACTION_EFFECT:"起动效果",SEEK:"探寻",SET_ORDER:"设置顺序",SIGNI_ATTACK:"攻击",LRIG_ATTACK:"攻击",GUARD:"防御",DISCARD:"舍弃",DECLARE:"宣言",PAY:"支付",PAY_EXCEED:"超越",DOWN:"横置",UP:"竖置",TARGET:"目标",PAY_ENER:"支付能量",LAUNCH:"发动",EFFECTS:"优先处理",CONFIRM:"确认",END_SELECT:"完成选择",END_ENER_PHASE:"结束充能阶段",END_GROW_PHASE:"结束成长阶段",END_MAIN_PHASE:"结束主要阶段",END_ARTS_STEP:"结束必杀使用步骤",END_SIGNI_ATTACK_STEP:"结束精灵攻击步骤",END_LRIG_ATTACK_STEP:"结束分身攻击步骤",VIEW:"查看",ADD_TO_HAND:"加入手牌",COLOR:"颜色",CHOOSE_EFFECT:"选择效果",CHOOSE_ZONE:"选择区域",RESET_SIGNI_ZONE:"重新配置",CHARM_CARD:"魅饰卡",TRASH_CHARM:"废弃魅饰",REVEAL:"公开",PUT_TO_TOP:"放置到卡组顶",PUT_TO_BOTTOM:"放置到卡组底",REVEAL_MORE:"多公开几张卡",PROTECT:"保护",_SHIRONAKUJI:"-6000",CLASS:"类别",PAY_WHITE_INSTEAD:"代替白色费用",TRASH_OSAKI:"废弃御先狐",RESONA:"共鸣",CRASH:"击溃",PLAYER:"玩家",PUT_TO_CHECK_ZONE:"放置到检查区",PUT_TO_ENER_ZONE:"放置到能量区",CONFIRM_REFRESH_SELF:"我方卡组重构\n请确认废弃区",CONFIRM_REFRESH_OPPONENT:"对方卡组重构\n请确认废弃区"
2017-08-31 04:43:09 +02:00
WRONG_PASSWORD:"Неверный пароль!",NOT_CONNECTED:"Нет соединения с сервером!\nПожалуйста, попробуйте позже!",SUPPORT_URL:"about_en.html#support",CONFIRM_SURRENDER:"Вы точно хотите сдаться?",SURRENDERED:"Вы сдались!",OPPONENT_SURRENDERED:"Противник сдался!",CONFIRM_CLOSE:"Вы точно хотите уйти?",DROPPED:"Противник ушёл.",SAVE_REPLAY:"Сохранить повтор",FAILED_TO_PARSE_REPLAY:"Не удалось разобрать повтор!",UNSUPPORTED_REPLAY_VERSION:"Неподдерживаемая версия повтора!\nОбновите клиент!",PROVIDE_PROXY_SERVER:"Желаете предоставить свой Proxy-сервер?\nСвяжитесь с webxoss@gmail.com !\nWEBXOSS с Вашей помощью станет лучше!",FETCHING_DATA:'Загрузка данных...\nНажмите "OK" для отмены.',FAILED_TO_FETCH_DATA:"Не удалось загрузить!"},editor:{PLEASE_INPUT_A_DECK_NAME:"Введите имя колоды!",DECK_NAME:"Имя колоды:",DECK_NAME_ALREADY_EXISTS:'Колода с именем "%s" уже существует!',FAILED_TO_PARSE_FILE:"Не удалось разобрать файл!",FAILED_TO_PARSE_CODE:"Не удалось разобрать код!",CONFIRM_DELETE_DECK:'Вы точно хотите удалить "%s"?'}},n={common:{OK:"OK",CANCEL:"CANCEL",NO_CARDS:"No cards",or:"or"},_misc:{DIALOG_TITLE_EFFECTS:"Piu effetti sono stati attivati\nScegline uno da risolvere.",NO_OPTIONS:"Non hai %s",GIVE_UP:"Non %s",GUARD_TRUE:"Si",GUARD_FALSE:"No",LIMITING:"%s Only",WAIT:"In attesa...",CLASS_SEPARATOR:":\n",CROSS_NAME_QUOTE_LEFT:'"',CROSS_NAME_QUOTE_RIGHT:'"',CROSS_LEFT:">Cross< %s Sinistra",CROSS_RIGHT:">Cross< %s Destra",CROSS_AND:">Cross< %s Right and %s Left",CROSS_OR:" o ",GUARD_DESCRIPTION:"[Guard] (Scartando questa carta dalla tua mano annulla un attacco di una LRIG)",MULTI_ENER_DESCRIPTION:"[Constant]: [Multi Ener] (Mentre paghi un costo tratta questa carta come se fosse di un qualsiasi colore)",LAYER_DESCRIPTION:"(Layer) All of your <Apparition> SIGNI get this [Layer] ability."},buttonTitle:{OK:"OK",CANCEL:"Annulla",LEVEL0_LRIG:"Seleziona LRIG",DISCARD_AND_REDRAW:"Mulligan",CHARGE:"Carica",GROW:"Grow",SUMMON_SIGNI:"Evoca",SUMMON_SIGNI_ZONE:"Zona",BANISH:"Bandisci",BOUNCE:"Rimbalza",TRASH:"Scarti",TRASH_SIGNI:"Scarta",USE_SPELL:"Usa SPELL",SPELL_EFFECT:"Scegli che effetto attivare",USE_ARTS:"Usa ARTS",ARTS_EFFECT:"Scegli che effetto attivare",SPELL_CUT_IN:"Spell cut-in",USE_ACTION_EFFECT:"Azione",SEEK:"Cerca",SET_ORDER:"Ordina",SIGNI_ATTACK:"Attacca",LRIG_ATTACK:"Attacca",GUARD:"Guard",DISCARD:"Scarta",DECLARE:"Dichiara",PAY:"Paga",PAY_EXCEED:"Exceed",DOWN:"Down",UP:"Up",TARGET:"Bersaglia",PAY_ENER:"Paga Ener",LAUNCH:"Lancia",EFFECTS:"Effetti",CONFIRM:"Conferma",END_SELECT:"Termina",END_ENER_PHASE:"Fine Ener Phase",END_GROW_PHASE:"Fine Grow Phase",END_MAIN_PHASE:"Fine Main Phase",END_ARTS_STEP:"Fine ARTS Step",END_SIGNI_ATTACK_STEP:"Fine SIGNI Attack Step",END_LRIG_ATTACK_STEP:"Fine LRIG Attack Step",VIEW:"Dettagli",ADD_TO_HAND:"Aggiungi alla mano",COLOR:"Colore",CHOOSE_EFFECT:"Seleziona effetto",CHOOSE_ZONE:"Seleziona Zona",RESET_SIGNI_ZONE:"Sostituisci",CHARM_CARD:"Charm",TRASH_CHARM:"Scarta Charm",REVEAL:"Rivela",PUT_TO_TOP:"Metti in cima",PUT_TO_BOTTOM:"Metti in fondo",REVEAL_MORE:"Rivela altre carte",PROTECT:"Protect",_SHIRONAKUJI:"-6000",CLASS:"classe",PAY_WHITE_INSTEAD:"Paga [White] invece",TRASH_OSAKI:"Scarta Osaki",RESONA:"Resona",CRASH:"Crash",PLAYER:"Player",PUT_TO_CHECK_ZONE:"Sposta nella Check Zone",PUT_TO_ENER_ZONE:"Sposta nella Ener Zone",CONFIRM_REFRESH_SELF:"Deck refresh\nConferma",CONFIRM_REFRESH_OPPONENT:"Deck refresh avversario\nConferma",GUESS_TRAP:"Is trap?",LEVEL:"level"},noOptions:{TARGET:"Nessun bersaglio"},giveUp:{TARGET:"Non selezionare",SUMMON_SIGNI_ZONE:"Cancella"},gameText:{YES:"Yes",NO:"No",white:"white",black:"black",red:"red",blue:"blue",green:"green",colorless:"
e.traditionalize(a.join("\n"))||"-"},e.burstEffectTexts=function(o){return o=CardInfo[o.cid],o.burstEffectTexts?e.traditionalize(o.burstEffectTexts[0]):"-"},e.guard=function(o){return o.guardFlag?e("_misc","GUARD_TRUE"):e("_misc","GUARD_FALSE")},e.cost=function(o){if(o.costOr)return o.costOr.map(function(o){return e("color",o)},this).join(" "+e("common","OR")+" ");var t=["costWhite","costBlack","costRed","costBlue","costGreen","costColorless"],a="";return t.forEach(function(t,r){o[t]&&(a+=e("costColor",t)+o[t]+" ")}),a||(a=e("costColor","costColorless")+"0"),a},e.timmings=function(o){return o=CardInfo[o.cid],o.timmings?o.timmings.map(function(o){return e("timming",o)}).join("\n")||"-":"-"},e.limiting=function(o){if(!o.limiting)return"";var t=o.limiting.split("/").map(function(o){return!o||e("class",o)}).join("/");return e("_misc","LIMITING",t)},e.classes=function(o){if(!o.classes)return"-";var t=e("_misc","CLASS_SEPARATOR");return o.classes.map(function(o){return"?"===o?"?":e("class",o)}).join(t)||"-"},e.desc=function(o){var t=o.split("-"),a=t[0],r=t[1],n=t[2],E=CardInfo[a];E.pid+r+n;if(!E)return o;var i={const:E.constEffectTexts,spell:E.spellEffectTexts,arts:E.artsEffectTexts,burst:E.burstEffectTexts,startup:E.startUpEffectTexts,action:E.actionEffectTexts,attached:E.attachedEffectTexts};return i[r]&&i[r][n]?e.traditionalize(i[r][n]):o},e.waitingMsg=function(){return e("_misc","WAIT")},e}();