player.language returns 'english' for me. But the keys in messages are country codes instead such as 'en'. I assume this causes get to always return the default value of 'en', instead of returning a translated string.
Maybe the inner message was supposed to be a dictionary mapping language names to codes, like this:
languages = {
'english': 'en'
}
If that were the case, the default value of 'en' would actually make sense.
I have not actually tested this with different languages, but i think i heard mentions of some strings not being translated.
https://github.com/ThaPwned/WCS/blob/bfb53e2511083f92220a17f5d48a9df0f790a989/addons/source-python/plugins/wcs/core/helpers/esc/commands.py#L1427 https://github.com/ThaPwned/WCS/blob/bfb53e2511083f92220a17f5d48a9df0f790a989/addons/source-python/plugins/wcs/core/helpers/esc/commands.py#L1435
player.language
returns'english'
for me. But the keys inmessages
are country codes instead such as'en'
. I assume this causesget
to always return the default value of'en'
, instead of returning a translated string.Maybe the inner
message
was supposed to be a dictionary mapping language names to codes, like this:If that were the case, the default value of
'en'
would actually make sense.I have not actually tested this with different languages, but i think i heard mentions of some strings not being translated.