not all profile selector choices have unique or direct translations
This commit is contained in:
parent
1ebde08415
commit
ae2aa74444
1 changed files with 12 additions and 6 deletions
|
@ -7,9 +7,11 @@ function gender_selector($current="",$suffix="") {
|
||||||
|
|
||||||
$o .= "<select name=\"gender$suffix\" id=\"gender-select$suffix\" size=\"1\" >";
|
$o .= "<select name=\"gender$suffix\" id=\"gender-select$suffix\" size=\"1\" >";
|
||||||
foreach($select as $selection) {
|
foreach($select as $selection) {
|
||||||
|
if($selection !== 'NOTRANSLATION')) {
|
||||||
$selected = (($selection == $current) ? ' selected="selected" ' : '');
|
$selected = (($selection == $current) ? ' selected="selected" ' : '');
|
||||||
$o .= "<option value=\"$selection\" $selected >$selection</option>";
|
$o .= "<option value=\"$selection\" $selected >$selection</option>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$o .= '</select>';
|
$o .= '</select>';
|
||||||
return $o;
|
return $o;
|
||||||
}
|
}
|
||||||
|
@ -20,9 +22,11 @@ function sexpref_selector($current="",$suffix="") {
|
||||||
|
|
||||||
$o .= "<select name=\"sexual$suffix\" id=\"sexual-select$suffix\" size=\"1\" >";
|
$o .= "<select name=\"sexual$suffix\" id=\"sexual-select$suffix\" size=\"1\" >";
|
||||||
foreach($select as $selection) {
|
foreach($select as $selection) {
|
||||||
|
if($selection !== 'NOTRANSLATION')) {
|
||||||
$selected = (($selection == $current) ? ' selected="selected" ' : '');
|
$selected = (($selection == $current) ? ' selected="selected" ' : '');
|
||||||
$o .= "<option value=\"$selection\" $selected >$selection</option>";
|
$o .= "<option value=\"$selection\" $selected >$selection</option>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$o .= '</select>';
|
$o .= '</select>';
|
||||||
return $o;
|
return $o;
|
||||||
}
|
}
|
||||||
|
@ -34,9 +38,11 @@ function marital_selector($current="",$suffix="") {
|
||||||
|
|
||||||
$o .= "<select name=\"marital\" id=\"marital-select\" size=\"1\" >";
|
$o .= "<select name=\"marital\" id=\"marital-select\" size=\"1\" >";
|
||||||
foreach($select as $selection) {
|
foreach($select as $selection) {
|
||||||
|
if($selection !== 'NOTRANSLATION')) {
|
||||||
$selected = (($selection == $current) ? ' selected="selected" ' : '');
|
$selected = (($selection == $current) ? ' selected="selected" ' : '');
|
||||||
$o .= "<option value=\"$selection\" $selected >$selection</option>";
|
$o .= "<option value=\"$selection\" $selected >$selection</option>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$o .= '</select>';
|
$o .= '</select>';
|
||||||
return $o;
|
return $o;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue