add chinese to tool and luci package, supplement readme#116
Open
longzheng268 wants to merge 61 commits intoopenwrt-xiaomi:mainfrom
Open
add chinese to tool and luci package, supplement readme#116longzheng268 wants to merge 61 commits intoopenwrt-xiaomi:mainfrom
longzheng268 wants to merge 61 commits intoopenwrt-xiaomi:mainfrom
Conversation
Co-authored-by: longzheng268 <38132402+longzheng268@users.noreply.github.com>
Co-authored-by: longzheng268 <38132402+longzheng268@users.noreply.github.com>
…esting Co-authored-by: longzheng268 <38132402+longzheng268@users.noreply.github.com>
Add comprehensive Chinese language support with multilingual menu system 现在脚本支持中文显示,以及增设luci的中文语言包。
Added an image and description for successful SSH connection interface.
Removed donation badge and hit counter from README.
Co-authored-by: longzheng268 <38132402+longzheng268@users.noreply.github.com>
Add bootloader support for CR660x and TR60x series routers Changes Made Enhanced install_bl.py Added support for CR6006, CR6008, CR6009, TR608, TR609 devices in the breed bootloader installation Implemented device-specific bootloader file selection: CR660x/TR60x series → pb-boot-cr660x.img Existing devices (R3G, R3P, RM2100, RA71) → breed_r3g_eng.bin (unchanged) Updated device compatibility validation to include the new models Maintained full backward compatibility with existing functionality Updated Documentation Added TR608 and TR609 to the supported devices list in README.md Enhanced bootloader installation documentation with specific file mappings Added installation command reference and usage examples Updated both Chinese and English documentation sections Technical Implementation The implementation follows the specified requirements: Uses the correct MTD write command format: mtd write /tmp/pb-boot-cr660x.img Bootloader Leverages the existing pb-boot-cr660x.img file (172KB u-boot legacy image) Maintains the same installation workflow: python3 install_bl.py breed Device Support Matrix Device Series Bootloader File Status R3G, R3P, RM2100, RA71 breed_r3g_eng.bin ✅ Existing CR6606, CR6608, CR6609 pb-boot-cr660x.img ✅ New TR608, TR609 pb-boot-cr660x.img ✅ New This enhancement expands bootloader support to 5 additional router models while maintaining compatibility with all existing functionality.
…d code structure Co-authored-by: longzheng268 <38132402+longzheng268@users.noreply.github.com>
…l_bl.py Fix device model spelling errors and improve error handling in install_bl.py
Co-authored-by: longzheng268 <38132402+longzheng268@users.noreply.github.com>
Fix bootloader installation logic and improve documentation
Co-authored-by: longzheng268 <38132402+longzheng268@users.noreply.github.com>
安装原厂U-Boot引导加载器 U-Boot特点: 设备原厂Bootloader 设备特定的引导程序 用于恢复原厂引导环境 支持型号: R3G:uboot_r3g.bin R3P:uboot_r3p.bin RM2100: uboot_rm2100.bin 安装命令: python3 install_bl.py uboot...
Co-authored-by: longzheng268 <38132402+longzheng268@users.noreply.github.com>
…05-ba6b-136a88a0a3fe Fix language selection issue - show language menu on first run and enable Chinese interface
31dbce7 to
ce3c558
Compare
bfdfc38 to
7518d5d
Compare
Ensure shell scripts use LF line endings.
sed -i 's/\r$//' run.sh
小米BE6500 Pro RD08路由器1.0.46版本老固件。
pb-boot-xiaomi3-20190317-61b6d33 适用于小米路由器3的PandoraBox的Boot。
Co-authored-by: longzheng268 <38132402+longzheng268@users.noreply.github.com>
Co-authored-by: longzheng268 <38132402+longzheng268@users.noreply.github.com>
…-miwifi-r3 Add pb-boot support for Xiaomi Router 3 (R3)
4e2186f to
4c5860b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🌐 New Features
Multi-Language Menu System
Automatic Language Selection: First-time users are presented with a trilingual language selection menu
Complete Chinese Translation: All menu items, prompts, and system messages translated to Chinese
Persistent Language Settings: User language preferences are saved in config.json and remembered across sessions
Real-time Language Switching: Users can change languages by restarting the application
Enhanced Router Language Pack Support
The existing install_lang.py already supported the Chinese language pack (base.zh.po), but the menu now properly reflects this with updated descriptions showing "安装 英文/俄文/中文 语言包" instead of just EN/RU.
UTF-8 Windows Support
Updated Windows batch files (run.bat, !START.bat) to use UTF-8 encoding (chcp 65001) ensuring proper display of Chinese characters in Windows command prompt.
🖥️ Interface Examples
Language Selection Menu
Language / 语言 / Язык
1 - English
2 - 中文 (Chinese)
3 - Русский (Russian)
Select language [1-English, 2-中文, 3-Русský]:
Chinese Main Menu
小米路由器破解工具
1 - 设置IP地址 (当前值: 192.168.31.1)
2 - 连接设备 (安装漏洞利用)
3 - 读取完整设备信息
4 - 创建完整备份
5 - 安装 英文/俄文/中文 语言包
6 - 安装永久SSH
7 - 安装固件 (从 "firmware" 目录)
8 - {{{ 其他功能 }}}
9 - [[ 重启设备 ]]
0 - 退出
请选择:
🔧 Technical Implementation
New Files
i18n.py: Comprehensive internationalization module with translations for English, Chinese, and Russian
lang_config.py: Language configuration management with persistent storage
Modified Files
menu.py: Integrated multi-language support with dynamic menu generation
run.bat & !START.bat: Updated character encoding for Chinese character support
README.md: Enhanced documentation with interface previews and language setup instructions
Architecture
Modular Design: Easy to extend with additional languages
Fallback System: Graceful handling of missing translations with English fallback
Cross-platform: Compatible with Windows, Linux, and macOS environments
📸 Documentation Updates
Added interface preview screenshots to README.md showing the successful execution interface, and comprehensive documentation covering:
Language selection process
Chinese interface usage
Technical implementation details
Multi-language feature explanations
✅ Testing
Comprehensive testing confirms:
All three languages (EN/ZH/RU) display correctly
Language persistence works across application restarts
UTF-8 characters render properly in terminal environments
Error handling prevents crashes with invalid inputs
Menu formatting maintains consistency across languages
This implementation provides a seamless Chinese language experience while maintaining full backward compatibility with existing English and Russian interfaces.