case "delete-lang": if ($r['accept'] && $r['submit'] == "ja") { deleteLang($v); echo "sprache wurde gelöscht"; echoLangList(getLangList()); } else { if ($v && $r['submit'] == "nein") { echoLangList(getLangList()); } else { areyousure("?delete-lang=" . $v . "&accept=true", "sprache löschen", "achtung! diese sprache wird gelöscht!"); } } break; case "copy-lang": copyLang($r['copy-lang']); echoLangList(getLangList()); break; case "translate": $sdata = array(); $sdata['fortfahren'] = $r['fortfahren']; $sdata['wenn'] = $r['wenn']; translate($v, $r['q'], $r['action'], $r['text'], $r['answers'], $sdata); break; case "lock-bank": //lockUnlock($v); showLocks($v, $r['do'], $r['uid']); break; case "list-bank": echoBankList(getBankList(), true); break; case "list-bank-filter":
dateformatDropdown($value, 0); echo "\n</div></p><br/>"; } else { if ($key == 'datepickerformat') { echo "<p><label>" . $formtext . "</label><br/><div ><div class='text'></div>"; dateformatDropdown($value, 1); echo "\n</div></p><br/>"; } else { if ($key == 'dateformat_short') { echo "<p><label>" . $formtext . "</label><br/><div ><div class='text'></div>"; dateformatDropdown($value, 2); echo "\n</div></p><br/>"; } else { if ($key == 'language') { echo "<p><label>" . _language . "</label><br/><div ><div class='text'></div>"; getLangList($langTrans, $general['language'], 'enabled'); echo "</select>\n</div></p><br/>"; } else { if ($key == 'id') { echo "<input type='hidden' name='id' value='" . $value . "'>"; } else { if (substr($key, 0, 10) == 'guest_type') { echo "<p><label>" . $formtext . "</label><br/>\n\t\t\t\t\t<input type='text' name='" . $key . "' id='" . $key . "' value='" . $value . "'/></p><br/>"; } else { if ($key == 'contactform_color_scheme') { /* echo "<p><label>".$formtext."</label><br/> <input type='color' name='".$key."' id='".$key."' value='#".$value."' data-hex='true'/></p><br/>"; */ } else { if ($key == 'contactform_background') { /* echo "<p><label>".$formtext."</label><br/> <input type='color' name='".$key."' id='".$key."' value='#".$value."' data-hex='true'/></p><br/>"; */
$kvpair = explode("=", $l); if (count($kvpair) < 2) { continue; } $to_lang = $kvpair[0]; $text = $kvpair[1]; $langlines[$to_lang] = trim(translate($text, "en", $to_lang)) . "," . trim(translate("What Language?", "en", $to_lang)); fwrite($fd, "{$to_lang}={$langlines[$to_lang]}\n"); } fclose($fd); $direction[$dir] = $langlines; } return $direction; } $action = $_REQUEST['action']; $langs = getLangList(); if ($action == 'getinfo') { $list = strtolower($_REQUEST['dir']); $info = strtolower($_REQUEST['info']); if (isset($langs[$list])) { foreach ($langs[$list] as $code => $desc) { $t = explode(",", $desc); if ($info == 'names') { echo "{$code}\n{$t[0]}\n"; } if ($info == 'questions') { echo "{$t[1]}\n"; } } } }
} // } ?> </ul> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li class="dropdown pull-right"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="fa fa-language"></span> <?php echo t('language'); ?> <span class="caret"></span></a> <ul class="dropdown-menu scrollable-dropdown" role="menu"> <?php foreach (getLangList() as $iso => $lang) { ?> <li <?php if ($iso == getLang()) { echo 'class="active"'; } ?> > <a href="<?php echo getUrl(getPage(), getPath(), true, array('lang' => $iso)); ?> "> <span> <img src="<?php echo getThemeRoot() . '/flags/' . $iso . '.png'; ?> "> </span>