X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fcontact_selectors.php;h=f104866232d4326f36cc3669636986682770b67f;hb=be40fb8186bc18e3562d780a7153f76ee7d5e90f;hp=4b3ca987a6675276917b22c6d7919897f2c8d4f3;hpb=4bee1859be5fbf46ecc19728a908e31b4e9b09b6;p=friendica.git diff --git a/include/contact_selectors.php b/include/contact_selectors.php index 4b3ca987a6..f104866232 100644 --- a/include/contact_selectors.php +++ b/include/contact_selectors.php @@ -1,5 +1,5 @@ t('Friendica'), @@ -83,6 +83,13 @@ function network_to_name($s) { NETWORK_LINKEDIN => t('LinkedIn'), NETWORK_XMPP => t('XMPP/IM'), NETWORK_MYSPACE => t('MySpace'), + NETWORK_MAIL2 => t('Email'), + NETWORK_GPLUS => t('Google+'), + NETWORK_PUMPIO => t('pump.io'), + NETWORK_TWITTER => t('Twitter'), + NETWORK_DIASPORA2 => t('Diaspora Connector'), + NETWORK_STATUSNET => t('GNU Social'), + NETWORK_APPNET => t('App.net') ); call_hooks('network_to_name', $nets); @@ -90,6 +97,10 @@ function network_to_name($s) { $search = array_keys($nets); $replace = array_values($nets); - return str_replace($search,$replace,$s); + $networkname = str_replace($search,$replace,$s); + + if (($s == NETWORK_DIASPORA) AND ($profile != "") AND diaspora_is_redmatrix($profile)) + $networkname = t("Redmatrix"); + return $networkname; }