Feature language snorca (#77)

* Fix: MultiLanguage

* Update: Flutter 1220
This commit is contained in:
xiaoyeliu
2025-12-20 10:43:31 +08:00
committed by GitHub
parent d2a991751a
commit 4c53a8e0c1
17 changed files with 90216 additions and 89627 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -252,6 +252,7 @@
"Flow Calibration": "Flow Calibration",
"Time-Lapse Photography": "Time-Lapse Photography",
"Start Print": "Start Print",
"layer": "layer",
"dialog_device_control_modify_heated_bed_temperature_tips": "Heated bed temperature must be set between 0°C and 100°C",
"dialog_device_control_modify_print_speed_tips": "Print speed must be set between 50% and 150%",
@@ -264,10 +265,12 @@
"bind_device_tip_format": "Confirm to bind the printer {} with the current account?",
"Filament auto feed": "Filament auto feed",
"Filament auto feed description": "Automatic Feeding\n· Insert the 3D printer filaments into the corresponding feeding port until the indicator light of the corresponding feeding port lights up. The device will pre-load the materials, and the feeding will be automatic when the printing starts.\nFilaments Information\n· Official 3D printer filaments information will be recognized by the device. For non-official filaments, the material information needs to be manually edited.\nAutomatic Resume Printing\n· When a filament break occurs during printing, if the device is equipped with the same brand, type, and color of filaments, the device will automatically resume printing.",
"cancel_print_confirm_title": "Tips",
"cancel_print_confirm_message": "Cancel printing Do you want to cancel the printing task ? ",
"cancel_print_confirm_yes": "Confirm",
"cancel_print_confirm_no": "Cancel",
"Tips": "Tips",
"close_led_confirm_message": "AI monitoring is enabled. Turning off the LED may reduce detection accuracy. Turn it off anyway?",
"Refresh More": "Refresh More",
"downloading_desc_format": "{}downloading...({}%)",
@@ -287,13 +290,28 @@
"dialog_filament_type_not_match_tips": "This nozzle filament type does not match the preset filament type of the model. Please replace this nozzle filament type or change the preset filament type",
"dialog_filament_type_none_tips": "Filaments were not identified. Please mount the filaments on the device or edit the filament information",
"Features are under development, please stay tuned": "Features are under development, please stay tuned",
"delete_selected_files_confirm_title": "Confirm Delete Selected Files",
"delete_selected_files_confirm_message": "Are you sure you want to delete the selected files? This action cannot be undone.",
"clear_all_files_confirm_title": "Confirm Clear All Files",
"clear_all_files_confirm_message": "Are you sure you want to clear all recent files? This action cannot be undone.",
"delete_confirm_yes": "Confirm Delete",
"delete_confirm_no": "Cancel",
"Confirm Delete": "Confirm Delete",
"connect_devcice_fail_tip_format": "Connect {} failed, please reselect your device and connect.",
"time_lapse_video_loaded_failed": "Time Lapse Video loaded failed.",
"time_lapse video_export_format": "Time Lapse Video {} exported.",
"time_lapse_video_export_button_text_format": "Export ({})",
"time_lapse_video_delete_button_text_format": "Delete ({})",
"delete_time_lapse_title": "Delete Time-lapse Video",
"delete_time_lapse_desc": "Do you want to delete this video?",
"delete_time_lapse_success": "Delete video success",
"delete_time_lapse_failed_format": "Delete video failed {}",
"time_lapse_video_downloaded_success_format": "Video {} downloaded",
"time_lapse_video_downloaded_success_2_format": "Video {} downloadedbut export video failed",
"time_lapse_video_start_downloading": "Start downloading...",
"time_lapse_video_export_video_failed": "Export video failed",
"Check": "Check",
"default_exception_title": "Exception",
@@ -725,5 +743,10 @@
"error_0001053100000007_title": "System Anomaly",
"error_0001053100000007_desc": "Cloud print file download failed. Check your network connection and retry. If issue persists, contact technical support.",
"error_0001053100000008_title": "System Anomaly",
"error_0001053100000008_desc": "USB flash drive read anomaly. Ensure the USB flash drive is properly connected and retry. If issue persists, contact technical support."
"error_0001053100000008_desc": "USB flash drive read anomaly. Ensure the USB flash drive is properly connected and retry. If issue persists, contact technical support.",
"camera_turn_off_countdown": "Camera turn-off countdown",
"continue_camera": "Continue",
"camera_auto_shutdown_message": "The camera has been unused for a long time. To reduce power consumption, it has automatically shut down.",
"got_it": "Got it",
"monitoring_module_hibernated": "Note : Monitoring Module hibernated. Click Play to wake it up."
}

