It is already internally used and thus can cause conflicts.
<dd id="{@$__languageChooserPrefix}languageIDContainer">
<noscript>
<select name="languageID" id="languageID">
- {foreach from=$languages item=__language}
- <option value="{@$__language->languageID}">{$__language}</option>
+ {foreach from=$languages item=_language}
+ <option value="{@$_language->languageID}">{$_language}</option>
{/foreach}
</select>
</noscript>
<script data-relocate="true">
require(['WoltLabSuite/Core/Language/Chooser'], function(LanguageChooser) {
var languages = {
- {implode from=$languages item=__language}
- '{@$__language->languageID}': {
- iconPath: '{@$__language->getIconPath()|encodeJS}',
- languageName: '{@$__language|encodeJS}'
+ {implode from=$languages item=_language}
+ '{@$_language->languageID}': {
+ iconPath: '{@$_language->getIconPath()|encodeJS}',
+ languageName: '{@$_language|encodeJS}'
}
{/implode}
};
<script data-relocate="true">
require(['WoltLabSuite/Core/Language/Chooser'], function(LanguageChooser) {
var languages = {
- {implode from=$availableContentLanguages item=__language}
- '{@$__language->languageID}': {
- iconPath: '{@$__language->getIconPath()|encodeJS}',
- languageName: '{@$__language|encodeJS}'
+ {implode from=$availableContentLanguages item=_language}
+ '{@$_language->languageID}': {
+ iconPath: '{@$_language->getIconPath()|encodeJS}',
+ languageName: '{@$_language|encodeJS}'
}
{/implode}
};
<script data-relocate="true">
require(['EventHandler', 'WoltLabSuite/Core/Language/Chooser'], function(EventHandler, LanguageChooser) {
var languages = {
- {implode from=$__wcf->getLanguage()->getLanguages() item=__language}
- '{@$__language->languageID}': {
- iconPath: '{@$__language->getIconPath()|encodeJS}',
- languageName: '{@$__language|encodeJS}',
- languageCode: '{@$__language->languageCode|encodeJS}'
+ {implode from=$__wcf->getLanguage()->getLanguages() item=_language}
+ '{@$_language->languageID}': {
+ iconPath: '{@$_language->getIconPath()|encodeJS}',
+ languageName: '{@$_language|encodeJS}',
+ languageCode: '{@$_language->languageCode|encodeJS}'
}
{/implode}
};
<span class="menuOverlayItemTitle">{$__wcf->getLanguage()}</span>
</a>
<ol class="menuOverlayItemList" data-title="{lang}wcf.user.language{/lang}">
- {foreach from=$__wcf->getLanguage()->getLanguages() item=__language}
- <li class="menuOverlayItem" data-more="com.woltlab.wcf.language" data-language-id="{@$__language->languageID}">
+ {foreach from=$__wcf->getLanguage()->getLanguages() item=_language}
+ <li class="menuOverlayItem" data-more="com.woltlab.wcf.language" data-language-id="{@$_language->languageID}">
<a href="#" class="menuOverlayItemLink box24">
- <img src="{$__language->getIconPath()}" alt="">
- <span class="menuOverlayItemTitle">{$__language}</span>
+ <img src="{$_language->getIconPath()}" alt="">
+ <span class="menuOverlayItemTitle">{$_language}</span>
</a>
</li>
{/foreach}
<dd id="{@$__languageChooserPrefix}languageIDContainer">
<noscript>
<select name="languageID" id="languageID">
- {foreach from=$languages item=__language}
- <option value="{@$__language->languageID}">{$__language}</option>
+ {foreach from=$languages item=_language}
+ <option value="{@$_language->languageID}">{$_language}</option>
{/foreach}
</select>
</noscript>
<script data-relocate="true">
require(['WoltLabSuite/Core/Language/Chooser'], function(LanguageChooser) {
var languages = {
- {implode from=$languages item=__language}
- '{@$__language->languageID}': {
- iconPath: '{@$__language->getIconPath()|encodeJS}',
- languageName: '{@$__language|encodeJS}'
+ {implode from=$languages item=_language}
+ '{@$_language->languageID}': {
+ iconPath: '{@$_language->getIconPath()|encodeJS}',
+ languageName: '{@$_language|encodeJS}'
}
{/implode}
};