3D-Stream-Radio icon indicating copy to clipboard operation
3D-Stream-Radio copied to clipboard

Translations system

Open Blueberryy opened this issue 2 years ago • 7 comments

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

Blueberryy avatar Jun 10 '23 14:06 Blueberryy

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.

Grocel avatar Jun 11 '23 21:06 Grocel

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

Blueberryy avatar Jun 11 '23 22:06 Blueberryy

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 avatar Jun 19 '23 17:06 Grocel

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.

Grocel avatar Jul 16 '23 16:07 Grocel

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

Blueberryy avatar Jul 16 '23 19:07 Blueberryy

Happy to help with polish translation.

michak89 avatar Sep 05 '24 19:09 michak89