Localisation support (foreign languages)

bh8sel
Posts: 4
Joined: Tue Mar 31, 2020 9:47 am

Re: Localistion support (foreign languages)

Post by bh8sel » Tue Apr 07, 2020 10:34 am

Hi Daniel,

good news - Thanks :)

Enclosed my first version:

Code: Select all

{
.LANGUAGE_NAME =“中文”,
.language =“语言”,
.menu =“菜单”,
.credits =“信用”,
.zone =“区域”,
.rssi =“ RSSI”,
.battery =“电池”,
.contacts =“联系人”,
.firmware_info =“固件信息”,
.last_heard =“最后一次听到”,
.options =“选项”,
.display_options =“显示选项”,
.channel_details =“频道详情”,
.new_contact =“新建联系人”,
.contact_list =“联系人列表”,
.hotspot_mode =“热点模式”,
.contact_details =“联系方式”,
.batteryVoltage =“%d。%dV”,
.built =“内置”,
.built =“内置”,
.zones =“区域”,
.keypad_locked =“键盘已锁”,
.press_blue_plus_star =“蓝色键+*”,
.to_unlock =“解锁”,
.unlocked =“未锁”,
.power_off =“关机”,
.error =“错误”,
.rx_only =“仅接收”,
.out_of_band =“带外”,
.timeout =“暂停”,
.tg_entry =“TG入口”,
.pc_entry =“PC入口”,
.user_dmr_id =“用户DMR ID”,
.contact =“联系人”,
.displayRxFreq =“%d。%05d MHz”,
.accept_call =“接听呼叫?”,
.private_call =“单呼”,
.squelch =“静噪”,
.vfoRxFreq =“%cR%d。%05d MHz”,
.vfoTxFreq =“%cT%d。%05d MHz”,
.vfoEnterFreq =“%c%c%c。%c%c%c%c%c MHz”,
.quick_menu =“快捷菜单”,
.filter =“过滤:%s”,
.all_channels =“所有频道”,
.gotoChannel =“转到%d”,
.scan =“扫描”,
.channelToVfo =“频道-> VFO”,
.vfoToChannel =“VFO->频道”,
.group =“组呼”,
.private =“单呼”,
.all =“全部”,
.type =“类型:”,
.timeSlot =“时隙”,
.none =“无”,
.contact_saved =“联系人已保存”,
.duplicate =“重复”,
.tg =“ TG”,
.pc =“ PC”,
.ts =“ TS”,
.mode =“模式”,
.colour_code =“色码”,
.n_a =“不适用”,
.channelDetailsRx =“接收:%d。%05dMHz”,
.channelDetailsTx =“发射:%d。%05dMHz”,
.bandwidth =“带宽”,
.stepFreq =“步进:%d。%02dkHz”,
.tot =“ TOT”,
.off =“关闭”,
.skip =“跳过”,
.yes =“是”,
.no =“否”,
.rx_group =“接收组”,
};

User avatar
F1RMB
Posts: 2518
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: Localistion support (foreign languages)

Post by F1RMB » Tue Apr 07, 2020 3:09 pm

Hi,
bh8sel wrote:
Tue Apr 07, 2020 10:34 am
Hi Daniel,

good news - Thanks :)

Enclosed my first version:

Code: Select all

{
.LANGUAGE_NAME =“中文”,
.language =“语言”,
.menu =“菜单”,
.credits =“信用”,
.zone =“区域”,
.rssi =“ RSSI”,
.battery =“电池”,
.contacts =“联系人”,
.firmware_info =“固件信息”,
.last_heard =“最后一次听到”,
.options =“选项”,
.display_options =“显示选项”,
.channel_details =“频道详情”,
.new_contact =“新建联系人”,
.contact_list =“联系人列表”,
.hotspot_mode =“热点模式”,
.contact_details =“联系方式”,
.batteryVoltage =“%d。%dV”,
.built =“内置”,
.built =“内置”,
.zones =“区域”,
.keypad_locked =“键盘已锁”,
.press_blue_plus_star =“蓝色键+*”,
.to_unlock =“解锁”,
.unlocked =“未锁”,
.power_off =“关机”,
.error =“错误”,
.rx_only =“仅接收”,
.out_of_band =“带外”,
.timeout =“暂停”,
.tg_entry =“TG入口”,
.pc_entry =“PC入口”,
.user_dmr_id =“用户DMR ID”,
.contact =“联系人”,
.displayRxFreq =“%d。%05d MHz”,
.accept_call =“接听呼叫?”,
.private_call =“单呼”,
.squelch =“静噪”,
.vfoRxFreq =“%cR%d。%05d MHz”,
.vfoTxFreq =“%cT%d。%05d MHz”,
.vfoEnterFreq =“%c%c%c。%c%c%c%c%c MHz”,
.quick_menu =“快捷菜单”,
.filter =“过滤:%s”,
.all_channels =“所有频道”,
.gotoChannel =“转到%d”,
.scan =“扫描”,
.channelToVfo =“频道-> VFO”,
.vfoToChannel =“VFO->频道”,
.group =“组呼”,
.private =“单呼”,
.all =“全部”,
.type =“类型:”,
.timeSlot =“时隙”,
.none =“无”,
.contact_saved =“联系人已保存”,
.duplicate =“重复”,
.tg =“ TG”,
.pc =“ PC”,
.ts =“ TS”,
.mode =“模式”,
.colour_code =“色码”,
.n_a =“不适用”,
.channelDetailsRx =“接收:%d。%05dMHz”,
.channelDetailsTx =“发射:%d。%05dMHz”,
.bandwidth =“带宽”,
.stepFreq =“步进:%d。%02dkHz”,
.tot =“ TOT”,
.off =“关闭”,
.skip =“跳过”,
.yes =“是”,
.no =“否”,
.rx_group =“接收组”,
};
Thank you for this translation.
At the moment, we don't have any Chinese font, as far as I know, there is lot of glyphs even in the shortest one.
To add such support, and only if you can do the job, you need to draw all the needed glyphs, the current limit is 126, and that for the 5 different fonts (6x8, 6x8-bold, 8x8, 8*16 and 16*32) the firmware use.

