getEmojis() as $emoji){ $content = preg_replace("(:" . $emoji->getShortcode() .":)", "".$emoji->getShortcode()."", $content); } } return $content; } public function statusEmoji($status, $content) { if( $status instanceof Status){ foreach( $status->getEmojis() as $emoji){ $content = preg_replace("(:" . $emoji->getShortcode() . ":)", "".$emoji->getShortcode()."", $content); } } return $content; } public function language($locale) { switch ($locale){ case "en": return "English"; case "fr": return "Français"; case "de": return "Deutsch"; case "nl": return "Nederlands"; case "pt-PT": return "Português"; case "pt-BR": return "Brasil"; case "it": return "Italiano"; case "ca": return "Català"; case "ar": return "العربية"; } } }