Grocel / 3D-Stream-Radio

It is an spawnable scripted entity for Garry's Mod that allows you to play online streams and local files as 3D world sound.
https://steamcommunity.com/sharedfiles/filedetails/?id=246756300
17 stars 4 forks source link

Translations system #13

Open Blueberryy opened 1 year ago

Blueberryy commented 1 year ago

Would love to help with Russian translation for this omega radio addon :p

Grocel commented 1 year ago

Currently the radio does not support translation/localization very well yet. It would be a while until I can add proper support to this.

Do you know anymore people that could do translation beside English and German (Me)?

If I was to start a translation project I would like to add more common languages such as German, Polish, Ukrainian, French and maybe Chinese and Korean.

Blueberryy commented 1 year ago

Well, you can create discussion on your addon page with like "TRANSLATORS NEEDED" and pin it so people who loves your addon might help

Grocel commented 1 year ago

I will do. However I will prepare the addon to have translatable strings before hand. At the moment many strings with English texts are hard coded into the project.

Grocel commented 1 year ago

Upon closer inspection a complete translation of this addon is impossible with GMod shipped tools. And I don't like building custom stuff around stuff GMod should handle.

GMod does not support long translated contents, particularly if it contains many UTF8 chars as such as Russian text would. Each translated string must not be longer than 1024 bytes (not chars!). https://github.com/Facepunch/garrysmod-issues/issues/5524

We could still setup a translation for all the short strings. But the quite long error explanation texts would have to stay in English.

Blueberryy commented 1 year ago

Upon closer inspection a complete translation of this addon is impossible with GMod shipped tools. And I don't like building custom stuff around stuff GMod should handle.

GMod does not support long translated contents, particularly if it contains many UTF8 chars as such as Russian text would. Each translated string must not be longer than 1024 bytes (not chars!). https://github.com/Facepunch/garrysmod-issues/issues/5524

We could still setup a translation for all the short strings. But the quite long error explanation texts would have to stay in English.

How about implementing translations system from Zombie Survival gamemode then? It's pretty simple and It's free to use in any addon https://github.com/JetBoom/zombiesurvival/blob/master/gamemodes/zombiesurvival/gamemode/sh_translate.lua

michak89 commented 1 week ago

Happy to help with polish translation.