Greasy Fork镜像 支持简体中文。

BREED bootloader English translation

BREED bootloader for Xiaomi Mi Router 3G translation

  1. // ==UserScript==
  2. // @name BREED bootloader English translation
  3. // @description BREED bootloader for Xiaomi Mi Router 3G translation
  4. // @namespace breed_mi_r3g_en
  5. // @version 20191018.1
  6. // @author LESHIY_ODESSA, dartraiden
  7. // @include http://192.168.1.1/*
  8. // ==/UserScript==
  9.  
  10. (function () {
  11.  
  12. function findAndReplace(searchText, replacement, searchNode) {
  13. if (!searchText || typeof replacement === 'undefined') {
  14. // Throw error here if you want...
  15. return;
  16. }
  17. var regex = typeof searchText === 'string' ? new RegExp(searchText, 'g') : searchText,
  18. childNodes = (searchNode || document.body).childNodes,
  19. cnLength = childNodes.length;
  20. excludes = 'html,head,style,title,link,meta,script,object,iframe';
  21. while (cnLength--) {
  22. var currentNode = childNodes[cnLength];
  23. if (currentNode.nodeType === 1 && (',' + excludes + ',').indexOf(',' + currentNode.nodeName.toLowerCase() + ',') === -1) {
  24. arguments.callee(searchText, replacement, currentNode);
  25. }
  26. if (currentNode.nodeType !== 3 || !regex.test(currentNode.data) ) {
  27. continue;
  28. }
  29. var parent = currentNode.parentNode,
  30. frag = (function(){
  31. var html = currentNode.data.replace(regex, replacement),
  32. wrap = document.createElement('div'),
  33. frag = document.createDocumentFragment();
  34. wrap.innerHTML = html;
  35. while (wrap.firstChild) {
  36. frag.appendChild(wrap.firstChild);
  37. }
  38. return frag;
  39. })();
  40. parent.insertBefore(frag, currentNode);
  41. parent.removeChild(currentNode);
  42. }
  43. }
  44.  
  45. function translate() {
  46. var ts = {
  47. // The order matters - the shorter the string is, the lower it is, otherwise short strings will take precedence if they occur as part of long strings
  48. "如果超频后无法开机,请按住复位键再通电,系统将以默认频率启动":"If you cannot turn on the power after overclocking, press and hold the reset button and power on, the system will start at the default frequency",
  49. "设置当前刷入固件的类型,以便于在启动固件时设置特定的参数":"Set the type of current firmware so that specific parameters are set when the firmware is started.",
  50. "本产品仅供个人免费使用,禁止用于商业目的":"This product is for personal use only and is forbidden for commercial use.",
  51. "请选择正确的固件类型,错误选择可能损坏固件。":"Please select the correct firmware type, wrong selection may damage the firmware.",
  52. "本页面不会自动刷新,请自行检查是否重启成功。":"This page will not be automatically refreshed. Please check if the restart was successful",
  53. "同一时间只允许有一个备份任务":"Only one backup task is allowed at a time.",
  54. // For unknown reason, the string is not translated if it contains a value that must be a multiple of the size of the EEPROM, so string is split into two parts
  55. "EEPROM 大小是":"EEPROM size must be a multiple of",
  56. " 的整倍数":"",
  57. "以恢复出厂设置。":"to restore factory settings.",
  58. "更新完成,设备正在重启。本页面不会刷新,请手动检查设备状态。":"Restarting. This page will not be refreshed. Check the device status manually.",
  59. "正在更新固件,请耐心等待至进度条完成":"Updating firmware, please be patient until the progress bar is completed.",
  60. "警告:在操作进行过程中请不要断开电源":"WARNING: Do not turn off power during the operation.",
  61. "更新完成,2 秒后跳转到系统信息页面。":"Successfully completed, will jump to the «System information» page after 2 seconds",
  62. "操作完成,2 秒后跳转到系统信息页面。":"The operation is completed, will jump to the «System information» page after 2 seconds",
  63. "作完成,2 秒后跳转到系统信息页面。":"The operation is completed, will jump to the «System information» page after 2 seconds",
  64. "请选择一个有效的Firmware type":"Please select a valid firmware type.",
  65. "当前固件不是一个有效的 Padavan 固件。":"Current firmware is not a valid Padavan firmware.",
  66. "当前Firmware不是一个有效的 Padavan Firmware.":"Current firmware is not a valid Padavan firmware.",
  67. "单击按钮备份相应的数据":"Click the button to back up the corresponding data.",
  68. "按钮以重启路由":"button to restart router.",
  69. "正在擦除 编程器固件":"Erasing",
  70. "正在擦除 固件设置":"Erasing",
  71. "正在擦除 固件":"Erasing",
  72. "正在擦除 Bootloader":"Erasing",
  73. "正在擦除 EEPROM":"Erasing",
  74. "正在校验 编程器固件 擦除块":"Verifying erased blocks",
  75. "正在校验 固件 擦除块":"Verifying erased blocks",
  76. "正在校验 Bootloader 擦除块":"Verifying erased blocks",
  77. "正在校验 EEPROM 擦除块":"Verifying erased blocks",
  78. "正在写入 编程器固件":"Writing",
  79. "正在写入 固件":"Writing",
  80. "正在写入 Bootloader":"Writing",
  81. "正在写入 EEPROM":"Writing",
  82. "正在校验 编程器固件 数据":"Verifying data",
  83. "正在校验 固件 数据":"Verifying data",
  84. "正在校验 Bootloader 数据":"Verifying data",
  85. "正在校验 EEPROM 数据":"Verifying data",
  86. "MAC 地址已经被成功修改":"The MAC address has been successfully modified",
  87. "上传的 Bootloader 无效":"Bootloader is damaged or invalid.",
  88. "此固件不是小米 R3G 固件":"This firmware is not Xiaomi R3G firmware.",
  89. "编程器固件大小不合法,不能判定为有效的编程器固件。":"The dump size is incorrect and cannot be judged as valid dump.",
  90. "无法判断固件类型":"Unable to detect firmware type.",
  91. "文件已上传,请确认下方列出的信息":"The file has been uploaded, please confirm the information listed below.",
  92. "小米路由器 3G 原厂固件":"Stock firmware",
  93. "MAC 地址修改":"MAC addresses",
  94. "恢复出厂设置":"Factory Reset",
  95. "文件未找到":"Not found",
  96. "请求的页面不存在。":"The requested page does not exist.",
  97. "浏览器不支持 Ajax!":"The browser does not support AJAX!",
  98. "Breed 内部错误!":"Breed internal error!",
  99. "校验失败,请重试!":"The verification failed, please try again!",
  100. "擦除操作正在进行,请耐心等待至进度条完成":"The reset operation is in progress, please wait until the progress bar is completed.",
  101. "您选择的操作正在进行":"The operation you selected is in progress.",
  102. "保留现有 Bootloader":"Keep existing bootloader",
  103. "保留现有 EEPROM":"Keep existing EEPROM",
  104. "环境变量编辑":"Environment variables",
  105. "Breed Web 恢复控制台":"Breed Web Recovery Console",
  106. "通信错误":"Connection error",
  107. "小米路由器 3G 固件 1":"Partition 1",
  108. "小米路由器 3G 固件 2":"Partition 2",
  109. "小米 R3G 设置":"Settings",
  110. "配置已被成功更新。":"Settings has been successfully updated",
  111. "环境变量已被成功更新。":"Environment variables have been successfully updated",
  112. "Bdata 已被成功更新。":"Bdata has been successfully updated",
  113. "系统信息":"System information",
  114. "固件更新":"Firmware update",
  115. "更新确认":"Confirm update",
  116. "路由正在重启,请耐心等待。":"The router is restarting, please wait.",
  117. "路由正在重启":"Router is restarting",
  118. "固件启动设置":"Startup settings",
  119. "常规固件":"Regular firmware",
  120. "编程器固件":"Full dump",
  121. "小米 R3G Bdata":"Bdata",
  122. "自动重启":"Automatic restart",
  123. "正在等待":"Waiting",
  124. "闪存布局":"Flash layout",
  125. "RT6855/RT6856/MT7621 独立参数":"Independent parameters of RT6855/RT6856/MT7621",
  126. "固件类型":"Firmware type",
  127. "频率设置":"Overclocking",
  128. "固件备份":"Firmware backup",
  129. "操作正在进行":"Operation is in progress",
  130. "内存":"RAM",
  131. "单击":"Click",
  132. "以太网":"Ethernet",
  133. "时钟频率":"Frequency",
  134. "编译日期":"Build date",
  135. "文件名":"Filename",
  136. "大小":"Size",
  137. "MD5 校验":"MD5 sum",
  138. "版本":"Version",
  139. "类型":"Type",
  140. "固件":"Firmware",
  141. "上传":"Upload",
  142. "执行":"Execute",
  143. "字段":"Field",
  144. "值":"Value",
  145. "删除":"Delete",
  146. "添加":"Add",
  147. "保存":"Save",
  148. "修改":"Modify",
  149. "重启":"Restart",
  150. "关于":"About",
  151. "修订号":"Revision",
  152. "联系作者":"Contact author",
  153. "更新:":"Latest version: ",
  154. "更新":"Update",
  155. "错误":"Error",
  156. "提示":"Prompt",
  157. "返回":"Return",
  158. "。":".",
  159. };
  160. for(var t in ts) {
  161. findAndReplace(t,ts[t]);
  162. }
  163. setTimeout(translate, 500);
  164. }
  165.  
  166. setTimeout(translate, 500);
  167.  
  168. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址