View File

@@ -107,8 +107,26 @@
"Authorizing timeout!": "授权超时!",
"Network connection failed. Please check your network connection.": "网络连接失败,请检查您的网络连接",
"Server internal error, please try again later.": "服务器内部错误,请稍后重试",
"Start monitoring timeout, please try again later.": "启动监控超时,请稍后重试",
"Other error, please try again later.": "其他错误,请稍后重试",
"Camera start failed": "摄像头开启失败",
"Camera started successfully": "摄像头开启成功",
"Camera stop failed": "摄像头关闭失败",
"Method not found": "设备未实现此功能",
"Camera loading failed. Please try again.": "摄像头加载失败,请重试",
"Camera request has been rejected. Please try again.": "摄像头请求被拒绝,请重试",
"The image upload failed. Please try again.": "画面上传失败,请重试",
"Unable to obtain device resources, please try again later.": "无法获取设备资源,请稍后再试",
"Request timeout, please try again later.": "请求超时,请稍后重试",
"Set led failed": "设置LED失败",
"Set led success": "设置LED成功",
@@ -203,7 +221,7 @@
"Refresh completed": "刷新完成",
"Refresh failed": "刷新失败",
"User not logged in": "用户未登录",
"Not logged in account": "未登录账户",
@@ -289,7 +307,9 @@
"Cannot get connected machine info, please check the device and try again.": "无法获取设备信息,请检查设备并重试",
"Timeout: Cannot get file filament mapping": "无法获取文件耗材映射信息",
"Cannot load file content": "无法加载文件内容",
"uploadFile requires the printer to be online, currently the printer is not online": "上传文件需要设备在线,当前设备不在线",
"Confirm": "确认",
"device_input_pin_code_desc": "请输入PIN码.",
"device_input_pin_code_tips_desc": "请输入8位PIN码",
@@ -408,6 +428,7 @@
"Flow Calibration": "流量校准",
"Time-Lapse Photography": "延时摄影",
"Start Print": "开始打印",
"layer": "层",
"Preferences": "偏好设置",
"dialog_device_control_modify_heated_bed_temperature_tips": "温度必须在0°C到100°C之间",
@@ -479,10 +500,13 @@
"dialog_file_upload_success_to_device_tips": "文件{}已上传到设备,发起打印...",
"dialog_file_upload_success_to_cloud_tips": "文件{}已上传到云服务,发起打印...",
"dialog_file_send_success_to_device_tips": "文件{}已发送成功到设备",
"cancel_print_confirm_title": "提示",
"cancel_print_confirm_message": "您确认要终止本次打印任务么?",
"cancel_print_confirm_yes": "确认",
"cancel_print_confirm_no": "取消",
"Tips": "提示",
"close_led_confirm_message": "设备已开启 AI 监控 ,关闭 LED 会影响检测效果。确定关闭吗?",
"No printing information": "暂无打印信息",
"Refresh More": "刷新更多",
"downloading_desc_format": "{},下载中...({}%)",
@@ -505,6 +529,10 @@
"dialog_filament_type_not_match_tips": "此喷嘴耗材类型与模型预设耗材类型不匹配,请更换该喷嘴耗材类型或更改预设耗材类型",
"dialog_filament_type_none_tips": "未识别到耗材,请在设备上挂载耗材或编辑耗材信息",
"Features are under development, please stay tuned": "功能开发中, 敬请期待",
"File uploaded successfully": "文件上传成功",
"close this page": "关闭此页面",
"The device failed to upload the model file. Please check the device network and upload it again.": "设备上传模型文件失败,请检查设备网络并重新上传",
"The device is currently processing the offline state, please check the device and try again.": "当前设备处于离线状态,请检查设备并重试",
"No time-lapse video": "暂无延时摄影视频",
@@ -521,13 +549,27 @@
"this command requires the printer to be online, currently the printer is not online": "当前设备不在线",
"Bind device failed, please check if pin code is correct.": "绑定失败,可能是 PIN 码输入错误或者是 PIN 码检测失败",
"Bind device failed, please check if device locale setting is not same as client.": "绑定失败,软件与设备区域设置不一致",
"delete_selected_files_confirm_title": "确认删除选中文件",
"delete_selected_files_confirm_message": "确定要删除选中的文件吗?此操作无法撤销。",
"clear_all_files_confirm_title": "确认清空所有文件",
"clear_all_files_confirm_message": "确定要清空所有最近文件吗?此操作无法撤销。",
"delete_confirm_yes": "确认",
"delete_confirm_no": "取消",
"Confirm Delete": "确认",
"connect_devcice_fail_tip_format": "连接{}失败,请重新选择设备并连接",
"time_lapse_video_loaded_failed": "延时摄影视频加载失败",
"time_lapse video_export_format": "延时摄影视频已导出 {} ",
"time_lapse_video_export_button_text_format": "导出 ({})",
"time_lapse_video_delete_button_text_format": "删除 ({})",
"delete_time_lapse_title": "删除延时摄影视频",
"delete_time_lapse_desc": "确定要删除这个视频吗?",
"delete_time_lapse_success": "删除视频成功",
"delete_time_lapse_failed_format": "删除视频失败 {}",
"time_lapse_video_downloaded_success_format": "视频 {} 已下载",
"time_lapse_video_downloaded_success_2_format": "视频 {} 已下载,但导出视频到相册失败",
"time_lapse_video_start_downloading": "正在下载视频……",
"time_lapse_video_export_video_failed": "导出视频失败",
"Check": "查看",
"default_exception_title": "异常",
@@ -959,5 +1001,10 @@
"error_0001053100000007_title": "系统异常",
"error_0001053100000007_desc": "云打印文件下载失败。请确保网络连接正常,然后重试。若仍出现异常,请联系技术支持。",
"error_0001053100000008_title": "系统异常",
"error_0001053100000008_desc": "U 盘读取异常。请确保 U 盘连接正常,然后重试。若仍出现异常,请联系技术支持。"
"error_0001053100000008_desc": "U 盘读取异常。请确保 U 盘连接正常,然后重试。若仍出现异常,请联系技术支持。",
"camera_turn_off_countdown": "摄像机关闭倒计时",
"continue_camera": "继续播放",
"camera_auto_shutdown_message": "摄像头长时间未使用,为了节省电量,已自动关闭。",
"got_it": "知道了",
"monitoring_module_hibernated": "提示:监控模块已休眠,点击播放按钮即可唤醒"
}

