/**
* @param string $current current
* @param string $foreign_net network
+ * @return string
+ * @throws \Exception
*/
public static function profileAssign($current, $foreign_net)
{
* @param string $network network
* @param string $profile optional, default empty
* @return string
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function networkToName($network, $profile = "")
{
* @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'),
* @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'),
/**
* @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'),