- Class name: Language
- Namespace: JSMF
- Parent class: Exception
String JSMF\Language::getCurrentLanguage()
returns the current active language
- Visibility: public
- This method is static.
mixed JSMF\Language::setLanguage(\JSMF\string $language)
sets the current language
- Visibility: public
- This method is static.
- $language JSMF\string
Void JSMF\Language::loadTranslations(String $file, String $language)
load the given language files for the given languages
- Visibility: public
- This method is static.
- $file String - <p>(path and filename without extension)</p>
- $language String
Array JSMF\Language::getAll()
returns all translations
- Visibility: public
- This method is static.
String JSMF\Language::get(String $key, Array $replaces)
returns translation
- Visibility: public
- This method is static.
- $key String
- $replaces Array
Boolean JSMF\Language::isTranslated(String $key)
returns if a key is translated
- Visibility: public
- This method is static.
- $key String