View File

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

@@ -11,6 +11,6 @@ _flutter.buildConfig = {"engineRevision":"b8800d88be4866db1b15f8b954ab2573bba996
_flutter.loader.load({
serviceWorkerSettings: {
serviceWorkerVersion: "2707943714"
serviceWorkerVersion: "345308994"
}
});

View File

@@ -3,52 +3,52 @@ const MANIFEST = 'flutter-app-manifest';
const TEMP = 'flutter-temp-cache';
const CACHE_NAME = 'flutter-app-cache';
const RESOURCES = {"flutter_bootstrap.js": "0ecfa88f40122a867d56e3a66130847b",
"version.json": "a972d2964490eb0fc191dbb666aed4a2",
"index.html": "7b2dc2a5d9e42027c3cfde9fad780463",
"/": "7b2dc2a5d9e42027c3cfde9fad780463",
"main.dart.js": "d47922169d61a36b0182a0cc38f6ec89",
const RESOURCES = {"flutter_bootstrap.js": "3accb87bab067930d5ea4df09b958ed1",
"version.json": "aa4e551bb4c632d6feb5aa1293dacb4b",
"index.html": "0ea1997f6c2c3b34b0f1fb58390e10c7",
"/": "0ea1997f6c2c3b34b0f1fb58390e10c7",
"main.dart.js": "3705dd91ab85b7430308b767fd05b17d",
"flutter.js": "f31737fb005cd3a3c6bd9355efd33061",
"version.changelog": "e1273922f2c1f7b576d1a322c2c12621",
"version.changelog": "1ba1bc2d44d055158f7719b3b2ffe3a7",
"favicon.png": "be8d1ab28c20907c9869c345d0482962",
"icons/Icon-192.png": "ab1f25ced1559729e334de938eae91a5",
"icons/Icon-maskable-192.png": "e41e8489c0f6a822acf8dab362e112b7",
"icons/Icon-maskable-512.png": "4870fb6720f4fcad016cb582589d136d",
"icons/Icon-512.png": "343022ac1c56796cb7ff635faf0646ef",
"manifest.json": "901d86fb8842ec0d66225a542131d689",
"assets/AssetManifest.json": "5083171b6bc747101791dccec8bbf7c9",
"assets/AssetManifest.json": "572cd2f45a7d907f2c576360c8092436",
"assets/NOTICES": "d453b0291cf6ccfc5ced86766a1aa652",
"assets/FontManifest.json": "0dc3d44d47c5e2636cdca4babafb2396",
"assets/AssetManifest.bin.json": "4ef2687ac8aa34cfa80b747e244b03d2",
"assets/AssetManifest.bin.json": "e72798ebb7b8e3e8dc24e6d5b654367d",
"assets/packages/lava_device_control/assets/files/filament.json": "54d21ade78e6cd6025306530023b094d",
"assets/packages/cupertino_icons/assets/CupertinoIcons.ttf": "391ff5f9f24097f4f6e4406690a06243",
"assets/packages/fluttertoast/assets/toastify.js": "56e2c9cedd97f10e7e5f1cebd85d53e3",
"assets/packages/fluttertoast/assets/toastify.css": "a85675050054f179444bc5ad70ffc635",
"assets/packages/wakelock_plus/assets/no_sleep.js": "7748a45cd593f33280669b29c2c8919a",
"assets/shaders/ink_sparkle.frag": "ecc85a2e95f5e9f53123dcaf8cb9b6ce",
"assets/AssetManifest.bin": "c9bdf5f16549a49a647a8b05eaae2562",
"assets/fonts/MaterialIcons-Regular.otf": "e932821512cd2fe1387697cf15437c01",
"assets/assets/i10n/zh-CN.json": "cb49d198fcd3beefebbbe51e67c32dd2",
"assets/assets/i10n/en.json": "24555469950ba66952676568feb6a5ab",
"assets/AssetManifest.bin": "ec14f41f2245ce53816edc5119edb005",
"assets/fonts/MaterialIcons-Regular.otf": "aa361df3c4cfa80e7a16cc8899e3c663",
"assets/assets/i10n/zh-CN.json": "51a769e670db66f1549170e3be59b383",
"assets/assets/i10n/en.json": "3a108bc7c186713a32afbf9efdcc67d5",
"assets/assets/images/deviceNoResponse.webp": "1ca23a7feedfdc34362ea5789ccf895b",
"assets/assets/images/deviceAuthorized.webp": "8eb814193bed15cec22658018871aba8",
"assets/assets/images/IpInputGuide.webp": "06c11ce1dadc2910676aec6d40a5eea5",
"assets/assets/images/deviceDisplayDefault.webp": "ea13b4cb58c0a38e8cf15f7033a07833",
"assets/assets/images/deviceAuthorizing.webp": "ad1b45a33b70fe2e551a343cab248de3",
"assets/assets/images/expectation.webp": "1fbebbcb5401021d91ae38864ec3a5c1",
"assets/assets/images/deviceNotConnected.webp": "3ccdf2ed043b26f62a4fa47e5ee69bdf",
"assets/assets/images/gcodeCover.png": "cd7e5c13429bc568b1c3ed8b3953ba86",
"assets/assets/images/deviceRejected.png": "cb02f340100006ad22965c215fc6726c",
"assets/assets/images/deviceNoNetwork.webp": "e3f9e38c9bea5b8dd88f5729287bb23b",
"assets/assets/images/deviceAuthorizing.png": "ad1b45a33b70fe2e551a343cab248de3",
"assets/assets/images/printtaskDefault.png": "2d53add29c1647300def2ec024574307",
"assets/assets/images/deviceRejected.webp": "cb02f340100006ad22965c215fc6726c",
"assets/assets/images/ipInputGuideCN.webp": "6ff23fea6ac4212d222500ba1cbbddcf",
"assets/assets/images/deviceInvalidVersion.png": "66e3b61ac908b900761bf014e92c1d3d",
"assets/assets/images/bindPrinter.png": "b35f610897d7c4e891f3b0dc56d193f7",
"assets/assets/images/3dprinter.png": "4515f02e633d58a1119c2f55114da32b",
"assets/assets/images/logo.png": "b1a7a2105873616de883cf2662a2bf9c",
"assets/assets/images/controlDefault.png": "1122ed99c68469d307335e55350c2bff",
"assets/assets/images/filamentDefault.png": "e3b141369c0b9f85c880f4c070885222",
"assets/assets/images/deviceAuthorized.png": "8eb814193bed15cec22658018871aba8",
"assets/assets/images/defaultEmpty.png": "a0cd09ca961ed194dae6b02cde0230b2",
"assets/assets/images/deviceNotConnected.png": "3ccdf2ed043b26f62a4fa47e5ee69bdf",
"assets/assets/images/deviceInvalidVersion.webp": "66e3b61ac908b900761bf014e92c1d3d",
"assets/assets/svgs/iconMainCooling.svg": "55b38461348e477abac33fdda8f98e32",
"assets/assets/svgs/iconCloseWhite.svg": "21e00e7b7a7031241d82983eef24b416",
"assets/assets/svgs/iconClose.svg": "f6db4c0e4369cc05ae28d3bea8d5b1ad",

View File

@@ -60,15 +60,31 @@
sequence_id: 1222222,
command: "homepage_test_browser",
params: {
url: "https://snapmaker.com",
title: "Snapmaker",
url: "http://localhost:7357/?locale=zh-cn-CN&dark_model=1&path=/",
},
});
// 调用 window.postMessage 传递消息给 flutter
window.wx && window.wx.postMessage(message); // 调用 window.postMessage 传递消息给 原生系统
///模拟收到响应结果5000
if(!window.wx) {
// 我不能发现 window.wx
// 我不能发现 window.wx
console.log('i dont find window.wx, so i simulate a return by postMessage, message: ', message)
}
}
function open_snapmaker_browser() {
const message = JSON.stringify({
sequence_id: 1222222,
command: "sw_OpenBrowser",
params: {
url: "http://localhost:7357/?locale=zh-cn-CN&dark_model=1&path=/",
},
});
// 调用 window.postMessage 传递消息给 flutter
window.wx && window.wx.postMessage(message); // 调用 window.postMessage 传递消息给 原生系统
///模拟收到响应结果5000
if(!window.wx) {
// 我不能发现 window.wx
console.log('i dont find window.wx, so i simulate a return by postMessage, message: ', message)
}
}

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
# Changelog
- 修复设备状态,设备卡片的数据和状态同步
- 上传并打印添加设备后,耗材获取有异常出现
- 修复局域网连接打开监控失败
- 优化体验

View File

@@ -1 +1 @@
{"app_name":"orca","version":"2.1.2","build_number":"20251211121014","package_name":"orca"}
{"app_name":"orca","version":"2.1.2","build_number":"20251220014808","package_name":"orca"}