Get Current Language
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):
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):
Possible outcome (example):
Output: