/**
  * Parses a template and returns any translatable entities
  */
 public static function GetTranslatables($template)
 {
     self::$entities = array();
     // Run the parser and throw away the result
     $parser = new i18nTextCollector_Parser($template);
     if (substr($template, 0, 3) == pack("CCC", 0xef, 0xbb, 0xbf)) {
         $parser->pos = 3;
     }
     $parser->match_TopTemplate();
     return self::$entities;
 }