I can send you a zip file containing all the glyph bitmaps pictures (XBM format, which you can edit on any platform using an "serious" image editor like Gimp).

BTW, the translation file you sent seems to be made out from an old language file, lot of entries are missing (around 46, .built is there twice), and many of them has changed since. But it's fixable.


It's not impossible to support Chinese language, but the first condition is the number of required glyphs.


Cheers.
---
Daniel

bh8sel
Posts: 4
Joined: Tue Mar 31, 2020 9:47 am

Re: Localistion support (foreign languages)

Post by bh8sel » Wed Apr 08, 2020 5:58 am

I have updated the Chinese in the compressed package I uploaded earlier. Please give me a look. Thank you very much.
Attachments
Chinese.zip
(3.01 KiB) Downloaded 119 times

bh8sel
Posts: 4
Joined: Tue Mar 31, 2020 9:47 am

Re: Localistion support (foreign languages)

Post by bh8sel » Wed Apr 08, 2020 5:59 am

F1RMB wrote:
Tue Apr 07, 2020 3:09 pm
Hi,
bh8sel wrote:
Tue Apr 07, 2020 10:34 am
Hi Daniel,

good news - Thanks :)

Enclosed my first version:

Code: Select all

{
.LANGUAGE_NAME =“中文”,
.language =“语言”,
.menu =“菜单”,
.credits =“信用”,
.zone =“区域”,
.rssi =“ RSSI”,
.battery =“电池”,
.contacts =“联系人”,
.firmware_info =“固件信息”,
.last_heard =“最后一次听到”,
.options =“选项”,
.display_options =“显示选项”,
.channel_details =“频道详情”,
.new_contact =“新建联系人”,
.contact_list =“联系人列表”,
.hotspot_mode =“热点模式”,
.contact_details =“联系方式”,
.batteryVoltage =“%d。%dV”,
.built =“内置”,
.built =“内置”,
.zones =“区域”,
.keypad_locked =“键盘已锁”,
.press_blue_plus_star =“蓝色键+*”,
.to_unlock =“解锁”,
.unlocked =“未锁”,
.power_off =“关机”,
.error =“错误”,
.rx_only =“仅接收”,
.out_of_band =“带外”,
.timeout =“暂停”,
.tg_entry =“TG入口”,
.pc_entry =“PC入口”,
.user_dmr_id =“用户DMR ID”,
.contact =“联系人”,
.displayRxFreq =“%d。%05d MHz”,
.accept_call =“接听呼叫?”,
.private_call =“单呼”,
.squelch =“静噪”,
.vfoRxFreq =“%cR%d。%05d MHz”,
.vfoTxFreq =“%cT%d。%05d MHz”,
.vfoEnterFreq =“%c%c%c。%c%c%c%c%c MHz”,
.quick_menu =“快捷菜单”,
.filter =“过滤:%s”,
.all_channels =“所有频道”,
.gotoChannel =“转到%d”,
.scan =“扫描”,
.channelToVfo =“频道-> VFO”,
.vfoToChannel =“VFO->频道”,
.group =“组呼”,
.private =“单呼”,
.all =“全部”,
.type =“类型:”,
.timeSlot =“时隙”,
.none =“无”,
.contact_saved =“联系人已保存”,
.duplicate =“重复”,
.tg =“ TG”,
.pc =“ PC”,
.ts =“ TS”,
.mode =“模式”,
.colour_code =“色码”,
.n_a =“不适用”,
.channelDetailsRx =“接收:%d。%05dMHz”,
.channelDetailsTx =“发射:%d。%05dMHz”,
.bandwidth =“带宽”,
.stepFreq =“步进:%d。%02dkHz”,
.tot =“ TOT”,
.off =“关闭”,
.skip =“跳过”,
.yes =“是”,
.no =“否”,
.rx_group =“接收组”,
};
Thank you for this translation.
At the moment, we don't have any Chinese font, as far as I know, there is lot of glyphs even in the shortest one.
To add such support, and only if you can do the job, you need to draw all the needed glyphs, the current limit is 126, and that for the 5 different fonts (6x8, 6x8-bold, 8x8, 8*16 and 16*32) the firmware use.

