<defaultvalue>0</defaultvalue>
<selectoptions>0:wcf.global.noDeclaration
1:wcf.user.gender.male
-2:wcf.user.gender.female</selectoptions>
+2:wcf.user.gender.female
+3:wcf.user.gender.other</selectoptions>
<outputclass>wcf\system\option\user\SelectOptionsUserOptionOutput</outputclass>
<searchable>1</searchable>
<visible>15</visible>
<option value="0">{lang}wcf.global.noSelection{/lang}</option>
<option value="1"{if $requiredGender == 1} selected{/if}>{lang}wcf.user.gender.male{/lang}</option>
<option value="2"{if $requiredGender == 2} selected{/if}>{lang}wcf.user.gender.female{/lang}</option>
+ <option value="3"{if $requiredGender == 3} selected{/if}>{lang}wcf.user.gender.other{/lang}</option>
</select>
{if $errorField == 'requiredGender'}
<small class="innerError">
<td class="columnTitle columnRankTitle"><a href="{link controller='UserRankEdit' id=$userRank->rankID}{/link}" title="{lang}wcf.acp.user.rank.edit{/lang}" class="badge label{if $userRank->cssClassName} {$userRank->cssClassName}{/if}">{$userRank->getTitle()}</a></td>
<td class="columnText columnRankImage">{if $userRank->rankImage}{@$userRank->getImage()}{/if}</td>
<td class="columnText columnGroupID">{$userRank->groupName|language}</td>
- <td class="columnText columnRequiredGender">{if $userRank->requiredGender}{if $userRank->requiredGender == 1}{lang}wcf.user.gender.male{/lang}{else}{lang}wcf.user.gender.female{/lang}{/if}{/if}</td>
+ <td class="columnText columnRequiredGender">
+ {if $userRank->requiredGender}
+ {if $userRank->requiredGender == 1}
+ {lang}wcf.user.gender.male{/lang}
+ {elseif $userRank->requiredGender == 2}
+ {lang}wcf.user.gender.female{/lang}
+ {else}
+ {lang}wcf.user.gender.other{/lang}
+ {/if}
+ {/if}
+ </td>
<td class="columnDigits columnRequiredPoints">{#$userRank->requiredPoints}</td>
{event name='columns'}
use wcf\data\user\group\UserGroup;
use wcf\data\user\rank\UserRankAction;
use wcf\data\user\rank\UserRankEditor;
+use wcf\data\user\UserProfile;
use wcf\form\AbstractForm;
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
}
// required gender
- if ($this->requiredGender < 0 || $this->requiredGender > 2) {
+ if ($this->requiredGender < 0 || $this->requiredGender > UserProfile::GENDER_OTHER) {
$this->requiredGender = 0;
}
const GENDER_MALE = 1;
const GENDER_FEMALE = 2;
+ const GENDER_OTHER = 3;
const ACCESS_EVERYONE = 0;
const ACCESS_REGISTERED = 1;
<item name="wcf.user.usernameOrEmail"><![CDATA[Benutzername oder E-Mail-Adresse]]></item>
<item name="wcf.user.gender.male"><![CDATA[Männlich]]></item>
<item name="wcf.user.gender.female"><![CDATA[Weiblich]]></item>
+ <item name="wcf.user.gender.other"><![CDATA[Divers]]></item>
<item name="wcf.user.members"><![CDATA[Mitglieder]]></item>
<item name="wcf.user.members.filter"><![CDATA[Mitglieder filtern]]></item>
<item name="wcf.user.members.noMembers"><![CDATA[Es wurden keine Mitglieder gefunden. <a href="{link controller='MembersList'}{/link}">Die aktiven Filter zurücksetzen.</a>]]></item>
<item name="wcf.user.usernameOrEmail"><![CDATA[Username or Email Address]]></item>
<item name="wcf.user.gender.male"><![CDATA[Male]]></item>
<item name="wcf.user.gender.female"><![CDATA[Female]]></item>
+ <item name="wcf.user.gender.other"><![CDATA[Other]]></item>
<item name="wcf.user.members"><![CDATA[Members]]></item>
<item name="wcf.user.members.filter"><![CDATA[Filter Members]]></item>
<item name="wcf.user.members.noMembers"><![CDATA[No members matched your criteria. <a href="{link controller='MembersList'}{/link}">Reset the applied filters.</a>]]></item>