]> git.mxchange.org Git - friendica.git/blobdiff - view/profile_selectors.php
fakelink was being inherited incorrectly by the ACL selector
[friendica.git] / view / profile_selectors.php
index c6e64403a08ca20c21931f9190e1cd1f4d43432e..46f5c8b68acd802b56cb01b2f9ffd1b7f7d3fb0a 100644 (file)
@@ -2,7 +2,7 @@
 
 
 function gender_selector($current="",$suffix="") {
-       $select = array('','Male','Female','Other');
+       $select = array('', t('Male'), t('Female'), t('Transsexual'), t('Hermaphrodite'), t('Neuter'), t('Other'), t('Undecided'));
 
        $o .= "<select name=\"gender$suffix\" id=\"gender-select$suffix\" size=\"1\" >";
        foreach($select as $selection) {
@@ -13,11 +13,10 @@ function gender_selector($current="",$suffix="") {
        return $o;
 }      
 
+function sexpref_selector($current="",$suffix="") {
+       $select = array('', t('Males'), t('Females'), t('Bisexual'), t('Autosexual'), t('Abstinent'), t('Virgin'), t('Nonsexual'));
 
-function marital_selector($current="",$suffix="") {
-       $select = array('','Single', 'Lonely', 'Available', 'Unavailable', 'Dating', 'Unfaithful', 'Sex Addict', 'Friends', 'Friends/Benefits', 'Casual', 'Engaged', 'Married', 'Partners', 'Cohabiting', 'Happy', 'Not Looking', 'Swinger', 'Betrayed', 'Separated', 'Unstable', 'Divorced', 'Widowed', 'Uncertain', 'Complicated', 'Don\'t care', 'Ask me' );
-
-       $o .= "<select name=\"marital[]\" id=\"marital-select\" multiple=\"multiple\" size=\"2\" >";
+       $o .= "<select name=\"sexual$suffix\" id=\"sexual-select$suffix\" size=\"1\" >";
        foreach($select as $selection) {
                $selected = (($selection == $current) ? ' selected="selected" ' : '');
                $o .= "<option value=\"$selection\" $selected >$selection</option>";
@@ -27,6 +26,14 @@ function marital_selector($current="",$suffix="") {
 }      
 
 
-//function birthday_selector($current = '') {
-//     if($current && (strlen($current)
-//}
\ No newline at end of file
+function marital_selector($current="",$suffix="") {
+       $select = array('', t('Single'), t('Lonely'), t('Available'), t('Unavailable'), t('Dating'), t('Unfaithful'), t('Sex Addict'), t('Friends'), t('Friends/Benefits'), t('Casual'), t('Engaged'), t('Married'), t('Partners'), t('Cohabiting'), t('Happy'), t('Not Looking'), t('Swinger'), t('Betrayed'), t('Separated'), t('Unstable'), t('Divorced'), t('Widowed'), t('Uncertain'), t('Complicated'), t('Don\'t care'), t('Ask me') );
+
+       $o .= "<select name=\"marital\" id=\"marital-select\" size=\"1\" >";
+       foreach($select as $selection) {
+               $selected = (($selection == $current) ? ' selected="selected" ' : '');
+               $o .= "<option value=\"$selection\" $selected >$selection</option>";
+       }
+       $o .= '</select>';
+       return $o;
+}