From fd1ce889fa032c5e0b9b14d6f9e40a407919118d Mon Sep 17 00:00:00 2001 From: Rakau Date: Mon, 9 Jul 2018 11:04:11 +0800 Subject: [PATCH 1/6] Add Traditional Chinese and Simplified Chinese --- i18n/zh-CN.js | 30 ++++++++++++++++++++++++++++++ i18n/zh-TW.js | 30 ++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 i18n/zh-CN.js create mode 100644 i18n/zh-TW.js diff --git a/i18n/zh-CN.js b/i18n/zh-CN.js new file mode 100644 index 0000000..08cd4a4 --- /dev/null +++ b/i18n/zh-CN.js @@ -0,0 +1,30 @@ +let zhCN = { + "pageTitle" : "任天堂 Switch Payload 网页加载器", + "pageSubtitle" : "Fusee Launcher利用WebUSB移植在JavaScript上", + "dangerUpload" :"由于不可抗拒的原因,上传的Payload不起作用,目前我现在正在解决这个问题", + "dangerDanger" :"这是实验性的测试项目,目前虽然没有发现任何问题,但如果有任何问题发生,我不负责!", + "warningWindows" :"由于WebUSB在Chrome上功能受到限制(可能还有其他原因),暂不支持Windows系统。", + "warningBrowser" :"除了Chrome浏览器外,其余浏览器无法使用WebUSB", + "warningLinux" :"在Linux上,你可能会在Connect对话框中看到“Access Denied”或“No Compatible Device”的错误!如果条件允许,你可以尝试在/etc/udev/rules.d/50-switch.rules创建一个文件,添加内容如下:SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0955\", MODE=\"0664\", GROUP=\"plugdev\"", + "warningTested" :"已测试可以在Linux、OSX、Android(无Root权限)和chromebook上使用,可能你的情况稍有不同", + "labelInstructions" :"说明:", + "liRCM" :"Switch进入RCM模式并且设备已经连接完毕", + "liSelect" :"选择一个适合自己的Payload,或者你自己上传一个", + "liPress" :"点击 'Deliver Payload!'", + "liAPX" :"在出现的对话框里,选择“APX”并点击“Connect”(Android系统可能会自动加载)", + "liLaunch" :"如果一切顺利,Payload将成功加载!", + "h1SetupDelivery" :"部署 Payload", + "h4SelectPayload" :"选择 Payload:", + "optionHekateV4" :"CTCaer's Hekate Mod v3.0 (全版本)", + "optionFusee" :"(Re)Switched test payload (fusee)", + "optionSXOS" :"SX OS (全版本)", + "optionUpload" :"上传Payload", + "h4GetByteArray" :"获取Payload byte array (无Sploit)", + "goButton" :"传递Payload!", + "h3Log" :"日志:", + "clearlogsbutton" :"清除日志", + "disclaimer1" :'Source can be found on GitHub (or by hitting view source, there is no backend!).', + "disclaimer2" :'Ported from fusee-launcher.', + "disclaimer3" :'Thanks to ktemkin and ReSwitched, as well as
Atlas44 and his website as a beginning point for this one.', + "disclaimer4" :'Lastly, thanks to falquinho for the new bootstrap layout and portuguese translation, Filo97 for the italian translation, tumGER for his german translation, and Lord_Friky for the spanish translation.' +} diff --git a/i18n/zh-TW.js b/i18n/zh-TW.js new file mode 100644 index 0000000..225bea7 --- /dev/null +++ b/i18n/zh-TW.js @@ -0,0 +1,30 @@ +let zhTW = { + "pageTitle" : "任天堂 Switch Payload 網頁加載器", + "pageSubtitle" : "Fusee Launcher利用WebUSB移植在JavaScript上", + "dangerUpload" :"由於不可抗拒的原因,上傳的Payload不起作用,目前我現在正在解決這個問題", + "dangerDanger" :"這是實驗性的測試項目,目前雖然沒有發現任何問題,但如果有任何問題發生,我不負責!", + "warningWindows" :"由於WebUSB在Chrome上功能受到限制(可能還有其他原因),暫不支持Windows系統。", + "warningBrowser" :"除了Chrome瀏覽器外,其余瀏覽器無法使用WebUSB", + "warningLinux" :"在Linux上,你可能會在Connect對話框中看到“Access Denied”或“No Compatible Device”的錯誤!如果條件允許,你可以嘗試在/etc/udev/rules.d/50-switch.rules創建壹個文件,添加內容如下:SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0955\", MODE=\"0664\", GROUP=\"plugdev\"", + "warningTested" :"已測試可以在Linux、OSX、Android(無Root權限)和chromebook上使用,可能你的情況稍有不同", + "labelInstructions" :"說明:", + "liRCM" :"Switch進入RCM模式並且設備已經連接完畢", + "liSelect" :"選擇壹個適合自己的Payload,或者你自己上傳壹個", + "liPress" :"點擊 'Deliver Payload!'", + "liAPX" :"在出現的對話框裏,選擇“APX”並點擊“Connect”(Android系統可能會自動加載)", + "liLaunch" :"如果壹切順利,Payload將成功加載!", + "h1SetupDelivery" :"部署 Payload", + "h4SelectPayload" :"選擇 Payload:", + "optionHekateV4" :"CTCaer's Hekate Mod v3.0 (全版本)", + "optionFusee" :"(Re)Switched test payload (fusee)", + "optionSXOS" :"SX OS (全版本)", + "optionUpload" :"上傳Payload", + "h4GetByteArray" :"獲取Payload byte array (無Sploit)", + "goButton" :"傳遞Payload!", + "h3Log" :"日誌:", + "clearlogsbutton" :"清除日誌", + "disclaimer1" :'Source can be found on GitHub (or by hitting view source, there is no backend!).', + "disclaimer2" :'Ported from fusee-launcher.', + "disclaimer3" :'Thanks to ktemkin and ReSwitched, as well as
Atlas44 and his website as a beginning point for this one.', + "disclaimer4" :'Lastly, thanks to falquinho for the new bootstrap layout and portuguese translation, Filo97 for the italian translation, tumGER for his german translation, and Lord_Friky for the spanish translation.' +} From 9f5add297a1896af2ae055458b085ecc6e905996 Mon Sep 17 00:00:00 2001 From: Rakau Date: Mon, 9 Jul 2018 11:06:04 +0800 Subject: [PATCH 2/6] Add Chinese translation --- i18n.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/i18n.js b/i18n.js index 9be93de..190ae72 100644 --- a/i18n.js +++ b/i18n.js @@ -22,6 +22,12 @@ function setPageLanguage(lang) { else if (lang === "pl-PL") langObj = plPL; + + else if (lang === "zh-CN") + langObj = zhCN; + + else if (lang === "zh-TW") + langObj = zhTW; else langObj = enUS; From 0c42c6516007e329cbf8b810db7eaf93ecada9aa Mon Sep 17 00:00:00 2001 From: Rakau Date: Mon, 9 Jul 2018 11:07:03 +0800 Subject: [PATCH 3/6] Add Chinese translation --- index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.html b/index.html index 20d8ad3..06da10d 100644 --- a/index.html +++ b/index.html @@ -14,6 +14,8 @@ + + From e77b7e310ef83e3bd37475bac02d524ae8eff2d6 Mon Sep 17 00:00:00 2001 From: Rakau Date: Mon, 9 Jul 2018 11:08:09 +0800 Subject: [PATCH 4/6] Add Chinese translation --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index 06da10d..24b6f8d 100644 --- a/index.html +++ b/index.html @@ -47,6 +47,9 @@ Español Français Polski + 简体中文 + 繁体中文 + From dbe793304925a6bd70721a92785eeac97b343849 Mon Sep 17 00:00:00 2001 From: Rakau Date: Mon, 9 Jul 2018 11:12:25 +0800 Subject: [PATCH 5/6] Update Simplified Chinese Translation --- i18n/zh-CN.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/i18n/zh-CN.js b/i18n/zh-CN.js index 08cd4a4..d8db23e 100644 --- a/i18n/zh-CN.js +++ b/i18n/zh-CN.js @@ -10,18 +10,17 @@ let zhCN = { "labelInstructions" :"说明:", "liRCM" :"Switch进入RCM模式并且设备已经连接完毕", "liSelect" :"选择一个适合自己的Payload,或者你自己上传一个", - "liPress" :"点击 'Deliver Payload!'", + "liPress" :"点击 '传递 Payload!'", "liAPX" :"在出现的对话框里,选择“APX”并点击“Connect”(Android系统可能会自动加载)", "liLaunch" :"如果一切顺利,Payload将成功加载!", "h1SetupDelivery" :"部署 Payload", "h4SelectPayload" :"选择 Payload:", - "optionHekateV4" :"CTCaer's Hekate Mod v3.0 (全版本)", + "optionCTCaerHekate" :"CTCaer's Hekate Mod v3.0 (全版本)", "optionFusee" :"(Re)Switched test payload (fusee)", "optionSXOS" :"SX OS (全版本)", - "optionUpload" :"上传Payload", + "optionUpload" :"上传 Payload", "h4GetByteArray" :"获取Payload byte array (无Sploit)", - "goButton" :"传递Payload!", - "h3Log" :"日志:", + "goButton" :"传递 Payload!", "clearlogsbutton" :"清除日志", "disclaimer1" :'Source can be found on GitHub (or by hitting view source, there is no backend!).', "disclaimer2" :'Ported from fusee-launcher.', From c508f0574ff43636888be0a3e2d35d7e60e1485c Mon Sep 17 00:00:00 2001 From: Rakau Date: Mon, 9 Jul 2018 11:14:42 +0800 Subject: [PATCH 6/6] Update Traditional Chinese Translation --- i18n/zh-TW.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/i18n/zh-TW.js b/i18n/zh-TW.js index 225bea7..284e237 100644 --- a/i18n/zh-TW.js +++ b/i18n/zh-TW.js @@ -10,18 +10,17 @@ let zhTW = { "labelInstructions" :"說明:", "liRCM" :"Switch進入RCM模式並且設備已經連接完畢", "liSelect" :"選擇壹個適合自己的Payload,或者你自己上傳壹個", - "liPress" :"點擊 'Deliver Payload!'", + "liPress" :"點擊 '傳遞 Payload!'", "liAPX" :"在出現的對話框裏,選擇“APX”並點擊“Connect”(Android系統可能會自動加載)", "liLaunch" :"如果壹切順利,Payload將成功加載!", "h1SetupDelivery" :"部署 Payload", "h4SelectPayload" :"選擇 Payload:", - "optionHekateV4" :"CTCaer's Hekate Mod v3.0 (全版本)", + "optionCTCaerHekate" :"CTCaer's Hekate Mod v3.0 (全版本)", "optionFusee" :"(Re)Switched test payload (fusee)", "optionSXOS" :"SX OS (全版本)", "optionUpload" :"上傳Payload", "h4GetByteArray" :"獲取Payload byte array (無Sploit)", "goButton" :"傳遞Payload!", - "h3Log" :"日誌:", "clearlogsbutton" :"清除日誌", "disclaimer1" :'Source can be found on GitHub (or by hitting view source, there is no backend!).', "disclaimer2" :'Ported from fusee-launcher.',