I can send you a zip file containing all the glyph bitmaps pictures (XBM format, which you can edit on any platform using an "serious" image editor like Gimp).

BTW, the translation file you sent seems to be made out from an old language file, lot of entries are missing (around 46, .built is there twice), and many of them has changed since. But it's fixable.


It's not impossible to support Chinese language, but the first condition is the number of required glyphs.


Cheers.
---
Daniel
Attachments
Chinese.zip
(3.01 KiB) Downloaded 121 times

User avatar
F1RMB
Posts: 2518
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: Localistion support (foreign languages)

Post by F1RMB » Wed Apr 08, 2020 6:08 am

Hi,
bh8sel wrote:
Wed Apr 08, 2020 5:58 am
I have updated the Chinese in the compressed package I uploaded earlier. Please give me a look. Thank you very much.
This one looks fine.
But we still miss the fonts to render the Chinese glyphs ;)

Just tell me if you want the bitmaps.


Cheers.
---
Daniel

bh8sel
Posts: 4
Joined: Tue Mar 31, 2020 9:47 am

Re: Localistion support (foreign languages)

Post by bh8sel » Thu Apr 09, 2020 12:40 pm

F1RMB wrote:
Wed Apr 08, 2020 6:08 am
Hi,
bh8sel wrote:
Wed Apr 08, 2020 5:58 am
I have updated the Chinese in the compressed package I uploaded earlier. Please give me a look. Thank you very much.
This one looks fine.
But we still miss the fonts to render the Chinese glyphs ;)

Just tell me if you want the bitmaps.


Cheers.
---
Daniel
Sorry, I don't understand what you mean.

User avatar
F1RMB
Posts: 2518
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: Localistion support (foreign languages)

Post by F1RMB » Thu Apr 09, 2020 12:50 pm

bh8sel wrote:
Thu Apr 09, 2020 12:40 pm
F1RMB wrote:
Wed Apr 08, 2020 6:08 am
Hi,
bh8sel wrote:
Wed Apr 08, 2020 5:58 am
I have updated the Chinese in the compressed package I uploaded earlier. Please give me a look. Thank you very much.
This one looks fine.
But we still miss the fonts to render the Chinese glyphs ;)

Just tell me if you want the bitmaps.


Cheers.
---
Daniel
Sorry, I don't understand what you mean.
I mean, to display text on the GD-77, we use fonts, and there is no font to display Chinese text at the moment.
So, the first question was, how many font "characters" your translation requires ?.
Second question, if it's less than 127, are you okay to draw all the fonts images.


Cheers.
---
Daniel

DG3GSP
Posts: 153
Joined: Sun Nov 17, 2019 9:30 am
Location: Southern Germany

Re: Localistion support (foreign languages)

Post by DG3GSP » Fri Apr 24, 2020 7:22 am

Translation update 3.8: Add .vox_threshold + .vox_tail

Edit: Sorry, can't add the zipfile - there is a error message "Sorry, the board attachment quota has been reached."..

Edit 2: Quota problem solved - thanks Roger :)
Attachments
german.zip
Translation update 3.8: Add .vox_threshold + .vox_tail
(2.84 KiB) Downloaded 118 times
Last edited by DG3GSP on Fri Apr 24, 2020 8:07 am, edited 1 time in total.

VK3KYY
Posts: 7484
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Localistion support (foreign languages)

Post by VK3KYY » Fri Apr 24, 2020 7:51 am

DG3GSP wrote:
Fri Apr 24, 2020 7:22 am
Translation update 3.8: Add .vox_threshold + .vox_tail

