Info Panel
Roll it!   ⇔
1 - Documantation
* Knowledge Base
  • Mvc
  • Application
  • Advanced
  • Operators
  • Api
* Origin Template
  • Customize
* Core Classes
* Classes

* all grey titles exists but not documented yet

Set Current Language

Type: core

Class: Lang

Platform: 2v

Function: setCurrentLanguage

Visibility: public static

Parameter: setCurrentLanguage($language)

Description:
We can use it for switching language inside the code, then we can use getCurrentLanguage to get it. Useful if we want to load translation in other language then current one.
Parameters:
(required) - string - $language - The language we want to set - It must be one of the configured language in lang file at: default / available.
Return:
Nothing, or error 88120.
Callable from (extended classes):
application: controller,view
advanced: controller,view
operators: controller,view
api: controller,view
example: 1
This is how we do it.
How to call (example):
Code:
Info Panel
Roll it!   ⇔