Browse Source

Translated string will never match what's saved in DB if not english

Rare jongens die Amerikanen ;)
pull/6482/head
Unknown 3 years ago
committed by Hypolite Petovan
parent
commit
bc553a2c49
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/Content/ContactSelector.php

+ 3
- 3
src/Content/ContactSelector.php View 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>";
}
}


Loading…
Cancel
Save