]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/ContactSelector.php
fixing error "json not defined" in frio
[friendica.git] / src / Content / ContactSelector.php
index 4ba579b51485ec50c36dbfdcd7e2caf5f9e5d33d..e327069b33fd86653bad93e0b9a661c1c3a1bcc3 100644 (file)
@@ -19,6 +19,8 @@ class ContactSelector
        /**
         * @param string $current     current
         * @param string $foreign_net network
+        * @return string
+        * @throws \Exception
         */
        public static function profileAssign($current, $foreign_net)
        {
@@ -73,6 +75,7 @@ class ContactSelector
         * @param string $network network
         * @param string $profile optional, default empty
         * @return string
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function networkToName($network, $profile = "")
        {
@@ -141,12 +144,13 @@ class ContactSelector
         * @param string $current optional, default empty
         * @param string $suffix  optionsl, default empty
         * @return string
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function gender($current = "", $suffix = "")
        {
                $o = '';
                $select = [
-                       'EMPTY'            => '',
+                       ''                 => L10n::t('No answer'),
                        'Male'             => L10n::t('Male'),
                        'Female'           => L10n::t('Female'),
                        'Currently Male'   => L10n::t('Currently Male'),
@@ -180,12 +184,13 @@ class ContactSelector
         * @param string $current optional, default empty
         * @param string $suffix  optionsl, default empty
         * @return string
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function sexualPreference($current = "", $suffix = "")
        {
                $o = '';
                $select = [
-                       'EMPTY'         => '',
+                       ''              => L10n::t('No answer'),
                        'Males'         => L10n::t('Males'),
                        'Females'       => L10n::t('Females'),
                        'Gay'           => L10n::t('Gay'),
@@ -217,12 +222,13 @@ class ContactSelector
        /**
         * @param string $current optional, default empty
         * @return string
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function maritalStatus($current = "")
        {
                $o = '';
                $select = [
-                       'EMPTY'                => '',
+                       ''                     => L10n::t('No answer'),
                        'Single'               => L10n::t('Single'),
                        'Lonely'               => L10n::t('Lonely'),
                        'Available'            => L10n::t('Available'),