function lingotek_get_localization_languages_json in Lingotek Translation 7.2
Outputs the languages active in this installation. Supplied to the dashboard. Output Format: ["en","es"]
1 call to lingotek_get_localization_languages_json()
- lingotek_get_dashboard_code in ./
lingotek.dashboard.inc - Generates the code for the embedded Javascript dashboard.
File
- ./
lingotek.dashboard.inc, line 403 - Lingotek Dashboard.
Code
function lingotek_get_localization_languages_json() {
$languages = array_keys(current(language_list('enabled')));
$result = array();
foreach ($languages as $language) {
$result[] = Lingotek::convertDrupal2Lingotek($language);
}
return json_encode($result);
}