]> git.mxchange.org Git - friendica.git/commitdiff
Translated gender etc. in profile view
authorJeroen De Meerleer <me@jeroened.be>
Sun, 9 Sep 2018 14:48:31 +0000 (16:48 +0200)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 13:40:45 +0000 (08:40 -0500)
src/Model/Profile.php

index 41e992aa49b8b2f5f8d475faeec7e4b063d9643f..a5fb908a78a3561be796bf540a293460ad7b3b66 100644 (file)
@@ -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']) {