2 /****************************************************************/
4 /****************************************************************/
5 /* Copyright (c) 2002-2010 */
6 /* Inclusive Design Institute */
9 /* This program is free software. You can redistribute it and/or*/
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /****************************************************************/
13 if (!defined('AT_INCLUDE_PATH')) { exit; }
15 global $languageManager, $_my_uri;
17 if($languageManager->getNumLanguages() < 2){
21 <div align="center" id="langdiv" style="clear: left"><br /><?php
23 if ($languageManager->getNumLanguages() > 5) {
24 echo '<form method="get" action="'.htmlspecialchars($_my_uri, ENT_QUOTES).'">';
25 echo '<label for="lang" style="display:none;">'._AT('translate_to').' </label>';
26 $languageManager->printDropdown($_SESSION['lang'], 'lang', 'lang');
27 echo ' <input type="submit" name="submit_language" class="button" value="'._AT('translate').'" />';
30 echo '<small><label for="lang">'._AT('translate_to').' </label></small>';
31 $languageManager->printList($_SESSION['lang'], 'lang', 'lang', htmlspecialchars($_my_uri));