Localistion support (foreign languages)

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

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.

IZ2EIB
Posts: 66
Joined: Sat Nov 30, 2019 12:55 pm

Re: Localistion support (foreign languages)

Post by IZ2EIB » Sat Apr 25, 2020 12:30 pm

Hi guys.
Translation update 3.8: Add .vox_threshold + .vox_tail
italian.zip
(2.84 KiB) Downloaded 12 times
@Roger @everyone involved in the project

Many, many thanks for all the improvements!

73 best regards de Fabio IZ2EIB

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

Re: Localistion support (foreign languages)

Post by F1RMB » Sun Apr 26, 2020 5:19 am

Hi Fabio,
IZ2EIB wrote:
Sat Apr 25, 2020 12:30 pm
Hi guys.
Translation update 3.8: Add .vox_threshold + .vox_tail

italian.zip

@Roger @everyone involved in the project

Many, many thanks for all the improvements!

73 best regards de Fabio IZ2EIB
Thanks for the update, I just raised the PR.


Cheers.
---
Daniel
73 de Daniel.

User avatar
IU4LEG
Posts: 151
Joined: Wed Nov 20, 2019 12:49 pm

Re: Localistion support (foreign languages)

Post by IU4LEG » Tue Apr 28, 2020 6:14 am

IZ2EIB wrote:
Sat Apr 25, 2020 12:30 pm
Hi guys.
Translation update 3.8: Add .vox_threshold + .vox_tail

italian.zip

@Roger @everyone involved in the project

Many, many thanks for all the improvements!

73 best regards de Fabio IZ2EIB
Fabio, Thank you for the update, have anice day. 73
IU4LEG Fabio

User avatar
EA3BIL
Posts: 67
Joined: Sat Nov 16, 2019 12:38 pm

Re: Localistion support (foreign languages)

Post by EA3BIL » Fri May 01, 2020 1:28 am

Hi,

Please find attached:

CATALAN Rev.:6
Date: May,1st.2020 03:22am CEST
Attachments
catalan.zip
(2.41 KiB) Downloaded 9 times
Note:
Now you can find me on YouTube.
Productions are NOT in English... Yet.


73'Rafa.
EA3BIL.

User avatar
EB3AM
Posts: 179
Joined: Fri Jan 24, 2020 1:40 pm
Location: Catalonia, not Spain
Contact:

Re: Localistion support (foreign languages)

Post by EB3AM » Fri May 01, 2020 9:39 pm

Code: Select all

.vox_threshold                          = "Llindar VOX", // MaxLen 16 (with ':' + .off or 1..30)
.vox_tail                               = "Cua del VOX" // MaxLen 16 (with ':' + .n_a or '0.0s')
Modification for Catalan.h

Also here, complete file:
https://github.com/TecnoTalarn/OpenGD77 ... /catalan.h

Also change blue button name to "SK2"
Jordi, EB3AM, Talarn JN02ke, Catalonia.

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

Re: Localistion support (foreign languages)

Post by F1RMB » Sat May 02, 2020 6:43 am

Hi guys,

EA3BIL wrote:
Fri May 01, 2020 1:28 am
Hi,

Please find attached:

CATALAN Rev.:6
Date: May,1st.2020 03:22am CEST
EB3AM wrote:
Fri May 01, 2020 9:39 pm

Code: Select all

.vox_threshold                          = "Llindar VOX", // MaxLen 16 (with ':' + .off or 1..30)
.vox_tail                               = "Cua del VOX" // MaxLen 16 (with ':' + .n_a or '0.0s')
Modification for Catalan.h

Also here, complete file:
https://github.com/TecnoTalarn/OpenGD77 ... /catalan.h

Also change blue button name to "SK2"

So, is there a consensus here ?
I won't start fishing and cooking translation files :D


Cheers.
---
Daniel
73 de Daniel.

User avatar
OK2HAD
Posts: 15
Joined: Wed Jan 08, 2020 1:10 pm
Location: Uherský Brod (Czech Republic)

Re: Localistion support (foreign languages)

Post by OK2HAD » Wed May 20, 2020 11:48 am

Hi
Translation czech languages update 3.8: Add .vox_threshold + .vox_tail
Attachments
czech3.zip
(2.91 KiB) Downloaded 4 times
73 de František

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

Re: Localistion support (foreign languages)

Post by F1RMB » Wed May 20, 2020 12:43 pm

Hi František,
OK2HAD wrote:
Wed May 20, 2020 11:48 am
Hi
Translation czech languages update 3.8: Add .vox_threshold + .vox_tail
Thanks, I raised a PR.

Keep the attached file as a template, as the one you're using is missing an entry in the middle.

Cheers.
---
Daniel
Attachments
czech-to_utf-8.h.zip
(3.06 KiB) Downloaded 3 times
73 de Daniel.

User avatar
OK2HAD
Posts: 15
Joined: Wed Jan 08, 2020 1:10 pm
Location: Uherský Brod (Czech Republic)

Re: Localistion support (foreign languages)

Post by OK2HAD » Thu May 21, 2020 8:29 am

F1RMB wrote:
Wed May 20, 2020 12:43 pm
Hi František,
OK2HAD wrote:
Wed May 20, 2020 11:48 am
Hi
Translation czech languages update 3.8: Add .vox_threshold + .vox_tail
Thanks, I raised a PR.

Keep the attached file as a template, as the one you're using is missing an entry in the middle.

Cheers.
---
Daniel
Hi,
I have added a translation into the Czech language for the last 4 missing items.
Attachments
czech-3.9-to_utf-8.h.zip
(3.02 KiB) Downloaded 4 times
73 de František

Post Reply