]> git.mxchange.org Git - friendica.git/commitdiff
Translated string will never match what's saved in DB if not english
authorUnknown <me@jeroened.be>
Mon, 1 Oct 2018 09:57:34 +0000 (11:57 +0200)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 13:40:46 +0000 (08:40 -0500)
Rare jongens die Amerikanen ;)

src/Content/ContactSelector.php

index 86dd6f002d51f2dc69ee43c9d1e12798e8dde278..a2cc8c3a8c5cda85605f56a21cffbf7c0ab22b72 100644 (file)
@@ -168,7 +168,7 @@ class ContactSelector
                $o .= "<select name=\"gender$suffix\" id=\"gender-select$suffix\" size=\"1\" >";
                foreach ($select as $neutral => $selection) {
                        if ($selection !== 'NOTRANSLATION') {
-                               $selected = (($selection == $current) ? ' selected="selected" ' : '');
+                               $selected = (($neutral == $current) ? ' selected="selected" ' : '');
                                $o .= "<option value=\"$neutral\" $selected >$selection</option>";
                        }
                }
@@ -205,7 +205,7 @@ class ContactSelector
                $o .= "<select name=\"sexual$suffix\" id=\"sexual-select$suffix\" size=\"1\" >";
                foreach ($select as $neutral => $selection) {
                        if ($selection !== 'NOTRANSLATION') {
-                               $selected = (($selection == $current) ? ' selected="selected" ' : '');
+                               $selected = (($neutral == $current) ? ' selected="selected" ' : '');
                                $o .= "<option value=\"$neutral\" $selected >$selection</option>";
                        }
                }
@@ -259,7 +259,7 @@ class ContactSelector
                $o .= '<select name="marital" id="marital-select" size="1" >';
                foreach ($select as $neutral => $selection) {
                        if ($selection !== 'NOTRANSLATION') {
-                               $selected = (($selection == $current) ? ' selected="selected" ' : '');
+                               $selected = (($neutral == $current) ? ' selected="selected" ' : '');
                                $o .= "<option value=\"$neutral\" $selected >$selection</option>";
                        }
                }