ezmlm-web/template/language_select.cs
lars 3958224115 added multi-domain support
error checking after config loading
fixed language selection behaviour
removed obsolete ui_set directories
2007-03-30 15:24:18 +00:00

25 lines
1 KiB
C#

<!-- allows the user to change the interface language (not of the list!) -->
<?cs if:subcount(Config.UI.Languages) > 0 ?>
<form class="select" method="post" action="<?cs call:link("","","","","","") ?>" enctype="application/x-www-form-urlencoded">
<?cs if:Data.List.Name ?><input type="hidden" name="list" value="<?cs
var:Data.List.Name ?>" />
<input type="hidden" name="action" value="subscribers" /><?cs /if ?>
<?cs if:Data.CurrentDomain ?><input type="hidden" name="domain" value="<?cs
var:Data.CurrentDomain ?>" /><?cs /if ?>
<font class="no_link"><?cs
var:html_escape(Lang.Menue.Language) ?>:</font><br/>
<select name="web_lang" size="0">
<?cs each: tlang = Config.UI.Languages
?><option value="<?cs var:name(tlang) ?>"<?cs
if:name(tlang) == Config.UI.LinkAttrs.web_lang
?> selected="selected"<?cs /if?>><?cs
var:html_escape(tlang) ?></option>
<?cs /each ?>
</select>&nbsp;<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.LanguageSet) ?></button>
</form>
<?cs /if ?>