Closed pr-apes closed 1 year ago
This comes from a previous pull request.
IIRC you just need to put the /Lang field into the catalog with the field 'locale' of the lang object which you get with
get_language(defaultlanguage)
I think for a start it would be enough to have the first locale part.No need to have an extra sp_mainlanguage or any other code in the commands.lua file (I might be wrong though).
Sorry, I don't know how to achieve that.
The pull request may be unnecessarily complex, but it works as described.
Included in 4.12.0 (now available)
This pull request fixes #434.
I'm afraid I don't know how to read get the value from
--mainlanguage
option without creating thesp_mainlanguage
variable.