Edit: Sorry, can't add the zipfile - there is a error message "Sorry, the board attachment quota has been reached."..
Arrrgg. Quota maxed again :-(

I think I set it to 500Mb, becuase I don't have infinite quota.

I may need to delete some old versions of firmware which were posted, to save space

VK3KYY
Posts: 7484
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Localistion support (foreign languages)

Post by VK3KYY » Sat Apr 25, 2020 3:29 am

wuhaian wrote:
Sat Apr 25, 2020 2:26 am
F1RMB wrote:
Tue Apr 07, 2020 3:09 pm
Hi,
bh8sel wrote:
Tue Apr 07, 2020 10:34 am
Hi Daniel,

good news - Thanks :)

Enclosed my first version:

Code: Select all

{
.LANGUAGE_NAME =“中文”,
.language =“语言”,
.menu =“菜单”,
.credits =“信用”,
.zone =“区域”,
.rssi =“ RSSI”,
.battery =“电池”,
.contacts =“联系人”,
.firmware_info =“固件信息”,
.last_heard =“最后一次听到”,
.options =“选项”,
.display_options =“显示选项”,
.channel_details =“频道详情”,
.new_contact =“新建联系人”,
.contact_list =“联系人列表”,
.hotspot_mode =“热点模式”,
.contact_details =“联系方式”,
.batteryVoltage =“%d。%dV”,
.built =“内置”,
.built =“内置”,
.zones =“区域”,
.keypad_locked =“键盘已锁”,
.press_blue_plus_star =“蓝色键+*”,
.to_unlock =“解锁”,
.unlocked =“未锁”,
.power_off =“关机”,
.error =“错误”,
.rx_only =“仅接收”,
.out_of_band =“带外”,
.timeout =“暂停”,
.tg_entry =“TG入口”,
.pc_entry =“PC入口”,
.user_dmr_id =“用户DMR ID”,
.contact =“联系人”,
.displayRxFreq =“%d。%05d MHz”,
.accept_call =“接听呼叫?”,
.private_call =“单呼”,
.squelch =“静噪”,
.vfoRxFreq =“%cR%d。%05d MHz”,
.vfoTxFreq =“%cT%d。%05d MHz”,
.vfoEnterFreq =“%c%c%c。%c%c%c%c%c MHz”,
.quick_menu =“快捷菜单”,
.filter =“过滤:%s”,
.all_channels =“所有频道”,
.gotoChannel =“转到%d”,
.scan =“扫描”,
.channelToVfo =“频道-> VFO”,
.vfoToChannel =“VFO->频道”,
.group =“组呼”,
.private =“单呼”,
.all =“全部”,
.type =“类型:”,
.timeSlot =“时隙”,
.none =“无”,
.contact_saved =“联系人已保存”,
.duplicate =“重复”,
.tg =“ TG”,
.pc =“ PC”,
.ts =“ TS”,
.mode =“模式”,
.colour_code =“色码”,
.n_a =“不适用”,
.channelDetailsRx =“接收:%d。%05dMHz”,
.channelDetailsTx =“发射:%d。%05dMHz”,
.bandwidth =“带宽”,
.stepFreq =“步进:%d。%02dkHz”,
.tot =“ TOT”,
.off =“关闭”,
.skip =“跳过”,
.yes =“是”,
.no =“否”,
.rx_group =“接收组”,
};
Thank you for this translation.
At the moment, we don't have any Chinese font, as far as I know, there is lot of glyphs even in the shortest one.
To add such support, and only if you can do the job, you need to draw all the needed glyphs, the current limit is 126, and that for the 5 different fonts (6x8, 6x8-bold, 8x8, 8*16 and 16*32) the firmware use.

I can send you a zip file containing all the glyph bitmaps pictures (XBM format, which you can edit on any platform using an "serious" image editor like Gimp).

BTW, the translation file you sent seems to be made out from an old language file, lot of entries are missing (around 46, .built is there twice), and many of them has changed since. But it's fixable.


It's not impossible to support Chinese language, but the first condition is the number of required glyphs.


Cheers.
---
Daniel

I think 6x8 can't display chinese font well. At least need to use 8x8.

We can reference Motorola GP338 Chinese version to creat font.

Please look the picture I send.

gp338 font.jpg
The Motorola firmware contains images of each of the Chinese characters which are used in that radio.

We will not simply be able to use the font data from Motorola radios because

1. There is no source code for this radio
2. Even if we had the source code and graphics, we would not have a license to use that font, because of copyright


The OpenGD77 firmware uses bitmap fonts, See. https://en.wikipedia.org/wiki/Computer_font#BITMAP
And only contains graphics images for latin characters e.g. 0-9 a-z A-Z, accented letters and some punctuation.

It is impossible for use to create bitmap fonts for the chinese language for you, because :-

1. We don't read or write or speak Chinese and have no knowledge of Chinese characters
2. We simply don't have time to learn how create the font.
3. Its also a huge amount of work to integrate a pictogram base language font into the firmware, because its likely a lot of other changes would be required.

Post Reply