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

Get Current Language

Type: core

Class: Lang

Platform: 2v

Function: getCurrentLanguage

Visibility: public static

Parameter: getCurrentLanguage($returnDescription)

Description:
We just want to know what is the current language that is set.
Parameters:
(optional) - bool|false - $returnDescription - Will return also the language description in an array.
Return:
string|array - The current language as string, or if we want description as array.
Callable from (extended classes):
application: controller,view
advanced: controller,view
operators: controller,view
api: controller,view
example: 1
Shmulik want to know in which language the system is set right now, so let's give him an answer.
How to call (example):
Code:
Possible outcome (example):
Output:
example: 2
We want to know what is the current language and want to know it's description.
How to call (example):
Code:
Possible outcome (example):
Output:
Info Panel
Roll it!   ⇔