set_current_language
set_current_language($language); - this function is used to switch the current input language
The function accepts parameters as input:
$language – new input language
("RU" or "ru" - Russian, "EN" or "en" - English) (string). (Before spring 4.9.22)
("English","Russian","Ukrainian","Greek","Arabic","Bulgarian","Catalan","Chinese (PRC)","Czech","Danish","Dutch","Finnish","French","German","Hebrew","Hungarian","Hungarian","Italian","Japanese","Korean","Lithuanian","Norwegian","Polish","Portuguese","Slovak","Spanish","Swedish","Thai","Turkish") (starting from version 4.9.22)
After testing, the function returns the result of its work to the script :
true – successfully changed the input language (boolean)false – operation failed (boolean)