1
0
Fork 0

Added EMPTY key + updated to hypolite's suggestions

This commit is contained in:
Unknown 2018-09-26 10:30:36 +02:00 committed by Hypolite Petovan
parent 4d81158dd1
commit 24dbb69421

View file

@ -145,21 +145,23 @@ class ContactSelector
public static function gender($current = "", $suffix = "") public static function gender($current = "", $suffix = "")
{ {
$o = ''; $o = '';
$select[''] = ''; $select = [
$select['Male'] = L10n::t('Male'); 'EMPTY' => '',
$select['Female'] = L10n::t('Female'); 'Male' => L10n::t('Male'),
$select['Currently Male'] = L10n::t('Currently Male'); 'Female' => L10n::t('Female'),
$select['Currently Female'] = L10n::t('Currently Female'); 'Currently Male' => L10n::t('Currently Male'),
$select['Mostly Male'] = L10n::t('Mostly Male'); 'Currently Female' => L10n::t('Currently Female'),
$select['Mostly Female'] = L10n::t('Mostly Female'); 'Mostly Male' => L10n::t('Mostly Male'),
$select['Transgender'] = L10n::t('Transgender'); 'Mostly Female' => L10n::t('Mostly Female'),
$select['Intersex'] = L10n::t('Intersex'); 'Transgender' => L10n::t('Transgender'),
$select['Transsexual'] = L10n::t('Transsexual'); 'Intersex' => L10n::t('Intersex'),
$select['Hermaphrodite'] = L10n::t('Hermaphrodite'); 'Transsexual' => L10n::t('Transsexual'),
$select['Neuter'] = L10n::t('Neuter'); 'Hermaphrodite' => L10n::t('Hermaphrodite'),
$select['Non-specific'] = L10n::t('Non-specific'); 'Neuter' => L10n::t('Neuter'),
$select['Other'] = L10n::t('Other'); 'Non-specific' => L10n::t('Non-specific'),
$select['Undecided'] = L10n::t('Undecided'); 'Other' => L10n::t('Other'),
'Undecided' => L10n::t('Undecided'),
];
Addon::callHooks('gender_selector', $select); Addon::callHooks('gender_selector', $select);
@ -181,19 +183,22 @@ class ContactSelector
public static function sexualPreference($current = "", $suffix = "") public static function sexualPreference($current = "", $suffix = "")
{ {
$o = ''; $o = '';
$select['Males'] = L10n::t('Males'); $select = [
$select['Females'] = L10n::t('Females'); 'EMPTY' => '',
$select['Gay'] = L10n::t('Gay'); 'Males' => L10n::t('Males'),
$select['Lesbian'] = L10n::t('Lesbian'); 'Females' => L10n::t('Females'),
$select['No Preference'] = L10n::t('No Preference'); 'Gay' => L10n::t('Gay'),
$select['Bisexual'] = L10n::t('Bisexual'); 'Lesbian' => L10n::t('Lesbian'),
$select['Autosexual'] = L10n::t('Autosexual'); 'No Preference' => L10n::t('No Preference'),
$select['Abstinent'] = L10n::t('Abstinent'); 'Bisexual' => L10n::t('Bisexual'),
$select['Virgin'] = L10n::t('Virgin'); 'Autosexual' => L10n::t('Autosexual'),
$select['Deviant'] = L10n::t('Deviant'); 'Abstinent' => L10n::t('Abstinent'),
$select['Fetish'] = L10n::t('Fetish'); 'Virgin' => L10n::t('Virgin'),
$select['Oodles'] = L10n::t('Oodles'); 'Deviant' => L10n::t('Deviant'),
$select['Nonsexual'] = L10n::t('Nonsexual'); 'Fetish' => L10n::t('Fetish'),
'Oodles' => L10n::t('Oodles'),
'Nonsexual' => L10n::t('Nonsexual'),
];
Addon::callHooks('sexpref_selector', $select); Addon::callHooks('sexpref_selector', $select);
@ -214,37 +219,39 @@ class ContactSelector
public static function maritalStatus($current = "") public static function maritalStatus($current = "")
{ {
$o = ''; $o = '';
$select['Single'] = L10n::t('Single'); 'EMPTY' => '',
$select['Lonely'] = L10n::t('Lonely'); 'Single' => L10n::t('Single'),
$select['Available'] = L10n::t('Available'); 'Lonely' => L10n::t('Lonely'),
$select['Unavailable'] = L10n::t('Unavailable'); 'Available' => L10n::t('Available'),
$select['Has crush'] = L10n::t('Has crush'); 'Unavailable' => L10n::t('Unavailable'),
$select['Infatuated'] = L10n::t('Infatuated'); 'Has crush' => L10n::t('Has crush'),
$select['Dating'] = L10n::t('Dating'); 'Infatuated' => L10n::t('Infatuated'),
$select['Unfaithful'] = L10n::t('Unfaithful'); 'Dating' => L10n::t('Dating'),
$select['Sex Addict'] = L10n::t('Sex Addict'); 'Unfaithful' => L10n::t('Unfaithful'),
$select['Friends'] = L10n::t('Friends'); 'Sex Addict' => L10n::t('Sex Addict'),
$select['Friends/Benefits'] = L10n::t('Friends/Benefits'); 'Friends' => L10n::t('Friends'),
$select['Casual'] = L10n::t('Casual'); 'Friends/Benefits' => L10n::t('Friends/Benefits'),
$select['Engaged'] = L10n::t('Engaged'); 'Casual' => L10n::t('Casual'),
$select['Married'] = L10n::t('Married'); 'Engaged' => L10n::t('Engaged'),
$select['Imaginarily married'] = L10n::t('Imaginarily married'); 'Married' => L10n::t('Married'),
$select['Partners'] = L10n::t('Partners'); 'Imaginarily married' => L10n::t('Imaginarily married'),
$select['Cohabiting'] = L10n::t('Cohabiting'); 'Partners' => L10n::t('Partners'),
$select['Common law'] = L10n::t('Common law'); 'Cohabiting' => L10n::t('Cohabiting'),
$select['Happy'] = L10n::t('Happy'); 'Common law' => L10n::t('Common law'),
$select['Not looking'] = L10n::t('Not looking'); 'Happy' => L10n::t('Happy'),
$select['Swinger'] = L10n::t('Swinger'); 'Not looking' => L10n::t('Not looking'),
$select['Betrayed'] = L10n::t('Betrayed'); 'Swinger' => L10n::t('Swinger'),
$select['Separated'] = L10n::t('Separated'); 'Betrayed' => L10n::t('Betrayed'),
$select['Unstable'] = L10n::t('Unstable'); 'Separated' => L10n::t('Separated'),
$select['Divorced'] = L10n::t('Divorced'); 'Unstable' => L10n::t('Unstable'),
$select['Imaginarily divorced'] = L10n::t('Imaginarily divorced'); 'Divorced' => L10n::t('Divorced'),
$select['Widowed'] = L10n::t('Widowed'); 'Imaginarily divorced' => L10n::t('Imaginarily divorced'),
$select['Uncertain'] = L10n::t('Uncertain'); 'Widowed' => L10n::t('Widowed'),
$select['It\'s complicated'] = L10n::t('It\'s complicated'); 'Uncertain' => L10n::t('Uncertain'),
$select['Don\'t care'] = L10n::t('Don\'t care'); 'It\'s complicated' => L10n::t('It\'s complicated'),
$select['Ask me'] = L10n::t('Ask me'); 'Don\'t care' => L10n::t('Don\'t care'),
'Ask me' => L10n::t('Ask me'),
];
Addon::callHooks('marital_selector', $select); Addon::callHooks('marital_selector', $select);