//get i18n module info
$query = drupal_query_string_encode($_GET, array('q'));
$lang = translation_get_links($_GET['q'], empty($query) ? NULL : $query);
$current_lang = i18n_get_lang(); // Look up current language with a call to this i18n function, setup link array elements.
$active_lang = i18n_languages('active'); // loop up all enabled languages
// Find the name of the currently chosen language
$active_lang_name = $active_lang[$current_lang];
// Get rid of the array keys because we want the keys to be numeris as keys in $lang
$active_lang_values = array_values($active_lang);
// Find the key for the currently chosen language.
$find_key = array_search($active_lang_name,$active_lang_values);
foreach($lang as $key=>$value) {
// As long as the find_key is different from the key, display the value (link to that language)
if ($key <> $find_key) {
print $value;
}
}
?>
There are currently no employment opportunities available.