Project

General

Profile

Actions

Bug #11722

closed

Is it possible to display the channel name in Chinese?

Added by Hongguang Yang 17 days ago. Updated 16 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
12/05/2024
Due date:
% Done:

100%

Estimated time:
Chirp Version:
next
Model affected:
Boristone 8RS
Platform:
Windows
Debug Log:
I read the instructions above:
Yes

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

config.txt (2.08 KB) config.txt Hongguang Yang, 12/05/2024 02:29 AM
Boristone_8RS_20241205.img (16.2 KB) Boristone_8RS_20241205.img Hongguang Yang, 12/05/2024 02:29 AM
win_system_info.txt (38.2 KB) win_system_info.txt Hongguang Yang, 12/05/2024 02:29 AM
debug_log.txt (5.32 KB) debug_log.txt Hongguang Yang, 12/05/2024 02:29 AM
radtel_rt490.py (66.6 KB) radtel_rt490.py Dan Smith, 12/05/2024 08:06 AM
af736871-209a-47d0-a2e5-1634b28629a2.png (16.5 KB) af736871-209a-47d0-a2e5-1634b28629a2.png can not be reported and this prompt message appears at the end Hongguang Yang, 12/05/2024 07:38 PM
Boristone_8RS_20241206.img (16.2 KB) Boristone_8RS_20241206.img channel name is modified in CHIRP Hongguang Yang, 12/05/2024 07:44 PM
chirp_debug-zpcusnzn.txt (414 KB) chirp_debug-zpcusnzn.txt Saved DEBUG file Hongguang Yang, 12/05/2024 07:50 PM
8RS_CN2EN.png (66 KB) 8RS_CN2EN.png Hongguang Yang, 12/05/2024 08:40 PM
radtel_rt490.py (66.6 KB) radtel_rt490.py Updated chinese name driver Dan Smith, 12/05/2024 09:17 PM
radtel_rt490_cn.py (66.7 KB) radtel_rt490_cn.py Hongguang Yang, 12/06/2024 05:00 AM

Related issues 2 (0 open2 closed)

Related to Bug #11724: Language toggle for radtel_rt490 and relatedClosed12/06/2024

Actions
Related to Bug #11725: Log upload with UTF-8 chars fails on WindowsClosed12/06/2024

Actions
Actions #2

Updated by Dan Smith 17 days ago

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 16 days ago

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.

Actions #4

Updated by Hongguang Yang 16 days ago

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.

Actions #5

Updated by Dan Smith 16 days ago

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.

Actions #6

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!

Actions #7

Updated by Hongguang Yang 16 days ago

Translate some English names in radtel_rt490.py module into Chinese.Many thanks to the project developers for their hard work

Best Regards

Actions #8

Updated by Dan Smith 16 days ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #9

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:

https://github.com/kk7ds/chirp/pull/1166

Actions #10

Updated by Dan Smith 16 days ago

  • Related to Bug #11724: Language toggle for radtel_rt490 and related added
Actions #11

Updated by Dan Smith 16 days ago

  • Related to Bug #11725: Log upload with UTF-8 chars fails on Windows added
Actions

Also available in: Atom PDF