1 {if $availableContentLanguages|count}
2 {if $availableContentLanguages|count == 1}
3 {foreach from=$availableContentLanguages item=contentLanguage}
4 <input type="hidden" name="languageID" value="{$contentLanguage->languageID}">
7 <dl{if $errorField == 'languageID'} class="formError"{/if}>
8 <dt>{lang}wcf.user.language{/lang}</dt>
9 <dd id="languageIDContainer">
11 <select name="languageID" id="languageID">
12 {foreach from=$availableContentLanguages item=contentLanguage}
13 <option value="{$contentLanguage->languageID}">{$contentLanguage}</option>
20 <script data-relocate="true">
21 require(['WoltLabSuite/Core/Language/Chooser'], function(LanguageChooser) {
23 {implode from=$availableContentLanguages item=_language}
24 '{@$_language->languageID}': {
25 iconPath: '{@$_language->getIconPath()|encodeJS}',
26 languageName: '{@$_language|encodeJS}'
31 LanguageChooser.init('languageIDContainer', 'languageID', {$languageID}, languages)