From: Jeroen De Meerleer Date: Sun, 9 Sep 2018 14:48:31 +0000 (+0200) Subject: Translated gender etc. in profile view X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4d81158dd1a4f90e3add42b5fd5cd16b550b39bf;p=friendica.git Translated gender etc. in profile view --- diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 41e992aa49..a5fb908a78 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -760,7 +760,7 @@ class Profile } if ($a->profile['gender']) { - $profile['gender'] = [L10n::t('Gender:'), $a->profile['gender']]; + $profile['gender'] = [L10n::t('Gender:'), L10n::t($a->profile['gender'])]; } if (!empty($a->profile['dob']) && $a->profile['dob'] > DBA::NULL_DATE) { @@ -784,7 +784,7 @@ class Profile } if ($a->profile['marital']) { - $profile['marital'] = [L10n::t('Status:'), $a->profile['marital']]; + $profile['marital'] = [L10n::t('Status:'), L10n::t($a->profile['marital'])]; } /// @TODO Maybe use x() here, plus below? @@ -797,7 +797,7 @@ class Profile } if ($a->profile['sexual']) { - $profile['sexual'] = [L10n::t('Sexual Preference:'), $a->profile['sexual']]; + $profile['sexual'] = [L10n::t('Sexual Preference:'), L10n::t($a->profile['sexual'])]; } if ($a->profile['homepage']) {