]> git.mxchange.org Git - friendica.git/commitdiff
remove unneeded function page_type_translate()
authorrabuzarus <>
Wed, 2 Dec 2015 23:08:43 +0000 (00:08 +0100)
committerrabuzarus <>
Wed, 2 Dec 2015 23:08:43 +0000 (00:08 +0100)
include/text.php

index 89a58cccc07f5b8e381f93f363907e8e17d61b75..1b03c39d26775b08fc4c30231bbab7bb956c7d59 100644 (file)
@@ -2288,37 +2288,6 @@ function formatBytes($bytes, $precision = 2) {
        return round($bytes, $precision) . ' ' . $units[$pow];
 }
 
-/**
- * @brief Translate the PAGE type flags in human readable string
- * 
- * @param int $page_type
- * @return string $trans_type
- */
-function page_type_translate($page_type) {
-
-       // ToDo: we need a good interpretable translation for PAGE_SOAPBOX
-       // and PAGE_PRVGROUP
-       switch ($page_type) {
-               case PAGE_NORMAL:
-                       $trans_type = t('Normal Account');
-                       break;
-               case PAGE_SOAPBOX:
-                       $trans_type = t('Fan Page');
-                       break;
-               case PAGE_COMMUNITY:
-                       $trans_type = t('Community Forum');
-                       break;
-               case PAGE_FREELOVE:
-                       $trans_type = t('Open Forum');
-                       break;
-               case PAGE_PRVGROUP:
-                       $trans_type = t('Private Forum');
-                       break;
-       }
-
-       return $trans_type;
-}
-
 /**
  * @brief translate and format the networkname of a contact
  *