aboutsummaryrefslogtreecommitdiffstats
path: root/include/profile_selectors.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-29 20:05:29 -0700
committerfriendica <info@friendica.com>2012-04-29 20:05:29 -0700
commitae2aa744449f0e7161c5fae81773ae5defd3ad76 (patch)
tree7f36a73e4f5328446f300d58142c66c20d797a1c /include/profile_selectors.php
parent1ebde084154f6272664e0b8c7309aab5b9c91cf2 (diff)
downloadvolse-hubzilla-ae2aa744449f0e7161c5fae81773ae5defd3ad76.tar.gz
volse-hubzilla-ae2aa744449f0e7161c5fae81773ae5defd3ad76.tar.bz2
volse-hubzilla-ae2aa744449f0e7161c5fae81773ae5defd3ad76.zip
not all profile selector choices have unique or direct translations
Diffstat (limited to 'include/profile_selectors.php')
-rw-r--r--include/profile_selectors.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/include/profile_selectors.php b/include/profile_selectors.php
index a2cef959d..d2f677e32 100644
--- a/include/profile_selectors.php
+++ b/include/profile_selectors.php
@@ -7,8 +7,10 @@ function gender_selector($current="",$suffix="") {
$o .= "<select name=\"gender$suffix\" id=\"gender-select$suffix\" size=\"1\" >";
foreach($select as $selection) {
- $selected = (($selection == $current) ? ' selected="selected" ' : '');
- $o .= "<option value=\"$selection\" $selected >$selection</option>";
+ if($selection !== 'NOTRANSLATION')) {
+ $selected = (($selection == $current) ? ' selected="selected" ' : '');
+ $o .= "<option value=\"$selection\" $selected >$selection</option>";
+ }
}
$o .= '</select>';
return $o;
@@ -20,8 +22,10 @@ function sexpref_selector($current="",$suffix="") {
$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>";
+ if($selection !== 'NOTRANSLATION')) {
+ $selected = (($selection == $current) ? ' selected="selected" ' : '');
+ $o .= "<option value=\"$selection\" $selected >$selection</option>";
+ }
}
$o .= '</select>';
return $o;
@@ -34,8 +38,10 @@ function marital_selector($current="",$suffix="") {
$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>";
+ if($selection !== 'NOTRANSLATION')) {
+ $selected = (($selection == $current) ? ' selected="selected" ' : '');
+ $o .= "<option value=\"$selection\" $selected >$selection</option>";
+ }
}
$o .= '</select>';
return $o;