Bug #11722
closedIs it possible to display the channel name in Chinese?
100%
Description
Dear Software Developer,
Thank you very much for your work on the Bolistone 8RS model walkie-talkie. Because this model of walkie-talkie supports Chinese channel names, I used the frequency writing software downloaded from the official website to input the Chinese channel name, and then read it with CHIRP and found that Chinese could not be displayed in the CHIRP software.Conversely, I was unable to input Chinese channel names in CHIRP.
Can you please solve the problem of Chinese characters being displayed normally in the CHIRP channel name table through the programming module file? This will bring convenience to many Chinese users.
As far as I know, the original factory uses GB2312 for Chinese characters. You only need to convert the code at the corresponding address of the IMG file downloaded from 8RS into Chinese characters encoded in GB2312. And it will be displayed in the corresponding table of CHIRP.
After the channel name is modified, the Chinese characters must also be converted into GB2312 code and uploaded to the corresponding address of 8RS to ensure correct display on the intercom.
I have saved the IMG file and log file of 8RS. I don't know how to give it to you. If you see this message, please send me an email at bh2rmx@gmail.com and I will send it to you. Finally, thank you very much for the development of CHIRP software.
Files
Updated by Hongguang Yang 17 days ago
- File config.txt config.txt added
- File Boristone_8RS_20241205.img Boristone_8RS_20241205.img added
- File win_system_info.txt win_system_info.txt added
- File debug_log.txt debug_log.txt added
[Uploaded from CHIRP next-20241129]
Updated by Dan Smith 17 days ago
- File radtel_rt490.py radtel_rt490.py added
Can you test the attached module via LoadingTestModules ?
I am unable to enter chinese characters (nor confirm if the ones being shown when I load your image are correct) so I need you to confirm. Also, does the radio have english/chinese mode for the display/entry that we need to honor?
Note that this only works for the affected driver, not any other drivers in chirp (as the fix is driver-specific).
Updated by Hongguang Yang 17 days ago
- File af736871-209a-47d0-a2e5-1634b28629a2.png af736871-209a-47d0-a2e5-1634b28629a2.png added
- File Boristone_8RS_20241206.img Boristone_8RS_20241206.img added
- File chirp_debug-zpcusnzn.txt chirp_debug-zpcusnzn.txt added
I tested and loaded the Radtel_rt490.py module file you gave me. Downloading 8RS data was normally, and the Chinese display of the channel name was also normally. However, modifying one of the channel names could not be retained in the table, and the channel name table became blank. Upload this modified IMG file to 8RS. The modified channel name is displayed as "unnamed" in 8RS, and the channel name without modification is displayed normally after uploading.
In other words, after reading 8RS. The Chinese channel name is displayed normally in CHIRP. After uploading 8RS without modification, the channel name is displayed normally. If the channel name is modified in CHIRP. CHIRP cannot save the entered Chinese name, and the relevant table becomes "blank". If the modified Chinese name can be saved, I think the problem is solved.
I can't submit an update through CHIRP. The prompt is as follows. I have taken a screenshot and saved it. So I logged in to the website to submit it.
The 8RS can change the interface language. You can switch between the Chinese and English interfaces at will, but you need to the software . I think the rt-490 should do the same.
Thank you very much, your response efficiency is too high. It surprises me. Thank you again for your help.
Updated by Hongguang Yang 16 days ago
- File 8RS_CN2EN.png 8RS_CN2EN.png added
One more thing to add, by comparing the IMG files read by CHIRP, there is only one difference between the IMG files of the Chinese interface and the English interface. By using the binary modification software and modifying the value of the corresponding address, the intercom can switch between the Chinese and English interfaces. The address is 3F90H. The Chinese interface is 01, and the English interface is 00. The modified IMG file is uploaded to the device through CHIRP. This can achieve the purpose. I think this should be put in the next CHIRP update version as a function option.
Updated by Dan Smith 16 days ago
- File radtel_rt490.py radtel_rt490.py added
Please test this updated module to see if it allows you to edit names in chinese now.
The bug report failure is related to your log file now having non-latin characters in it. I will need to fix that separately, but I will work on it. Also, I will add the chinese/english toggle separately.
Updated by Hongguang Yang 16 days ago
Very good, the problem has been solved perfectly, downloading and uploading are all normal, thank you very much!
Updated by Hongguang Yang 16 days ago
- File radtel_rt490_cn.py radtel_rt490_cn.py added
Translate some English names in radtel_rt490.py module into Chinese.Many thanks to the project developers for their hard work
Best Regards
Updated by Dan Smith 16 days ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset github|cc5db82a98cc64dc8cfdf3f731ac7a48eec2ccc5.
Updated by Dan Smith 16 days ago
Thanks, I will get this fix into the tree for the build next week.
We translate strings by marking them and maintaining translation tables in .po
format. The strings in this driver would need to be marked (with _("foo")
), and then the translations be provided in the zh_CN
file. Here's a recent example of a chinese translation update:
Updated by Dan Smith 16 days ago
- Related to Bug #11724: Language toggle for radtel_rt490 and related added
Updated by Dan Smith 16 days ago
- Related to Bug #11725: Log upload with UTF-8 chars fails on Windows added