WCF.TabMenu.init();
var $availableLanguages = { {implode from=$availableLanguages key=languageID item=languageName}{@$languageID}: '{$languageName}'{/implode} };
- var $groupNameValues = { {implode from=$groupName_i18n key=languageID item=value}'{@$languageID}': '{$value}'{/implode} };
+ var $groupNameValues = { {implode from=$i18nValues['groupName'] key=languageID item=value}'{@$languageID}': '{$value}'{/implode} };
new WCF.MultipleLanguageInput('groupName', false, $groupNameValues, $availableLanguages);
});
//]]>
<dl{if $errorType.groupName|isset} class="formError"{/if}>
<dt><label for="groupName">{lang}wcf.acp.group.groupName{/lang}</label></dt>
<dd>
- <input type="text" id="groupName" name="groupName" value="{$groupName}" class="medium" />
+ <input type="text" id="groupName" name="groupName" value="{$i18nPlainValues['groupName']}" class="medium" />
{if $errorType.groupName|isset}
<small class="innerError">
{if $errorType.groupName == 'empty'}
public function assignVariables() {
parent::assignVariables();
- I18nHandler::getInstance()->assignVariables(1);
+ I18nHandler::getInstance()->assignVariables();
WCF::getTPL()->assign(array(
'groupName' => $this->groupName,
*/
public function readData() {
if (!count($_POST)) {
- I18nHandler::getInstance()->setOptions('groupName', $this->group->groupName, 'wcf.acp.group.group\d+');
+ I18nHandler::getInstance()->setOptions('groupName', 1, $this->group->groupName, 'wcf.acp.group.group\d+');
$this->groupName = $this->group->groupName;
// get default values
parent::assignVariables();
$useRequestData = (count($_POST)) ? true : false;
- I18nHandler::getInstance()->assignVariables(1, $useRequestData);
+ I18nHandler::getInstance()->assignVariables($useRequestData);
WCF::getTPL()->assign(array(
'groupID' => $this->group->groupID,