tedsalmon / BlueBus

A Bluetooth module for vehicles equipped with I-Bus
Other
170 stars 41 forks source link

Localization support #50

Closed AlexeyPribytkin closed 3 years ago

AlexeyPribytkin commented 3 years ago

Localization support added.

For now only Russian language is available. As navigation software with modified glyphs is quite common in Russian-speaking countries, I made some quirks to support 192-255 range of ASCII symbols.

bluebus_localization

There are several string length limitations: 16 characters for menu items (including null terminator) 24 for other strings (including null terminator)

I believe that it's possible to overcome 16 limit for menu items and make menu selection wider like on a radio screen, but didn't find out how to that yet :)

Radio screen

Please, feel free to add new translations to the table. BlueBus translation table

dertimaushh commented 3 years ago

Localization support added.

For now only Russian language is available.

As navigation software with modified glyphs is quite common in Russian-speaking countries, I made some quirks to support 192-255 range of ASCII symbols.

bluebus_localization

There are several string length limitations:

16 characters for menu items (including null terminator)

24 for other strings (including null terminator)

I believe that it's possible to overcome 16 limit for menu items and make menu selection wider like on a radio screen, but didn't find out how to that yet :)

Radio screen

Please, feel free to add new translations to the table.

BlueBus translation table

Just added German.

Best regards, Tim

tedsalmon commented 3 years ago

Localization support added. For now only Russian language is available. As navigation software with modified glyphs is quite common in Russian-speaking countries, I made some quirks to support 192-255 range of ASCII symbols. bluebus_localization There are several string length limitations: 16 characters for menu items (including null terminator) 24 for other strings (including null terminator) I believe that it's possible to overcome 16 limit for menu items and make menu selection wider like on a radio screen, but didn't find out how to that yet :) Radio screen Please, feel free to add new translations to the table. BlueBus translation table

Just added German.

Best regards, Tim

Thank you!! I'll work on incorporating it this week :)

dertimaushh commented 3 years ago

Perfect.

Let me know in case you need any abbreviations for some of the entries.

Best regards, Tim

tedsalmon commented 3 years ago

@dertimaushh,

Is there a chance you could trim down a lot of these strings to stay under 16 characters? I know that's asking a lot of the German language where UI turns into Benutzeroberfläche :rofl:

I have highlighted all the offending entries in bright red with a conditional rule, so when they are shortened, they'll automatically be un-highlighted :)

Thanks! -Ted

tedsalmon commented 3 years ago

@AlexeyPribytkin,

Just FYI, I made some changes to your functionality as outlined here: https://github.com/tedsalmon/BlueBus/commit/61d26af562a4f77fe4efefeb82f9c934babf31ae

I hope that's okay! There were just some things I wanted to change for the sake of consistency.

P.S. Can I get your email so I can invite you to the BlueBus Slack?

Thanks! -Ted

dertimaushh commented 3 years ago

@dertimaushh,

Is there a chance you could trim down a lot of these strings to stay under 16 characters? I know that's asking a lot of the German language where UI turns into Benutzeroberfläche 🤣

I have highlighted all the offending entries in bright red with a conditional rule, so when they are shortened, they'll automatically be un-highlighted :)

Thanks! -Ted

Done :-)

Best regards, Tim

dertimaushh commented 3 years ago

@tedsalmon : Cleaned up the german translations after 1.17 beta testing.