Dear, in the game menu there is a choice of language. Is it possible to check how the selected language of the player? If not - please add
Detecting client language
Discussion in 'Rust Development' started by Мизантроп, Jan 15, 2015.
-
Wulf Community Admin
Pretty sure that's all handled client-side and never sent to the server, so it's unlikely you'd be able to ever check it.
-
The only thing that we can - check out a player's country (for example http://oxidemod.org/resources/country-block.698/)
-
Wulf Community Admin
It's a good general solution though. -
-
Wulf Community Admin
-
A way would be to ask the player to choose the language with something like /en /pt /es and etc.
-
Wulf Community Admin
-
-
Wulf Community Admin
-
Anyway, in my op, if we translate all lines of our plugins all by our selves taking note of the massive public language used by our players, that should be fine. Trying to translate through plugin localization would gave us a lot of work that wouldn't be compensated afterwards. -
Why not use /language en
-
Wulf Community Admin
Also, there should be a connection.language or similar var coming in a Rust update soon. -